# Connect Claude Code to your account

Once you have an access key, point your AI agent at your account. This is a one‑time setup.

## What you'll need

* Your **access key** (from *Create and manage your agent access keys* — the full value you copied once)
* Your **Account ID** — the number in your dashboard web address (`…/app/accounts/`**`123`**`/…`), also shown in Settings

## Connect

In Claude Code, run this once:

```
claude mcp add --transport http sapot https://mcp.sapot.ai/mcp \
  --header "Authorization: Bearer YOUR_AGENT_KEY" \
  --header "X-Sapot-Account-Id: YOUR_ACCOUNT_ID"
```

Replace:

* `https://mcp.sapot.ai/mcp` → your Mampu AI MCP address (from your account team if different)
* `YOUR_AGENT_KEY` → the access key you created
* `YOUR_ACCOUNT_ID` → your numeric Account ID

The key and Account ID lock the agent to **your** account, so you never have to mention your account in a request.

## Check it worked

Ask the agent:

> "List my open conversations."

If it comes back with your conversations, you're connected. 🎉

## Using a different AI agent?

Any tool that supports connecting to an MCP server works the same way — use the same address plus the two headers (`Authorization` and `X-Sapot-Account-Id`) shown above.

## If it won't connect

* Double‑check the key (it may have been mistyped, expired, or revoked) and the Account ID.
* Make sure you copied the **full** key when you created it.
* Still stuck? See *Troubleshooting your AI agent*.

---

**Next:** [What your AI agent can and can't do →](/mampu-ai/ai-agents/what-your-ai-agent-can-and-cant-do)

---
Source: https://help.mampuai.com/mampu-ai/ai-agents/connect-claude-code
