Skip to content

Quickstart

Terminal window
curl -fsSL https://ka-agent.com/install.sh | sh
ka-agent

The first run is the setup wizard: provider, live key check, model, timezone, optional Telegram or Matrix pairing, optional web search, optional service install, and a real first reply. See installation.

Terminal window
ka-agent # chat; attaches to the background service
ka-agent dashboard # web control panel in your browser
ka-agent status # one-glance report: model, spend, queue, next task
ka-agent doctor # full health check; exit 1 = fix something

In chat, plain text is a prompt and /commands are optional (/help lists them). On a terminal the chat is a live client: the transcript scrolls above while the status line (spinner, context, spend, plan), tool rows and the draft stay in place below; Tab completes commands and @paths, Ctrl-R searches the history, Ctrl-G opens your editor on the draft, and y/n/s answer a pending approval card. Ctrl-C stops a running reply, twice quits; /quit leaves. Piped input keeps the plain line reader, so scripts are unaffected.

Command Effect
/status model, spend vs limits, queue, next task
/mode [m] ask (default, asks) · accept_edits · allow · readonly (read-only), with a badge when not ask; the old names guarded/free/plan still work
/model [provider/model] switch model, applied live; bare /model lists providers, /model <provider> its models, /model <n> picks (a picker card on the phone), Tab completes selectors in the terminal
/new [private] · /stop · /resume fresh session (private: incognito, usage recorded, no text kept) · abort reply · lift a pause
/retry re-send the last failed or interrupted question (also the ↻ button on Telegram); never automatic
/effort [level] reasoning effort for this session: off · low · medium · high · max
/steer <thought> add a thought to the reply that is running
/undo revert the last file change of this session
/queue list or clear messages waiting for the next turn
/tools the tools the engine can reach right now
/persona show the assistant’s persona
/remember <fact> · /forget <id> durable memory (/memory lists ids; /memory undo reverts the last commit)
/history [query] · /history show <id> past turns
/remind <when> <text> · /reminders notifications, no model turn
/cron add … · /calendar add <url> scheduled prompts · daily digest
/approvals · /y [id] · /n [id] decide pending approvals
/skills · /skill <name> <text> one turn with a skill loaded
Terminal window
ka-agent pair telegram # prints /pair XXXX-XXXX and a one-tap t.me/<bot>?start=<code> link
ka-agent pair matrix # same idea for Matrix

Pairing happens once; the bot then answers only you. Unknown senders stay silent, and anything they tried shows in ka-agent identity pending with the exact identity link command. On Telegram, opening the link (or sending /start <code> to the bot) redeems the code like /pair: 10-minute TTL, 5 attempts, constant-time compare. Telegram setup needs a bot token from @BotFather (the wizard asks for it and verifies it); Matrix logs in once to your bot account. Photos and files sent on Telegram land in <workspace>/attachments/ with an @reference you can paste back; a photo or file with a caption submits the caption as a turn carrying the file, and an album is saved whole and answered once.

On the phone, replies stream in as they are written, every message you send gets a 👀 receipt, and Matrix shows formatted text. When Ka proposes remembering something, you get a card, ✅ Remember / ✖ Discard, instead of a queue to check. Voice notes work once you pick a transcriber: ka-agent setup voice (OpenAI or Groq Whisper, or a local Whisper server); the note is transcribed, shown back to you, and handled like typed text.

Any message can inline context with an @ word:

@src/main.rs what does this do
@docs/ summarize this directory
@turn:8f3c2a what changed in that answer
@https://example.com/rfc summarize this

Failures are visible markers ([ref @x: not found]), never a dropped message.

Scheduling times are always your local timezone:

/remind in 2h30m stretch
/remind at 18:30 call the dentist
/remind fri 17:00 week notes
/cron add every 1h check the build
/cron add every day at 08:00 summarize my inbox
/cron add every mon at 09:00 plan the week
/cron add every weekday at 9 standup notes
/cron add every mon,wed,fri at 18:00 review open PRs
/calendar add https://example.com/feed.ics # daily 08:00 digest, no model turn

