A secure home for your agents.
Cloud agents with everything good about local: your repos, your subscriptions, and builds that run just like on your own machine.
App · Website · Architecture
Kestrel runs Claude Code or Codex on a box you own, driven from a chat in the browser or on your phone. Each thread gets its own workspace, sandbox and, when it needs one, a live desktop you can watch and take over. Close the laptop; the agent keeps going.
- Your harness, your account. Use your own subscription or API key. Compatible API-key models work across Claude Code, Codex and OpenCode; choose their route in the model picker and switch mid-thread. See harness compatibility.
- Your repos, your branches. The agent checks out what it needs and works on its own branch. Review the diff in the thread, or let it open the PR.
- Live desktop. Browsers, Blender, Roblox Studio: watch the GUI apps the agent drives and take control.
- Sandboxed by default. Every run is locked into bubblewrap with per-thread CPU, memory and disk limits and its own network namespace. Model keys stay on the host; agents only get short-lived tokens.
- Built-in tools. An MCP server for screenshots, the shell, questions, previews, automations and messaging other threads.
- No ports to open. The box dials out to a Cloudflare control plane, so it runs anywhere. Kestrel's managed boxes are reached over HTTPS instead.

Tool calls and command output stream into the thread as the agent works.
![]() |
![]() |
| The agent asks when it needs you | Your harness's slash commands and skills |
Run the box on your own computer and use it from app.kestrel-agent.com and the mobile app:
curl -fsSL https://raw.githubusercontent.com/jarenm1/kestrel/main/scripts/install-box.sh | sh # or: npx kestrel-box login && npx kestrel-box installIt pairs the machine with your account and installs the box as a service. Linux runs it natively, Windows inside WSL2, macOS inside a Lima VM the installer manages. Details: docs/byo-box.md.
Nothing in the cloud is required. Needs Bun and Node 22 (for wrangler); works on Linux, macOS and Windows.
bun install --frozen-lockfile
CLOUDAGENTS_FAKE_AGENT=1 bun run devOpen the printed URL (http://localhost:5173/auth/dev-login) to sign in as dev. This starts the Worker (:8788), a box connected to it (:8797, data in .data-dev/) and Vite (:5173); Ctrl+C stops all three. The public landing page is at http://site.localhost:5173/.
- Fake agent:
CLOUDAGENTS_FAKE_AGENT=1runs a scripted agent that needs no model key. Drop it for a real agent and add a key or subscription in Settings › Connections. Under API keys, choose Add API key, select a provider, then enter and save the key. Saved providers stay visible; remove an unsaved row or disconnect a saved key to return that provider to the menu. - Expired GitHub access: click Reconnect GitHub in the warning to authorize access again. After GitHub authorization, you return to the same page, including its query string and fragment, rather than Settings.
- Sandbox and desktop (Linux + Nix):
nix runruns the same stack with the flake's toolchain and turns on the bubblewrap sandbox and the task desktop. Without Nix, agents run unsandboxed and there is no desktop on macOS and Windows. On NixOS use the flake (npm'sworkerddoes not start there). - Linux without the Nix dev stack: the desktop needs weston 14 or newer, Xwayland, openbox, hsetroot, xterm, xdotool, ffmpeg with x11grab and libx264, and
xdamage-capture. Ubuntu 24.04 ships weston 13; see desktop dependencies for a pinned Nix bundle. AddCLOUDAGENTS_SYSTEMD=0if you have no user systemd manager. - Windows: agent commands run through POSIX
sh(fromPATHor Git for Windows). - Several stacks on one machine: ports shift by
(uid - 1000) * 100 + KESTREL_DEV_SLOT * 10, so give each running stack its ownKESTREL_DEV_SLOT(0-9). The ports are printed at startup; forward the app port withssh -Lto use a remote dev machine.
Before a PR: bun run typecheck (and bun run build:app if packages/app or packages/mobile changed). Contributing workflow: AGENTS.md.
| Path | What |
|---|---|
packages/app |
React SPA (Vite, Tailwind, shadcn/ui, TanStack Query). One build serves the public pages on kestrel-agent.com and the app on app.kestrel-agent.com. |
packages/control |
Cloudflare Worker: GitHub sign-in, control API, the managed-box fleet registry and the legacy relay to the box. Serves the built app. |
packages/server |
The agent box: harnesses in bubblewrap, MCP, credential broker, desktop. Dials out to the control plane. Also the kestrel-box CLI (src/cli). |
packages/kestrel-box |
npm launcher for the kestrel-box binary (not a workspace). |
packages/protocol |
Shared Effect schemas: relay frames, control API, REST. |
packages/mobile |
Expo app (README). |
packages/desktop |
Electron desktop app for the same SPA, with GitHub-release auto-updates (README). |
Deeper docs: architecture and ownership, goal state, the box: harnesses, sandbox and limits, bring your own box with cloud overflow (design).
- App and control plane: Workers Builds deploys
main(bun run build:app, thenwrangler deployinpackages/control). By hand:bunx cf builds create d87f7f0a-5dee-45c5-bb88-e5829c3a7792 --branch main. - GitHub sign-in: a GitHub OAuth app with callback
https://app.kestrel-agent.com/auth/github/callback;GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETare secrets on Workerkestrel. Only logins inALLOWED_GITHUB_LOGINSinpackages/control/wrangler.jsonccan sign in; update both the production and preview lists to change access. Existing sessions are checked against the list too. - Restrictive Wi-Fi / desktop TURN: configure
KESTREL_TURN_KEY_IDand secretKESTREL_TURN_API_TOKENon the control Worker, then update/restart boxes. Registered boxes automatically supply expiring Cloudflare Realtime TURN credentials to viewers, including TLS on port 443; explicit local TURN wins. Provider bandwidth is billed to the operator. See setup and limits. - Production box:
nix run .#box-autoon the host; it followsmain(orKESTREL_BOX_REF) and restarts once the box is idle, so merges don't interrupt agent runs (details). - Kestrel's boxes: a managed fleet that operators add and drain; users not yet assigned to a box use the legacy relay (details).
- Previews: every branch gets
https://<branch with / replaced by ->-kestrel.jarenmchugh.workers.dev(own empty Hub, no secrets, no box; UI review only).


