Claude Code CLI
Add Autousers to Claude Code via OAuth (interactive) or Bearer token (headless/CI).
Option 1 — OAuth (recommended for interactive use)
Register the server. Claude Code handles the OAuth flow when you first use a tool.
claude mcp add --transport http autousers https://mcp.autousers.ai/mcpRegister Autousers MCP server
Then open a Claude Code session and run /mcp to trigger the OAuth browser flow. Sign in with your Autousers account and approve the scopes.
Option 2 — Bearer token (headless / CI)
Generate an API key at /settings/api-keys, then register the server with a static Authorization header.
claude mcp add --transport http autousers https://mcp.autousers.ai/mcp \
--header "Authorization: Bearer $AUTOUSERS_API_KEY"Register with API key (no browser required)
Set AUTOUSERS_API_KEY in your shell profile or CI environment secrets. API keys start with ak_live_.
Verify
claude mcp listConfirm autousers appears in the server list
Was this article helpful?