Agents

Connect a coding agent, on your terms.

Caddi includes a local MCP server. Any coding agent that can run a stdio MCP server can connect to it. An agent gets no access until you approve it in the app, and it only ever sees the workspace and sites you choose.

Step one

Connect in one click.

Open the Agents dialog in Caddi. Set up lists the coding tools it found on your Mac: Claude Code, Codex, Cursor, Claude Desktop, Gemini CLI, Windsurf and OpenCode. Choose Connect, then start or restart the tool. Caddi adds only its own entry, keeps a backup of any file it changes, and the tool must still ask and be approved. Remove takes the entry out again.

For any other tool, choose Copy configuration and paste it into the tool's MCP settings. The paths are filled in for your machine. With the downloaded app the tool starts the client with Caddi itself, so there is nothing else to install; a source run uses node.

  • --rendezvous points at a small file holding the address of the current local socket, and nothing else. The same configuration keeps working across restarts.
  • --name is a display label. It is not verified, which is why you compare the code.
  • The configuration contains no password, cookie or reusable secret.
MCP configuration
{
  "mcpServers": {
    "caddi": {
      "command": "/Applications/Caddi.app/Contents/Resources/caddi-connector/node",
      "args": [
        "/Applications/Caddi.app/Contents/Resources/app/scripts/caddi-desktop-client.mjs",
        "--rendezvous", "<data-dir>/mcp/runtime.json",
        "--name", "Coding agent"
      ]
    }
  }
}

Step two

Compare the code, then Allow.

The agent’s first Caddi call asks to connect, and the tool tells you a code like ABCD-EFGH. Caddi shows the same code with one Allow button, announces the request with a toast, names the agent in the sidebar and bounces its Dock icon. Allow gives the current project workspace with view and control, the sites already open there, and no screenshots or saved logins. Change access shows every choice:

  • Workspace. One project workspace, or one new empty workspace the agent creates for itself. Personal workspaces cannot be shared.
  • Sites. A list of origins such as http://localhost:3000, which may be empty. When the agent tries to open another site, Caddi asks you, “Claude Code wants to open caddi.build”, and Allow adds it for the session.
  • Access. View pages, or view and control them.
  • Can see the page (screenshots). Off by default. A screenshot shows anything visible; Caddi blanks sensitive fields and embedded frames first.
  • Can use saved logins. Off by default. Only Vault logins you mark for agents, on the sites above, with control. You confirm the first use of each, and the Vault’s Activity records every attempt.

Nothing is permanent. A request waits ten minutes with the same code. A session lasts at most eight hours. After Caddi restarts, every agent must connect and be approved again.

The approval card
Claude Code wants to connect

Code     64D8-7F1D    matches your terminal
Gets     Studio work · View and control
         localhost:3000
         No screenshots or saved logins

         Reject   Allow        Change access ›

In use

Observe, take the lease, act, give it back.

Each open page is a target. A target goes stale whenever the page navigates, scrolls, the viewport changes or you pause agents, and the agent must observe again to get a current one.

You see it happen: a cursor with the agent’s name moves to each target before it acts, and the toolbar says “Claude Code is driving” with Take over, which ends its control at once. After a read, it says “Claude Code is reading this page” for a few seconds.

Observation and reading never include text field values, password and other sensitive fields, content inside cross-origin frames or closed shadow roots, cookies, or any way to run script in the page. Screenshots only with your permission.

A typical sequence
caddi_workspaces        → the granted workspace and a grantId
caddi_targets           → the open pages in that workspace
caddi_observe           → URL, viewport and elements with ids and state
caddi_acquire_control   → the input lease, up to 30 seconds,
                          renewed by each action for up to 5 minutes
caddi_click / caddi_type / caddi_press_key / caddi_select / …
caddi_wait              → until the page, text or element is there
caddi_release_control   → give the lease back

Page notes

What an agent receives from Annotate and Live.

When you send notes, Caddi creates a narrow grant for that agent covering exactly those notes. An agent waiting on caddi_live_wait gets them at once. Otherwise it lists its deliveries with caddi_feedback and fetches one. Either way a note is delivered once.

Live instructions arrive through the same wait, with what you said and the elements you pointed at, and the agent answers with caddi_live_reply: a line in your toolbar and an outline on the element it means. The Sent list shows Received when the agent’s call returned the note. That does not mean it acted on it. Deleting a note before the agent has it withdraws its access.

The Markdown the agent gets first
# Page notes — Harbor — Pricing
URL: http://localhost:3000/pricing
Viewport: 1280×800

## 1. button "Save changes"
- Where: `.plans > .actions > button`
- Source: `src/Plans.tsx:42`
- Component: App > Plans > SaveButton
- Note: Make this the primary action

## 2. h2 "Plans"
- Where: `#pricing > .title`
- Note: Shorter title, sentence case

The Board

What you collected, for the agent to read.

Each project workspace has a Board of notes, links, pinned and snapped pages and screenshots. An agent connected to that workspace lists the cards with caddi_board and looks at an image card with caddi_board_image. With control it can add a note of its own with caddi_board_note, shown as “From Claude Code”.

Agents never see another workspace’s board, and Pause agents blocks it like any page. More about the Board

Reading the board
caddi_board        →  4 cards
  note   "Lead with getting paid"      by you
  image  "Their pricing table"         linear.app/pricing
  link   Stripe pricing                stripe.com/pricing
caddi_board_image  →  the picture, ≤ 1600 px wide
caddi_board_note   →  "The yearly toggle needs your call."

Reference

MCP tools

The server key is caddi. Tool names start with caddi_, an internal identifier that may be renamed in a later release.

Workspaces

