Agents
Kestrel does not have an agent of its own. It runs the coding agents you already use, each through its own official interface, and gives them one shared workspace. Three are supported:
- Claude Code
- Codex
- OpenCode
Kestrel never asks for an API key. Each agent uses its own sign-in on your Mac, and Kestrel never sees a password, a token or a key.
Connecting an agent
Section titled “Connecting an agent”Claude Code
Section titled “Claude Code”There is nothing to install: Kestrel includes Claude Code.
If Claude is not signed in, choose Sign in (see Signing in from Kestrel). If you already use the claude command in a terminal and are signed in there, Kestrel uses that sign-in.
The Claude desktop app’s sign-in is separate and does not count: signing in to the desktop app does not sign Kestrel in.
Install the Codex command:
npm install -g @openai/codexThen choose Sign in in Kestrel, or run codex login in a terminal. Codex signs in with your ChatGPT account or an API key of your own.
OpenCode
Section titled “OpenCode”Install the OpenCode command and connect a model provider:
brew install opencodeopencode auth loginOpenCode counts as ready once it has at least one model provider it can use. It chooses among many providers in a prompt of its own, so it is signed in from a terminal, not from Kestrel.
Signing in from Kestrel
Section titled “Signing in from Kestrel”When Claude or Codex is not signed in, Kestrel shows a Sign in button in three places: in the first-run setup, on the agent’s row in Settings → Connections, and under a message that failed because the agent was not signed in.
The button opens the agent’s own sign-in page in your browser. If the page gives you a code, paste it into the field Kestrel shows. When you are done, Kestrel checks again and tells you the agent is ready.
The sign-in belongs to the agent and is kept where the agent keeps it.
Checking what is connected
Section titled “Checking what is connected”Settings → Connections lists Claude, Codex and OpenCode with one of:
| Status | Meaning |
|---|---|
| Connected | Ready to start a session |
| Not installed | Kestrel could not find the agent’s command |
| Not signed in | The command is there, but it has no sign-in it can use |
| Unavailable | Something else is wrong; hover over the status for the reason |
A row that says Not signed in has a Sign in button for Claude and Codex. After installing or signing in, the status updates the next time Kestrel checks.
Choosing an agent and model
Section titled “Choosing an agent and model”For new sessions. In Settings → General, New sessions start with is either the last agent you used or a fixed choice of agent, model and effort.
Model presets. In Settings → Models & roles, a preset is a named combination of agent, model and effort, such as Codex · High. Presets are what roles point at.
Roles. Also in Settings → Models & roles, you give each kind of work (design, build, review, orchestrating) its own preset, and Kestrel routes each part of a task to the right one. See The right model for each job.
How the agents differ
Section titled “How the agents differ”The three agents do not offer the same controls, and Kestrel can only pass on what each one has.
| Claude Code | Codex | OpenCode | |
|---|---|---|---|
| Kestrel can refuse an action and tell the agent why | Yes | Partly: Kestrel declines, then tells Codex why in a follow-up | Yes |
| Commands the agent itself considers safe | Run without asking | Run without asking | Ask when they reach outside the session’s folder |
| Sandbox for shell commands | The macOS sandbox, set by Kestrel | Codex’s own sandbox | None |
Two things follow from this:
- In Auto, Codex can make a change inside its sandbox without asking. If that change breaks one of Kestrel’s rules, Kestrel can only tell you afterwards.
- OpenCode has no sandbox, so its commands are checked only when OpenCode itself notices them leaving the session’s folder.
The session header warns you with Kestrel tools missing if an agent started without the tools Kestrel gives it.