Skip to content
AncherDocs
On this page

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

  1. Start Claude Code in any project:

    bash
    claude
  2. In the Claude Code session, run /mcp.

  3. Select ancher, choose its authentication option, and finish the browser sign-in.

  4. 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:

bash
claude mcp list

Claude Code’s MCP authentication guide explains the /mcp OAuth flow.

Codex

Run the following after the installer finishes:

bash
codex mcp login ancher

Complete the browser sign-in, restart Codex, and start a new session. Check that the server is available with:

bash
codex mcp list

Cursor

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:

bash
cursor-agent mcp login ancher
cursor-agent mcp list

Cursor’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.

bash
export ANCHER_API_TOKEN=...
npx -y @ancher-ai/agent-skills install --agent codex --token