ToolWhat it does
caddi_workspacesList the workspaces granted to this agent, with grant IDs and allowed operations.
caddi_workspace_managementRead whether the owner allowed this session to create its own workspace.
caddi_workspace_createCreate the one isolated workspace the owner approved for this session.
caddi_workspace_retireGive up this session's managed workspace. Saved site data is kept.
caddi_workspace_reopenReopen the same retired workspace, with fresh grants and no restored lease.
caddi_targetsList the current page targets in an authorized workspace.

Reading pages

These are read-only and need only view access, no lease. Page text in every result is marked as untrusted.

ToolWhat it does
caddi_observeThe structure of a page: elements with ids, roles, kinds, labels, bounds and state. Filter by role or text and page through long pages. Includes same-origin frames and open shadow roots. Never text field values.
caddi_read_pageThe page's content as Markdown: the main content by default, everything visible, or one observed element, in parts. Never field values, protected fields, hidden text or frames from other sites.
caddi_extractLinks, tables, headings, page metadata, or form fields with labels and types (never values), as structured data.
caddi_waitWait until the page has loaded, some text appears, or an element appears, for at most 15 seconds.
caddi_screenshotA picture of the visible page, only if you ticked “Can see the page (screenshots)”. Sensitive fields and embedded frames are blanked.

Acting on pages

These need control access and the workspace's input lease. Before each one, the agent's named cursor moves to the target.

ToolWhat it does
caddi_acquire_controlTake the exclusive input lease for a workspace, up to 30 seconds. Each successful action renews it, never past five minutes.
caddi_release_controlRelease the lease. The agent's cursor goes with it.
caddi_navigateNavigate the page to an http or https URL inside the granted sites, and wait for it to load.
caddi_clickClick an element from the current observation, or, with screenshots allowed, a point in the viewport.
caddi_fillReplace the value of a plain text field in one step. Login and sensitive fields stay with you.
caddi_typeType text key by key into the focused field or the one given. Refused on sensitive and login fields.
caddi_press_keyPress one allowed key or chord, such as Enter, Escape, Tab, an arrow or Meta+A. No clipboard, browser or system shortcuts.
caddi_hoverMove the mouse over an element, or a point with screenshots allowed, so hover menus open.
caddi_selectChoose an option in a native select by its value or label.
caddi_dragDrag from one element or point to another with real mouse events. Native HTML drag and drop is not supported.
caddi_scrollScroll the page to a position.
caddi_scroll_byScroll the page, or a scrollable element, by an amount.
caddi_scroll_into_viewScroll an element into the middle of the viewport.

Vault

Both need “Can use saved logins for this workspace” at approval, and each login needs its own “Agents may use this login” switch. Neither ever returns a password.

ToolWhat it does
caddi_loginsThe Vault logins this session may use: an id, the site, a label and the username. Only this workspace's logins, on granted sites.
caddi_fill_loginAsk Caddi to fill a Vault login into the visible sign-in form on the login's exact site. Needs control and the lease. The first use waits for your Allow once, Allow for this session or Don’t allow.

Notes and Live

ToolWhat it does
caddi_live_waitWait for the next thing you send this agent: notes from Annotate, or a Live instruction with the elements you pointed at. Returns as soon as there is one, or “nothing yet” after about 25 seconds. Called in a loop.
caddi_live_replyDuring Live, answer you where you are looking: one short line in Caddi’s toolbar and, with an element number from the instruction, an outline on that element with the agent’s name.
caddi_feedbackList the page notes you sent to this session in a workspace.
caddi_receive_feedbackFetch one sent note by its delivery reference.
caddi_read_artifactRead a chunk of an attachment, such as a screenshot, that belongs to a received note.

The Board

Only the board of the agent’s own workspace. Pause agents blocks it like any page.

ToolWhat it does
caddi_boardThe workspace Board’s cards: notes, links, and images with their caption and source page, with position and who added each.
caddi_board_imageOne image card from the Board as a picture, at most 1600 pixels wide.
caddi_board_noteAdd a note to the Board, marked as the agent’s. Needs control.

Asking you for help

ToolWhat it does
caddi_request_attentionAsk you for a login, help, or a review of a blocked task. Does not focus a window.
caddi_attention_statusRead the status of this session's attention request.
caddi_cancel_attentionCancel this session's attention request.

Service connections

These need a separate grant. In the current build they cannot be created with real credentials, so the list is normally empty.

ToolWhat it does
caddi_servicesList the service connections granted to this session.
caddi_service_callRead-only call on a granted connection: repository and issues (GitHub), projects and deployments (Vercel), domains (Resend).

When something fails

Error codes

CodeWhat it means
RENDEZVOUS_UNAVAILABLECaddi is not running, or the configuration points at a different copy of Caddi. Start Caddi, then choose Connect again or copy the configuration again.
ACCESS_DENIEDThe page is outside the approved origins, the grant expired or was revoked, or the tool is not part of the approved mode.
PRIVACY_BLOCKEDAgents are paused in that workspace.
LEASE_BUSY, LEASE_INVALIDAnother controller holds the workspace, or the lease ended: it expired, was released, or you took over. Acquire control again.
STALE_TARGETThe page changed since the agent observed it. Observe again and use the new target and element ids.
STALE_ELEMENT, OBSCURED_ELEMENTThe element moved, changed or is covered. Observe again.
SENSITIVE_OR_STALE_TARGETThe element is protected or the target is out of date. Observe again.
SCREENSHOTS_NOT_ALLOWEDYou did not tick “Can see the page (screenshots)” for this agent. Disconnect it and approve it again with the option, or let it use observation.
LOGIN_CONFIRMATION_PENDING, LOGIN_NOT_ALLOWEDCaddi is asking you whether this agent may use the login, or you said no for this session.
LOGIN_SECRET_EXPOSEDThe page shows a saved password as text, so reading, waiting and screenshots of that page are refused.

How these limits are enforced