Docs
Get started
An agent is a folder on your Mac with instructions, skills and tools. This page takes you from nothing to one that works, in about ten minutes.
What you need
- A Mac, Apple silicon or Intel. Agents run on macOS only.
- Claude Code, Codex or pi, installed and signed in. Agents run on Claude Code unless you choose another engine.
- git. Each agent is a git repo.
- The GitHub CLI,
gh, if you want to share an agent or back up to GitHub.
Kith is free and open source. Each run uses your own plan with the provider of the engine it runs on.
Install
Kith is an app and the kith command. The app is where you talk to agents and answer what they ask. The command does the same work from a terminal, a script or another session.
- The app. Get it from Download. It installs the version of the command it needs under
~/.kith/cli. - The command. Run the installer, then the check. The steps and other ways to install are on Install.
curl -fsSL https://kithbot.app/install.sh | sh
kith doctor # checks the install and says what to fix
The installer ends with kith init. It makes your folders, asks whether to back up to private GitHub repos, and offers builder, a starter agent that sets up other agents with you. Run kith init again any time. It only does what is missing.
Make your first agent
One command makes the folder. The name is lowercase letters, digits and dashes. The description is one line.
kith new reading "tracks what I read"
kith ls # your agents
kith paths # where the folders are on this Mac
That creates agents/reading/. Inside it, role/ is a git repo with agent.md, capabilities.yaml, settings.json and skills/. Beside role/ sits memory/, which stays with you.
Open role/agent.md and replace the placeholder lines with what the agent is for and how it should work:
---
name: reading
description: tracks what I read
---
You keep track of what I read. Save each article with one line on why it
matters. On Fridays, list what I finished.
There is nothing to build or reload. The next run uses your edit. To read the full prompt a run would get, without running it:
kith reading --print
If you took builder during setup, you can ask it instead: kith builder starts a session that writes the agent with you. Every field of agent.md is on The agent format.
Talk to it
Every call is a fresh session that reads the agent's memory first, so it picks up where the last one stopped.
In the app
Choose the agent and write to it. When it needs your permission or a decision, it asks with a card in the same chat.
In a terminal
kith reading # an interactive session
kith reading "save this: https://example.com/essay" # one task, then it exits
From a script or another session
kith ask runs the agent the same way, prints only its answer and keeps the conversation.
kith ask reading "what did I finish this month?"
kith ask reading -c "and last month?" # continue, from the same folder
kith ask reading --as books "start a list" # a named conversation, continued from anywhere
kith ask ls # the conversations kept
Add --json for the answer, session and cost as one object. Add --bg to get an id back at once and collect the answer later with kith ask --wait ID.
Inside Claude Code
The installer adds a Claude Code plugin. In any session, your agents appear as kith:reading and so on. Ask for one by name, or type /kith reading followed by the task. Your main session sees one line per agent. An agent's skills load only when it is called.
Give it a skill and a tool
A skill is a folder with a SKILL.md that says how to do one job. A tool is a script the skill runs. Both live in the role, so they are versioned and shared with the agent.
agents/reading/role/
agent.md
skills/weekly-list/SKILL.md
tools/save.py
Write the skill:
---
name: weekly-list
description: Build the Friday list of what was finished this week.
---
1. Read this week's saved articles.
2. Group them by subject, one line each.
3. Send the list.
Then name it in the skills table of agent.md, so the agent knows when to read it. The agent reads a skill only when the task calls for it.
| Task | Skill |
|---|---|
| The Friday list | `weekly-list/SKILL.md` |
| Saving an article | run `{{AGENT_DIR}}/tools/save.py <url>` |
{{AGENT_DIR}} is filled in at run time with the folder of the version that is running.
To use a skill someone published instead of writing one, link it. The id is a name in github.com/anthropics/skills, or owner/repo/path for any GitHub repo.
kith skills available # the anthropics/skills catalog
kith reading skill add pdf # link one, pinned to the commit it is at now
kith reading skills # what the agent has: its own, learned, linked
If a tool runs a program your Mac may lack, list it under requires: in capabilities.yaml, one per line as name: install command. kith deps reading shows what is missing and kith deps reading --install adds it.
agent.md exists. A version that passes is committed to the role's repo. A version that fails never runs. The last good one runs, and the reason is printed.Give it an account
An agent carries no keys. It names the services it needs, and you grant it one of your accounts. The key is stored in your Keychain and reaches only the process that uses it.
1. The agent names the service
In role/capabilities.yaml, as a one-line list:
needs: [notion]
A service is a small file that says which secrets it takes, by name. Kith ships some, such as notion. An agent can bring its own in role/services/<name>.json.
2. You grant an account
An account is a profile named service/account. You can keep several per service, such as notion/library and notion/work.
kith auth set notion/library NOTION_API_KEY # prompts for the key, stores it in the Keychain
kith auth grant reading notion notion/library # reading may use notion as that account
kith auth # who needs what, who has what
A tool then runs with the key in its own environment and nowhere else:
kith auth exec --for reading notion -- python3 tools/save.py
Or let the agent ask
With the app running, an agent that lacks a key asks for it. A card appears in your chat with that agent. You pick an account you already have, or type the key into a private field. Kith saves it to the Keychain, grants it to the agent, and the agent carries on. It is told the name of the key and never sees the value. If you say no, nothing is saved.
To open the same card yourself:
kith keys add notion --profile library --for reading
Take a grant away with kith auth revoke reading notion. Grants keep each agent to the accounts it needs. They are not a sandbox: an agent with a shell can read what your user can.
Run it on a schedule
A schedule runs the same one-off task you would type, at a set time. Turn the scheduler on once per Mac, then add jobs.
kith schedule --install # once per Mac
kith schedule add reading "0 8 * * 5" "List what I finished this week and send it"
kith schedule # every job, its next run and how the last one went
kith schedule run reading ID # run one now
kith schedule log reading ID # the last runs and their output
kith schedule pause reading ID # also resume and rm
The time is five cron fields, in your Mac's local time: minute, hour, day of month, month, day of week. @hourly, @daily, @weekly and @monthly also work. If the Mac slept through a time, the job runs once when it wakes, as long as the miss was under a day.
Nobody is there to approve a tool call in a scheduled run, so a call that would need approval is refused. The agent's own allow and deny rules still apply. Jobs are kept beside the role in agents/reading/jobs.json, so they are never part of what you share.
Reach it from a chat channel
You can message your agents from Telegram, Slack or Discord. The bot runs on your Mac, inside the host that comes with the app, so it answers while your Mac is on. You bring a bot token from the chat service and grant it to serve, which is the part of Kith that runs the channels.
Telegram
kith auth set telegram/home TELEGRAM_BOT_TOKEN
kith auth grant serve telegram telegram/home
Discord
kith auth set discord/home DISCORD_BOT_TOKEN
kith auth grant serve discord discord/home
The bot needs the Message Content intent. It works in one server, where it makes a channel for each agent.
Slack
kith auth set slack/work SLACK_BOT_TOKEN
kith auth set slack/work SLACK_APP_TOKEN
kith auth grant serve slack slack/work
The Slack app runs in Socket Mode, so it needs no public address. The scopes and events it needs are listed in the host README.
Link your own chat account
The bot serves only chat accounts that are linked to a person Kith knows. In the app's settings, choose Link Telegram or Discord to get a one-time code, then send it to the bot:
/link CODE
Then write to an agent by name. In a thread, the agent that answered last keeps answering.
@reading what did I finish this month?
/default reading # this chat goes to reading unless you name another
/stop # stop the run in progress
On Slack, commands start with ! in place of /, as in !link CODE.
See what it cost
Kith keeps a ledger of every run with its agent, version, model and effort.
kith cost agents # agents side by side, this month
kith cost agents week # or today, month, all
kith cost agent reading # one agent: by day, by version, by model, its costliest runs
kith cost csv # every request, for a spreadsheet
Amounts are list API prices. On a subscription they show usage, not a bill. Runs on Claude Code are recorded per request. Runs on another engine are recorded as one row per run.
To cap an agent, give it a monthly limit in dollars: kith reading set limit 20. kith reading set limit none removes it.
Roll back a change
Every version of a role that passes its checks is a commit in the role's repo. That includes changes the agent made itself, such as a skill it learned.
kith history reading # every committed version, newest first
kith restore reading COMMIT # make the role what it was then, as a new commit
A restore is itself a commit, so you undo it with another restore. The next run uses the restored version. Runs already in progress finish on the version they started with.
To step back without changing any files, pin the previous good version, and unpin when you are ready to follow your edits again:
kith rollback reading
kith unpin reading
Restoring a role never touches the agent's memory, data or files. They live beside the role, not in it.