# API keys

> Generate and manage API keys for the CLI, MCP, and other tools.

An API key lets a tool — the [CLI](https://docs.abstraction.dev/cli/installation.md), an [MCP client](https://docs.abstraction.dev/mcp/setup.md),
or a script — act as you against your Abstraction workspaces, without signing
in through the browser.

## Create a key

1. Go to [Settings → API Keys](https://app.abstraction.dev/settings?tab=api-keys).
2. Select **Create API Key**.
3. Give it a name that identifies where it's used (e.g. "Laptop CLI" or "MCP —
   VS Code"), and optionally pick a default workspace for it.
4. Select **Create**.

Your new key is shown once, in full. Copy it now — you won't be able to see it
again after you close the dialog. If you lose it, revoke it and create a new
one.

## Manage existing keys

The API Keys page lists every key on your account: its name, a short prefix
(the full key is never shown again), when it was created, when it was last
used, and its default workspace if it has one.

## Revoke a key

Select **Revoke** next to a key and confirm. Revoking takes effect
immediately — anything still using that key stops working right away. This
can't be undone; if you need access again, create a new key.

## Next steps

- [Installing the CLI](https://docs.abstraction.dev/cli/installation.md)
- [Connecting an MCP client](https://docs.abstraction.dev/mcp/setup.md)
