Create a token
- Open AI assistants and choose Create token under Tokens. Only owners and admins can.
- Give it a name you’ll recognize, such as “Cursor on my laptop”.
- Under Projects it can read, choose one project or all of yours in this workspace.
- Under Stops working, choose In 7 days, In 30 days, In 90 days, In 1 year or Never.
- Leave Allow replies and implementation reports on if the agent should report back.
- Choose Create token, and copy it straight away. You won’t see it again.
Use it
Keep it in an environment variable, so it stays out of your project files:
export AGENTIC_EDIT_TOKEN="paste-your-token-here"That lasts until you close the terminal. To keep it, add the line to your shell’s startup file. Then connect your agent.
Claude Code
In your project, run the command below. It saves the address in .mcp.json, with a reference to the variable rather than the token.
claude mcp add --transport http --scope project agentic-edit https://agentic-edit.com/mcp --header 'Authorization: Bearer ${AGENTIC_EDIT_TOKEN}'Start claude in the same folder, and say yes when it asks about using Agentic Edit from this project. claude mcp list then shows it as connected.
Codex
codex mcp add agentic-edit --url https://agentic-edit.com/mcp --bearer-token-env-var AGENTIC_EDIT_TOKENCursor
In your project, create or open .cursor/mcp.json and add:
{
"mcpServers": {
"agentic-edit": {
"url": "https://agentic-edit.com/mcp",
"headers": {
"Authorization": "Bearer ${env:AGENTIC_EDIT_TOKEN}"
}
}
}
}Another agent
{
"mcpServers": {
"agentic-edit": {
"type": "http",
"url": "https://agentic-edit.com/mcp",
"headers": {
"Authorization": "Bearer ${AGENTIC_EDIT_TOKEN}"
}
}
}
}[mcp_servers.agentic-edit]
url = "https://agentic-edit.com/mcp"
bearer_token_env_var = "AGENTIC_EDIT_TOKEN"When a token stops working
- You revoke it, or the date you chose passes.
- You lose owner or admin access, or the workspace is archived. Getting access back doesn’t revive it.
- A token for one project stops while that project is archived.
A token for all your projects also covers projects you add later. AI assistants shows when each token was last used, under Tokens. Choose Revoke token in its … menu to end it, and anything your agent already received can’t be recalled.