Hosted agents
Surfaces: web app (Agents) · desktop app (launcher, chat and terminal tabs, launch approvals) · CLI (kcap daemon, kcap agent) · your agent (start another agent)
The web app is at https://<your-workspace>.kcap.ai for a cloud workspace; on the local edition the same pages are served from your machine. The desktop app opens it from Help and support → Open dashboard, and kcap local open opens the local one from a terminal
A hosted agent is a coding agent you work with through kcap instead of in a terminal of your own. It runs on a machine you connect: your laptop, a workstation, a shared box. From the browser or the desktop app you give it work, follow its conversation, answer its permission requests, and let teammates do the same. The daemon is the background process on that machine that makes it reachable and launches the agent CLIs installed there
What you can do
Section titled “What you can do”Make a machine available. On the machine, with kcap set up and the vendors you want installed and signed in:
kcap daemon start # foreground, for a lookkcap daemon service install # a background service that survives logout and crasheskcap daemon service statusThe desktop app’s setup turns the daemon on for you. When it is not running, the launcher shows a banner with Start daemon, or Reconnect when it has lost the connection. Help and support → Settings… → Daemon sets Machine name (Rename restarts the daemon and relaunches the app), Agent capacity, the most agents running at once (0 means no limit; lowering it lets running agents finish), and Resume agents after a restart. Agents in the web app then lists the daemon and the vendors it can launch: Claude Code, Codex, Cursor, Copilot, Gemini CLI, Kiro, OpenCode, Antigravity, Pi, Muse Code and Grok Build, whichever it found. If a vendor you expect is not in that list, it is not installed, not signed in, or not on the PATH of the machine running the daemon


Launch from the browser. Agents → New agent: choose the daemon, the vendor, a repository the daemon knows (or type a path), a model and effort where the vendor supports them, the prompt, any files, Sharing, and the permission controls. The agent runs in a fresh git worktree on that machine. kcap repos add <path> registers a repository for the picker; a successful launch remembers its path




Launch from the desktop app. Click New session at the top of the rail, or press ⌘N (Ctrl+N on Windows and Linux). Type a goal in “What should we build?”, or paste an issue, pull request or work-item URL. The chips under the goal choose the machine (shown only when you own a daemon on another machine), the repository (Add repository… adds one), the harness and model, and the effort. For Claude a chip sets the permission mode; for Codex, two chips set the sandbox and the approvals. Attach files with the paperclip, by dragging them in or by pasting. Press Enter or the round start button to launch; Shift+Enter adds a new line. If the chosen account fails, Use default retries with the default one. Settings → Accounts lists each Claude Code and Codex account with usage bars for its limits, and Add account… registers another; each account’s menu offers Refresh, Rename, Reconnect and Remove. The desktop launcher has no sharing control: set Sharing from the web app’s agent page

Launch from the terminal and walk away. On the daemon’s own machine, kcap agent start takes any vendor the daemon lists:
kcap agent start gemini # in this checkout, attached to your terminalkcap agent start cursor --worktree -d # in a throwaway worktree, detachedkcap agent start claude --title "Fix the flaky test"kcap agent lskcap agent attach <id>kcap agent stop <id>kcap agent resume <id> # bring back an agent a restart interruptedDetach from an attached agent with Ctrl-Q then d. --private runs it without registering it in the web app; the session is still stored. --daemon <name> picks a daemon when more than one runs on the machine, --title names the agent and --account <id> chooses which of the vendor’s signed-in accounts it uses
Talk to it. In the web app, open the agent’s card to read the live conversation, send another message, or type / to pick one of the vendor’s slash commands and skills. Claude and Codex can also show a terminal. In the desktop app, select the session in the rail. The Chat tab has a “Write a message” box: Enter or Send sends, Shift+Enter adds a new line, the Up and Down arrows recall earlier messages, and Esc or the interrupt chip stops the current turn. A message that could not be delivered stays queued with Send again and Discard. The Terminal tab shows the agent’s terminal, with Detach and Reattach. Open in web on the session opens it in the web app. From a terminal, kcap agent attach <id> joins the agent. Leave and come back; the agent keeps running on its machine


