#Sārathi
Sārathi (सारथि) is the charioteer: Kṛṣṇa was Arjuna's. Sārathi plans your days, watches how they go, talks with you, and re-plans every night, the way Kṛṣṇa guided Arjuna on the field of Kurukṣetra.

#What it does
- The day: karma (tasks) with a time and length, done with a feedback card (effort, mood, a note), skipped with a reason, or moved. Puṇya, tapas (the streak, with rest days) and the 18 adhyāyas of the Gītā as levels; stats, quests, titles and rewards.
- Saṃvāda, the chat: one conversation, typed or spoken. Sārathi asks what it still needs to know, remembers what you tell it, and acts on it ("120 on lunch, 60 auto" logs two expenses; "done with the walk" ticks it).
- The nightly plan: at 23:00 the planner builds tomorrow from your goals, facts, the last two weeks, your feedback, your calendar and its own predictions, and says what changed and why. Plans get lighter when you are struggling, travelling or ill.
- Voice: hold Super+t on the laptop or the button on the phone, speak, and Sārathi answers aloud. Local whisper.cpp and Piper, or any hosted speech API.
- The phone app and its widgets: today's karma, tickable from the home screen, true dark and parchment light; screen time, Health Connect and the gym's rest timer. It talks to the laptop through ekatva.
- Google Calendar both ways: a Sārathi calendar for the plan; your meetings re-plan the day, and moving or deleting an event moves or skips its karma.
- Rhythm: predictions every night, scored the next; deviations and the patterns behind them; a weekly review and a monthly letter.
- Artha, money: income, budgets, today's allowance, the nightly expense log.
- Vyāyāma, the gym: 71 exercises with a 3D mannequin, programmes built for the equipment you have, rest decided per set and learnt from you.
- Rūpa, Darśana and Anna: your colour palette and wardrobe, today's outfit, hair and skin care; pictures of your future self and try-ons (labelled imagined); meals from a photo.
- Kuṇḍalī and Vidyā: a 12-house life chart from your data; the skill map (fresh, fading, outdated), what to learn next, and your books with Vāgdevī.
- Sākṣī, the watchers: music from any MPRIS player, your Claude Code and Codex chats, laptop and phone screen time, and events from every Vayu tool through the emit socket. Event-driven, nothing polls.
- The verse library: the Bhagavad Gītā from a published edition. Sārathi only points to verses by id; it never writes scripture.
- Any AI provider: Gemini by default; any OpenAI-compatible API or agent CLI (Claude Code, Codex, Gemini CLI) as fallbacks, with a cost log and a daily cap.
- For agents (MCP): every feature's tools and an
intakeprompt. - Yours:
sarathi export,sarathi forget-everything, a nightly backup; a server mode with access tokens for when it moves off the laptop.


The whole plan is in PLAN.md; the voice in docs/voice.md, the emit socket in docs/emit.md, the server mode in docs/server.md.
#Use
sarathi today # the day: karma, level, tapas, money, the verse
sarathi say I walked, and spent 60 on an auto
sarathi done 12 -e 3 -m 4 # karma 12 done: effort 3, mood 4
sarathi skip 13 too tired
sarathi spend 120 food lunch # or: sarathi nospend
sarathi review -m 4 -e 3 -w "finished the doc"
sarathi plan # build tomorrow now
sarathi budget flex food 7000
sarathi models # which model does what, and what it cost
sarathi talk # say something, hear the answer
sarathi gym today # today's session
sarathi calendar connect # link Google Calendar
sarathi export > me.json # everything it knows
sarathi watch status # the watchers, and what each has seen
sarathi watch summary # today: music, agent prompts per project, screen time per app
sarathi events -s agent -q "login bug" # search what the watchers saw
For the intake, ask Claude Code (or any MCP agent) to "run the Sārathi intake".
#Set up
Needs Node 22+, pnpm and Docker.
pnpm install && pnpm build
# Postgres with pgvector, on 127.0.0.1:5433; the password stays in ~/.config/sarathi/db.env (0600)
docker run -d --name sarathi-pg --restart unless-stopped -p 127.0.0.1:5433:5432 \
-e POSTGRES_USER=sarathi -e POSTGRES_DB=sarathi -e POSTGRES_PASSWORD=… \
-v sarathi-pg:/var/lib/postgresql/data pgvector/pgvector:0.8.1-pg17
ln -s "$PWD/apps/daemon/bin/sarathi.js" ~/.local/bin/sarathi
sarathi verses import
cp apps/daemon/systemd/* ~/.config/systemd/user/ && systemctl --user enable --now sarathi-mcp.socket sarathi
claude mcp add -s user sarathi -- sarathi mcp --agent claude
Models are set in ~/.config/sarathi/models.json (providers and, per job, the targets in order). Keys live in files next to it, never in the repo.
#The phone
apps/mobile/scripts/build-apk.sh # your key in ~/.config/sarathi-release, made once
adb install -r apps/mobile/dist/sarathi.apk
Then allow "sarathi" in ekatva on the laptop, link it in the app's Settings, and grant usage access and Health Connect.
#Licence
MIT. The Gītā text comes from vedicscriptures/bhagavad-gita-data (GPL-3.0) and is downloaded at import, not shipped here.