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

# Get an API key

> Create the key that connects the Stratta MCP server to your workspace.

An **API key** is how the Stratta MCP server proves it's allowed to read and write your
workspace. You create it once on the website, then hand it to your Claude client.

<Steps>
  <Step title="Open the API keys page">
    Go to [stratta.ch/api-keys](https://stratta.ch/api-keys) while signed in.
  </Step>

  <Step title="Create a key">
    Click **Create API key**, give it a memorable name (for example "Laptop — Claude Code"),
    and confirm. A name helps you recognise and revoke the right key later.
  </Step>

  <Step title="Copy the key immediately">
    The full key — starting with `sk_strt_` — is displayed **once**. Copy it now.

    <Warning>
      For security, Stratta never shows the full key again. If you lose it, revoke it and create
      a new one.
    </Warning>
  </Step>

  <Step title="Give it to your Claude client">
    Follow [Install in Claude Code](/en/guides/install-claude-code) or
    [Install in Claude Desktop](/en/guides/install-claude-desktop). You can paste the key when
    prompted, save it with `npx -y @stratta/mcp login`, or set it as an environment variable.
  </Step>
</Steps>

## Treat your key like a password

<Warning>
  Your API key grants **read and write** access to your workspace, including ingesting and
  deleting norms. Never commit it to a repository, paste it into a shared or project-scoped MCP
  config, or post it in logs or chat. Prefer a user-scoped config or an environment variable. If
  a key leaks, revoke it immediately at [stratta.ch/api-keys](https://stratta.ch/api-keys).
</Warning>

## Limits

To prevent abuse, each user can hold:

| Limit                 | Value |
| --------------------- | ----- |
| Active API keys       | 50    |
| New keys per 24 hours | 20    |

If you hit a limit, revoke keys you no longer use. See [Manage API keys](/en/guides/manage-api-keys).

## Next steps

<CardGroup cols={2}>
  <Card title="Install in Claude Code" icon="terminal" href="/en/guides/install-claude-code">
    The recommended setup.
  </Card>

  <Card title="Install in Claude Desktop" icon="desktop" href="/en/guides/install-claude-desktop">
    For the desktop app.
  </Card>
</CardGroup>
