> ## Documentation Index
> Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Account MCP

> Let an agent read and manage your RedPill account, models, API keys, workspaces, and usage through the RedPill MCP server.

Account MCP lets an agent manage your RedPill account through typed tools and user-level OAuth. It
does not run inference or change the agent's model provider; for that, see
[Use RedPill in agents](https://docs.redpill.ai/get-started/use-in-agents.md).

## Choose an account interface

| Host | Use |
| - | - |
| Agent host with remote MCP support | Account MCP |
| Terminal, script, or agent host with a shell but no MCP client | [RedPill CLI](https://docs.redpill.ai/get-started/cli.md) |

Use one account interface on a given host, not both. Each keeps its own OAuth grant. MCP is the
preferred agent integration because it provides typed tools and keeps API key creation in the
browser; use the CLI when MCP is unavailable.

## Connect

Add the account URL as a remote HTTP server. On first use the client opens your browser: sign in
and approve access to your RedPill account. One OAuth grant covers every organization you can
access; organization selection is an explicit tool argument, not another authorization. No API
key, client secret, or app registration is needed.

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http redpill https://service.redpill.ai/mcp
> ```
>
> Then run `/mcp` in Claude Code to sign in.

> [tab] Codex
>
> ```bash theme={null}
> codex mcp add redpill --url https://service.redpill.ai/mcp
> codex mcp login redpill
> ```

> [tab] OpenCode
>
> Add to `opencode.json`:
>
> ```json theme={null}
> {
>   "mcp": {
>     "redpill": {
>       "type": "remote",
>       "url": "https://service.redpill.ai/mcp"
>     }
>   }
> }
> ```

Any client that supports remote HTTP MCP servers with OAuth works the same way. To configure the
skill and account interface together, use
[Onboard your agent](https://docs.redpill.ai/get-started/introduction.md#onboard-your-agent).
The public documentation MCP at `https://docs.redpill.ai/mcp` is optional and does not require
sign-in.

## Capabilities

| Area | Read | Write |
| - | - | - |
| Account | `get_account`, `list_workspaces` | `create_workspace`, `update_workspace`, `archive_workspace` |
| Models | `list_models`, `get_model`, `get_model_uptime` | |
| Billing | `get_balance`, `list_billing_history` | |
| API keys | `list_api_keys`, `get_api_key` | `create_api_key`, `update_api_key`, `revoke_api_key` |
| Usage | `get_usage_summary`, `get_usage_logs`, `get_usage_facets` | |

Every call checks your current organization membership and the same permission the dashboard uses,
so an agent can do exactly what you can do there, and no more. Key listings show metadata and
limits only. Archiving a workspace revokes its keys.

## Confirmations and secrets

A write returns a preview first. Clients that support MCP forms show a confirmation; other clients
repeat the call with `confirm=true`.

Creating an API key finishes in the browser. The agent receives a short-lived link; you open it
signed in as the same user, click **Create**, and see the secret once. The secret never passes
through MCP or the model. Clients without URL elicitation support create keys in the
[dashboard](https://www.redpill.ai/keys) instead.

## Limits

* Payments, top-ups, auto-recharge, and subscriptions.
* Organization membership, identity, and administrator operations.
* Receipt verification. Verification has to run in the client that sent the request; see
  [Verify a response](https://docs.redpill.ai/guides/verify-a-response.md).

## Related

> [card] [Onboard your agent](https://docs.redpill.ai/get-started/introduction.md#onboard-your-agent)

> [card] [RedPill CLI](https://docs.redpill.ai/get-started/cli.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.