Connect Claude Code
Applies to Claude
Option 1: sign in (no key)
- In a terminal, run:
claude mcp add --scope user --transport http crm-copilot https://production.crmcopilot.ai/api/agent/v1/mcp - Start Claude Code, type
/mcp, pick crm-copilot and choose Authenticate. - Your browser opens. Sign in to CRMCoPilot, choose what Claude Code may do, and click Allow.
Option 2: an API key
- Create an API key with AI agent access.
- Run this, with your key in place of
cpk_YOUR_KEY:claude mcp add --scope user --transport http crm-copilot https://production.crmcopilot.ai/api/agent/v1/mcp --header "Authorization: Bearer cpk_YOUR_KEY"
After creating a key, the Claude Code tab in CRMCoPilot shows this command with your key filled in.
Check it
Run claude mcp list. You should see crm-copilot … ✔ Connected. Then ask: “Use crm-copilot to list my active AutoPilots.”
--scope user makes CRM CoPilot available in every project. Leave it out to add it to the current project only.