Supported agents
Per-agent setup for Claude Code, Codex, and Cursor, plus CI environments.
The default is browser-based OAuth. You do not need an API token. First sign in to your Claude Code, Codex, or Cursor account as usual, then connect that agent to your Ancher account once.
Claude Code
-
Start Claude Code in any project:
bashclaude -
In the Claude Code session, run
/mcp. -
Select ancher, choose its authentication option, and finish the browser sign-in.
-
Return to Claude Code and ask it to search or save an Ancher note.
If the browser does not open, copy the displayed URL into a browser. Confirm the server is configured with:
claude mcp listClaude Code’s MCP authentication guide explains the /mcp OAuth flow.
Codex
Run the following after the installer finishes:
codex mcp login ancherComplete the browser sign-in, restart Codex, and start a new session. Check that the server is available with:
codex mcp listCursor
Open Cursor and start an Agent chat. The first Ancher tool use prompts you to connect and complete the browser sign-in. Approve the request, return to Cursor, and retry your request.
If you use the Cursor Agent CLI instead, authenticate the configured MCP server directly:
cursor-agent mcp login ancher
cursor-agent mcp listCursor’s MCP documentation covers OAuth connections and MCP configuration.
CI and non-interactive environments
For CI or other non-interactive environments, create an API token in Ancher → Settings → API, set it as ANCHER_API_TOKEN, then install with --token. The installer references the environment-variable name in each agent’s configuration; do not place a token directly in a command.
export ANCHER_API_TOKEN=...
npx -y @ancher-ai/agent-skills install --agent codex --token