Concept

Agent connections and tokens

What a connected agent can and can't do, how scopes follow your role, how long a sign-in lasts, disconnecting, and when to paste a token instead.

Last updated Open in ClaudeOpen in ChatGPT
On this page

An agent connects to your business in one of two ways. Signing in from the agent is the usual one: you approve it in the browser and nothing needs copying. Pasting a token suits CI and scripts. Either way the connection belongs to one business and to the person who approved or created it, and it carries a scope. Both come with the Builder plan and up; see Pricing.

Who can connect one

  • Signing in: anyone with editor access or higher on the business, from the agent's browser window. See Connect your agent.
  • A pasted token: an owner or admin, on Settings → AI Agents with Paste a token instead.

On Settings → AI Agents, an editor sees and manages only the connections they made. Owners and admins see every connection on the business and can disconnect any of them.

A business can hold 20 live connections and tokens together. Use one per agent and per machine, so you can remove one without breaking the others. Connecting Claude.ai or ChatGPT to the same business again replaces your earlier connection from it. Each computer running Claude Code, Cursor or Codex keeps its own connection.

Scopes

ScopeWhat the agent can do
Look around (read-only)Read the site's code, what the draft changes, the backend's schema, data and logs, edge functions, and the business itself: goals, roadmap, documents, content and analytics.
Make changes (read + act)Everything above, plus change the business: site files, backend tables, rows, functions and jobs, CMS content, documents, redirects, goals, roadmap and decisions. Anything risky stops for approval.

A read-only connection does not even see the act tools. Reads are free with either scope.

Change the scope

Each row on Settings → AI Agents has a Read-only / Read + act switch, for signed-in connections and pasted tokens alike. The new scope applies from the agent's next call, with no new sign-in or token. After a switch to Read + act, start a new session in the agent so it lists the act tools: a running session keeps the tool list it started with. An owner or admin can switch someone else's connection to read-only, and only the person who connected it can give it more access. To stop an agent for good, disconnect it.

Each row also shows Connected while the agent has called in the last few minutes, when it last called and how many calls it made this week.

See what an agent changed

Click Recent changes on a row to list what that agent changed on the business, newest first: content it edited or published, documents, roadmap tasks, redirects, site files, publishes and settings, including tasks it handed to Willo. Editors see this for their own connections; owners and admins for every connection. Every change also shows the connection and its owner in Activity. See See who changed what.

The token follows its creator

A token can never do more than the person who created it can do right now. Willo checks that person's role on every call, not only when the token was made.

  • Acting needs editor access or higher. If the creator drops to viewer, an act token keeps reading but its changes are refused with the code rank.
  • Revenue figures and the Stripe customer list need owner or admin. If the creator stops being an owner or admin, those two reads are refused.
  • If the creator leaves the business, the token stops working.

Connections are refused while the business is paused or suspended, or its plan is below Builder or has lapsed, and work again once that is fixed. They are removed when the business is transferred to a new owner, and deleted with the business.

How long it lasts

  • Signing in: the agent renews its access by itself every hour. The connection ends after 90 days without use, and in any case a year after you approved it; then the agent asks you to sign in again.
  • A pasted token: pick 30, 90 or 365 days when you create it. 90 is the default. The card warns when a token is within a week of expiring. An expired token is refused like a revoked one.

Shown once

Willo shows a pasted token once and stores only a hash, so nobody at Willo can read it back. The card then lists it by name and public id, the part after willo_agt_ that is not secret.

Revoking and rotating

Disconnect on a signed-in row, or Revoke on a token's row, stops it at once: any agent still holding it is refused from the next call.

To rotate a pasted token, create a new one, switch the agent to it, then revoke the old one. Rotate straight away if a token was ever pasted into a chat, an issue, a commit or a shared document.

Keeping it safe

  • Keep the token in an environment variable, not in a config file. Use a token does this for each client.
  • Never commit a token. Every token has a fixed shape with a checksum, so a secret scanner can tell a real token from a look-alike. The exact pattern is on Token format.

Use a token

Create the token on Settings → AI Agents. Willo shows it once, with the setup below filled in. Each setup keeps the token in an environment variable:

export WILLO_AGENT_TOKEN="willo_agt_…"
  • Claude Code: claude mcp add --transport http --scope project willo https://api.willo.ai/mcp --header 'Authorization: Bearer ${WILLO_AGENT_TOKEN}'
  • Cursor: in .cursor/mcp.json, give the willo server "headers": { "Authorization": "Bearer ${env:WILLO_AGENT_TOKEN}" }, then start Cursor from that shell.
  • Codex CLI: in ~/.codex/config.toml, give [mcp_servers.willo] the line bearer_token_env_var = "WILLO_AGENT_TOKEN".

On Windows PowerShell, use $env:WILLO_AGENT_TOKEN = "willo_agt_…" instead of export. A 401 means the agent can't see the variable.

A token covers one business. For a second business in the same client, give the entry and the variable their own names, such as willo-second-business and WILLO_SECOND_BUSINESS_TOKEN.

What a connection can never do

Whatever its scope, a connected agent cannot:

  • approve an approval card, its own or anyone else's;
  • see cards raised by other tokens or by Willo's chat;
  • read the business's secrets, such as API keys added on the dashboard;
  • reach any other business;
  • invite people, change roles, change billing or delete the business;
  • build or change Agent Programs. Those are built in Willo's chat.

Related: Security model, Token format.