Tokens
A token says who is calling and which contour it belongs to. There are two kinds.
| Kind | Who holds it | Opens | Does not open |
|---|---|---|---|
| Owner token | the owner of the machines | the owner’s page, the HTTP API | the MCP server |
| Agent token | one agent (Claude Code, Codex, your program) | the MCP server, within that agent’s grant; the HTTP routes for calling tools from the next server release | the owner’s page |
Agent tokens
- The owner creates one per agent on the Agents tab of their page. It is shown once.
- Every call made with it is recorded under that agent’s name, and the owner can revoke it there at
any time; a revoked token gets
unauthorized. - What it may do is the agent’s grant, never more than each machine’s ceiling allows.
- A client that signs in through the browser receives an agent token the same way, after the owner approves it once.
Keeping a token safe
- Read it from the environment (
$CMDOP_TOKEN). Never print it, log it, commit it, or put it in a URL: send it only asAuthorization: Bearer. - One token per agent: when one leaks, revoke it without touching the others.