# API keys

> Create, scope and revoke Armorial API keys for Cursor, scripts and tools without OAuth.

Source: https://armorial.io/docs/api-keys

API keys are for tools that can't sign in with OAuth, such as Cursor and your own scripts. Claude, ChatGPT, Grok, Claude Code and VS Code don't need one; Grok Bot can use either.

## Create a key

1. Open the [AI access page](https://app.armorial.io/ai) in the workspace the key is for.
2. Click **New key**, give it a name you'll recognise later, and choose:
   - **Brands:** all brands in the workspace (also ones added later), or only the ones you pick.
   - **Expires:** in 30 days, 90 days, a year, or never.
3. Copy the key. It starts with `arm_` and you only see it once.

## How a key behaves

- A key acts as **you**: it can never read more than you can, and if you lose access to a brand, the key does too.
- Keys are read-only and only see published versions.
- Armorial stores a hash of the key, never the key itself. A lost key can't be shown again: delete it and create a new one.
- You can have up to 25 keys.

## Use it

Send it as a bearer token: `Authorization: Bearer arm_…`. See [Cursor](https://armorial.io/docs/connect/cursor), [Grok Bot](https://armorial.io/docs/connect/grok-bot), the [xAI API](https://armorial.io/docs/connect/grok#from-the-xai-api) and [Other clients](https://armorial.io/docs/connect/other).

## Revoke it

Click **Delete** next to the key on the AI access page. It stops working immediately.