A laptop that slept for three days fires once, not 72 times; lateness is marked on the notification. A morning briefing composes your day instead of a stream of nudges: ka-agent briefing on 07:30 (then briefing now, briefing off), and ka-agent config set notify.quiet_hours '"22:00-07:00"' keeps scheduled prompts quiet at night (reminders still ring). See scheduling.

Nothing enters durable memory without you:

/remember prefers concise Spanish answers in Telegram → accepted, committed
/memory → files, bytes, budget %
/memory review → pending candidates
/history "release notes" → top 5 matching turns

Stable memory lives under <data>/memory/ as git-tracked Markdown with provenance comments, compiles into the engine’s MEMORY.md under a 6 KB budget, and is editable with ka-agent memory edit. Coming from another agent? ka-agent import hermes (also openclaw, claude, codex) brings memory and skills: memory arrives as candidates you accept one by one. See memory.

Terminal window
ka-agent skills list
ka-agent skills enable review

A skill is a SKILL.md directory in ~/.ka-agent/skills/ (shared by all profiles); enabling copies it into the engine home so every engine sees it. /skill <name> <text> runs one turn with it loaded. Skills are text, not code: they never change what the agent is allowed to do. See skills.

On by default at http://127.0.0.1:8480:

Terminal window
ka-agent dashboard # prints and opens a one-shot login URL (10 min TTL)

Chat with the agent live over SSE (tool and plan cards, file attachments, a 🕶 private-conversation button), and manage the whole agent from the sidebar: status, models/mode/effort/persona, profiles and roles (created, edited and deleted from the panel), identities with link/unlink, users and groups (invites, quotas, disables), knowledge bases and shared agents (v0.14.0), config, queue, tasks and cron (create, pause, resume, run), memory (review, remember, undo), skills per role, approvals, grants, keys and secrets, extensions (MCP add/remove, plugins, hooks, tools), doctor with safe fixes, logs, history, usage, audit and contacts. The theme follows the OS or pins light/dark. The URL sets an HttpOnly; SameSite=Strict session cookie; mutations are POST-only, and OS-level work (service install, restore, plugin install, update) stays in the CLI by design.

Several people, one panel (v0.14.0): ka-agent user invite --role member --group dev (or Users → invite in the admin) prints a one-time invite link (24 h); the recipient signs in at /login or redeems the invite at /invite with a password, and that account gets its own session, memory and toolset, never the admin pages. For a custom domain, ka-agent setup web writes web.bind and web.public_url: keep the daemon behind a TLS reverse proxy and links use the public URL. For scripts, a web.api_token secret (set with ka-agent secret set web.api_token) opens two bearer-only endpoints: POST /api/ask (queue a turn, optionally wait for the reply) and POST /api/notify (a notice on every surface); without the token both answer 404. See users & accounts.

Terminal window
ka-agent service install # units + start at login + nightly 03:30 backup timer
ka-agent service status # service-manager state + daemon answering?
ka-agent logs -f # the daemon's journal
ka-agent restart # graceful stop; the service brings it back

service install is idempotent and upgrade-safe. On Linux it uses systemd user units (sudo loginctl enable-linger $USER keeps it alive after logout); on macOS, launchd; on Windows, a Task Scheduler entry at log on. Without a service manager, run ka-agent run inside a terminal multiplexer. Backups land in <data>/backups/<timestamp> and rotate to the newest 7. Upgrades are one command: ka-agent update verifies the checksum, swaps the binary, and restarts the service. See ops.

A few settings cover most of the rest:

Terminal window
ka-agent setup search # web search: Tavily (free tier) or Brave
ka-agent mcp add notes -- npx -y some-notes-mcp # any MCP server's tools
ka-agent config set fallback '["openai/gpt-5.1"]' # if the main model fails
ka-agent config set grants.install true # app installs without a card

MCP tools appear to the model as <server>__<tool>; in ask mode each call asks first (the card names the tool). Wider file reach and full access are [grants] blocks; see approvals and connectors & grants.

  • Architecture: the crates and the engine boundary.
  • Approvals: what fails closed, and what is never offered.
  • Users & accounts: one daemon, one organization: invites, groups, quotas, offboarding.
  • Roles: the permission set a user holds; what it partitions, and what it never gets.
  • Roadmap: what is done, what is next.