Answer a permission request. A pending request shows in the agent’s card, in the desktop app, and as a notification, including after a reload. In the web app, the buttons are Allow, an always-allow choice and Deny. In the desktop app, the request is a card in the chat with Deny, Allow always and Allow; a question card takes an answer, with the number keys 1 to 9 and the arrow keys choosing an option. While the desktop app is in the background, the operating system notification carries Allow, Always and Decline, so you can answer without opening the app (see Notifications). An agent attached to your terminal asks there. A prompt answered in one place is retired from the others
Choose how much the agent may do on its own. For Codex, Sandbox & approvals in the web app’s launch dialog chooses between workspace-write/on-request and the other postures; never means no requests reach you. For Claude, Permissions chooses the permission mode. The desktop launcher’s permission-mode, sandbox and approvals chips set the same things
Work on one agent together. Set Sharing at launch in the web app, or change Visibility on the agent’s page. Each input is attributed to its sender. The desktop app’s Team scope in the rail lists the sessions teammates have shared with you. For a handover, ask the agent to summarise what it changed, tested and left, then let your teammate continue in the same agent. Agree who is directing it so you do not send conflicting instructions. On the local edition you are the only user, so there is no one to share with
Decide what the people you share with can do. In the agent’s sharing popover, grant each of three privileges to a person, a team, a project or the whole org:
- Answer questions: answer the agent’s questions
- Approve tool use: answer the agent’s permission requests
- Send without approval: send messages to the agent without waiting for your approval
Privileges add up: a person gets everything granted to them, any team or project they belong to, and the org. A privilege granted to a group cannot be taken away from one of its members. You always hold all three on your own agent, and the people you share with see their own privileges, read-only, in the same popover. Without the privilege a request card is read-only and says who it is waiting for. While the agent is asking a question, someone without Answer questions cannot send it messages or keys either, because the agent would take what they type as the answer; they are told the agent is waiting on a question they can’t answer. This is a switch your workspace may not have on; without it, anyone the agent is shared with can send messages and answer requests
Approve messages before they reach the agent. Message approval is on by default for new agents, and you can turn it off at any time. While it is on, people without Send without approval have their messages and attachments held for you; you get a notification and see each one with Approve and Reject. The sender sees it waiting, can Withdraw it, and sees whether it was sent. They cannot send keys, stop the agent or resize its terminal. Your own messages are never held, and turning approval off does not release messages already held
Agents started before privileges. They keep their previous behaviour: everyone the agent is shared with can answer, approve and send, and nothing is held. Saving privileges for the agent switches it over
Stop an agent. In the web app, Stop agent on the agent’s page. In the desktop app, Stop in the session’s header, or Stop in the agent’s submenu in the tray menu. From the terminal, kcap agent stop <id>
Fork a session from a turn. A fork is a hosted agent started from a point in a stored session; it is done from the session’s transcript in the web app, so it lives on the Sessions page. On the local edition forks are off unless turned on in the server’s environment
Let an agent start another agent. Ask your working agent to hand a task to a separate hosted agent on your daemon. The started agent is an ordinary hosted agent under Agents, and your agent does not wait for it; the desktop app shows the hand-off as a “Started hosted agent” card in the chat. This is a switch your workspace may not have on; on the local edition it is off unless turned on in the server’s environment
Hand the migration tests to a separate Codex agent on my daemon and carry on with the docsRestart the daemon without losing work.
kcap daemon restart --when-idle # after running agents finishkcap daemon restart --force # now; running agents are terminatedkcap daemon statusAfter a CLI update, macOS and Linux daemons notice the new binary and restart when idle; the desktop app does the same. With Resume agents after a restart on (desktop app, Settings… → Daemon), the daemon brings running agents back as it starts; with it off, they wait as interrupted until you run kcap agent resume <id>
Launch approvals
Section titled “Launch approvals”Every launch that comes through the server, whether a dashboard agent, a PR review or a flow participant, is checked against the daemon’s own policy before anything runs. The daemon’s owner is always allowed; for anyone else the first matching rule wins, and otherwise the default applies: allow, deny, or prompt, which asks the owner in the desktop app and denies if nobody answers
kcap daemon consent showkcap daemon consent set-default promptkcap daemon consent allow --requester alice --kind review-flowkcap daemon consent deny --repo '/work/private/*'kcap daemon consent remove 0 # by the index `show` printskcap daemon consent logA service installed by kcap daemon service ensure starts with prompt; a daemon started by hand defaults to allow. Launches you make yourself with kcap agent start bypass the policy
Answer a launch request in the desktop app. The prompt window names the requester, the kind of launch, the vendor and the repository, and counts down to the automatic denial. Allow once lets this launch run, Allow & remember also adds a rule for next time, and Deny refuses it. While a request waits, the tray menu offers Review pending launches…

Pause launches. Pause new launches in the desktop app’s tray menu puts a deny-everyone rule first in the policy, so launches from anyone else are refused until you turn it off; your own still run
Read the decision log. Every decision is written to a log you can read while the daemon is stopped. In the desktop app, Launch approvals… in the Window menu, the tray menu or Help and support lists the recent launch decisions on this machine. From the terminal, kcap daemon consent log

Help me get unstuck
Section titled “Help me get unstuck”A vendor is missing from the launch dialog. The daemon could not find its binary, or it is not signed in. Install and sign in on the daemon’s machine; set KCAP_<VENDOR>_PATH (for example KCAP_CURSOR_PATH) if the binary is outside the daemon’s PATH; restart the daemon. A service captured its PATH at install, so reinstall it after changing your shell’s PATH
The dialog says the daemon needs an update. The CLI on that machine is older than the feature you are using. Update it there
My launch was refused. The daemon’s launch policy did not allow you, or its owner paused new launches. Its owner can add a rule, answer the prompt or resume launches
The agent is waiting and I did not see a request. Open the card; the request is there. Turn on in-app notifications if you want the bell, or the desktop app’s notifications under Settings… → Notifications
The desktop launcher says the daemon is not running. Click Start daemon, or Reconnect if it lost the connection. If it will not stay up, read on
The daemon keeps disconnecting. Usually the service’s environment: a sign-in that expired, a PATH that changed, or a consent prompt timing out. kcap daemon logs says what the daemon last saw and kcap daemon doctor checks its environment. If neither points at the cause, The daemon keeps disconnecting in Troubleshooting walks through the checks in order
I can’t answer a request, send a message or stop a shared agent. Its owner has not granted you that privilege, or message approval is on and you do not have Send without approval. If the agent is asking a question, you need Answer questions to send it anything until the question is answered. The card or control says who it is waiting for
Agents did not come back after a restart. Resume agents after a restart is off. Run kcap agent resume <id> for each, or turn the setting on
kcap agent says Unix only. The local kcap agent commands are not available on Windows. Launch from the browser or the desktop app instead