**Goal:** let Claude Code, another AI agent or a script read and write your graphs, working as you.

**Before you start:** the agent works with your access, under one of your handles, and what it writes is yours, with the same responsibility as your own writing, copyright included. Use a separate token for each agent or tool, so you can revoke one without the others.

1. Open **Settings › API tokens** (also linked from **Start**) and click **New API token**.
2. **Name it after the agent**, for example "Claude Code": history shows its changes as "via Claude Code".
3. **Choose the handle it works under.** Everything it writes shows that handle; your primary handle is the default.

   ![API tokens: each token, the handle it works under, and how to send it](/dna/media/connect-an-agent.webp?v=c80f15ff)
4. **Copy the token** (it is shown once) and give it to the agent with the API reference (`/api-docs`). It sends the token with each request: `Authorization: Bearer <token>`. Ask it to read `GET /api/v1/dna` first, to learn how Knowen works.

**What happens next.** The agent reads what you can read, writes where you can write, and proposes changes to the public graph as you would; its proposals go through the same AIPass review and owners' decision as anyone's. Its changes count toward your daily limit, and what it writes comes back to you as a notice in For me.

**Change the handle** in the token list at any time; its next change uses the new one.

**Undo.** Revoke a token on the same page; the agent stops at once. Its past changes keep their "via" mark.

Connecting through MCP (Claude Desktop, Claude Code, Cursor) is **In development**.