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

# Access keys

> Authenticate headless workloads with a Proofable server key, then rotate or revoke it from your profile.

Interactive clients sign in with OAuth. Anything that cannot open a browser authenticates with a key instead. Both reach the same endpoint and the same Proofable profile.

| Sign in with | Use it for |
| - | - |
| OAuth | Chats, editors, and other clients a person signs into |
| Access key | Servers, CI, cron and scheduled jobs, containers, cloud agents, and gateways |

## Create a key

**1. Create it**

Open [Access keys](https://proofable.me/profile?tab=account) in your profile and create a key. Keys start with `npk_`.

**2. Store it**

Save it in your secret manager or CI secrets as `PROOFABLE_ACCESS_KEY`.

```bash theme={"system"}
export PROOFABLE_ACCESS_KEY=npk_...
```

> [!WARNING]
>
> An access key acts as your whole profile. Keep it on servers. Never put it in browser code, chat, or a repository.

## Use it

> [tab] MCP
>
> ```json theme={"system"}
> {
>   "mcpServers": {
>     "proofable": {
>       "type": "http",
>       "url": "https://mcp.proofable.me/mcp",
>       "headers": {
>         "Authorization": "Bearer ${PROOFABLE_ACCESS_KEY}"
>       }
>     }
>   }
> }
> ```
>
> Or let the CLI write it for your editors:
>
> ```bash theme={"system"}
> npx -y @proofable/sdk setup --access-key $PROOFABLE_ACCESS_KEY
> ```

> [tab] SDK
>
> ```js theme={"system"}
> import { ProofableClient } from '@proofable/sdk';
>
> const client = new ProofableClient({ apiKey: process.env.PROOFABLE_ACCESS_KEY });
> ```
>
> The SDK sends the key as `Authorization: Bearer npk_...`.

> [tab] HTTP
>
> Send the key on every request:
>
> ```http theme={"system"}
> Authorization: Bearer npk_...
> ```

> [tab] Containers
>
> ```yaml theme={"system"}
> services:
>   agent:
>     image: your-agent-image:latest
>     environment:
>       - PROOFABLE_MCP_URL=https://mcp.proofable.me/mcp
>       - PROOFABLE_ACCESS_KEY=${PROOFABLE_ACCESS_KEY}
> ```
>
> [Private cloud](https://docs.proofable.me/deployment/private-cloud.md) covers moving the same agent between environments.

Gateways that reserve the `Authorization` header for their own sign-in send the same key as `x-proofable-access-key`. [MCP authentication](https://docs.proofable.me/mcp/auth.md)

## What a key can do

* It works for MCP tools, the SDK, and the HTTP API.
* It stays valid until you revoke it.
* Proofs for your users still need their approval. Create those through [server integrations](https://docs.proofable.me/integrations/server.md).

## Rotate or revoke

Create a new key, update the secret, then revoke the old key under [Access keys](https://proofable.me/profile?tab=account). To revoke a key and remove it from local MCP config in one step:

```bash theme={"system"}
npx -y @proofable/sdk disconnect --access-key $PROOFABLE_ACCESS_KEY
```

If a key is exposed, revoke it right away and issue a new one.

## Next

> [card] [Private cloud](https://docs.proofable.me/deployment/private-cloud.md)
>
> Run the same agent on your own infrastructure.

> [card] [Add Proofable to any MCP client](https://docs.proofable.me/mcp/setup.md)
>
> Setup for every supported client.


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