Edit this page on GitHub ↗

Getting started

Requirements

Run the demo

cd daythread
python3 -m daythread demo
python3 -m daythread ask "what should I focus on?"
python3 -m daythread tick --job morning
python3 -m daythread notifications
python3 -m daythread bench
make test

The demo runs in a throwaway home. bench exercises memory insert/search, proactivity, runtime plans and safety checks.

Install the command

python3 -m pip install -e .
dt demo

Data lives in $DAYTHREAD_HOME/daythread.db, defaulting to ~/.daythread. Notes, drafts, sandbox files, backups, the API token, and the notification outbox live under the same home.

Open the dashboard

dt ui --port 8765

The dashboard is a loopback page for briefs, approvals, runs and memory search. dt ui prints the URL and opens a browser unless --no-browser is set.

The local API

dt serve --print-token
dt serve --port 8765
curl -H "Authorization: Bearer $TOKEN" http://127.0.0.1:8765/v1/today
curl -H "Authorization: Bearer $TOKEN" "http://127.0.0.1:8765/v1/facts?limit=20&offset=0"
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"text":"hello"}' http://127.0.0.1:8765/v1/ask
curl http://127.0.0.1:8765/v1/openapi.json

The API binds 127.0.0.1 only, reads a bearer token from a 0600 file, rate-limits per token, and returns request IDs. There is no CORS.

A first plan

# Multi-step plan: draft, then external send. Approval is required.
dt plan "send maya@example.com | Deck | Latest" --execute
dt approve <run-id>
# Inspect and verify the audit chain.
dt ledger <run-id> --verify
# Model gateway: local by default; configure a remote provider explicitly.
dt ask "summarise today" --no-cache

The command map

dt init | migrate | doctor | demo
dt fact add|list|show|edit|rm|search|extract|history|conflicts|import
dt task list|create|done|update
dt brief [--evening]
dt plan "<intent>" [--execute] [--file plan.json] [--idempotency-key K]
dt act <tool> --arg k=v [--idempotency-key K]
dt runs | show | approve | reject | undo | resume | cancel | ledger
dt policy show|set
dt ask "<text>" [--task NAME] [--no-cache] [--stream]
dt mcp add|list|remove|tools|call|serve
dt connector list|auth|revoke|connect|disconnect|sync|state|call|items
dt skill list|show|install|run|uninstall
dt secret set <name> | list | rm
dt backup | restore <file> [--verify] [--replace] [--trust]
dt serve [--host 127.0.0.1] [--port 8765] [--print-token] [--rotate-token]
dt ui [--port 8765] [--no-browser]

make help lists every target.

Next