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

# API keys

> Create, limit, rotate, and delete API keys for Moxus AI.

API keys authenticate API calls, SDKs, and external tools. Treat each key as access to your account balance.

## Create a key

Open API Keys and create a key. The usual flow is:

1. Enter a name. Use the project name, environment, or tool name, such as `prod-web` or `cursor-local`.
2. Set an expiration date. Temporary test keys should use a short expiry.
3. Set a quota. Unlimited quota is on by default; turn it off and enter a cap when you want cost control.
4. Restrict models and source IPs when needed. Only allow the models your project needs, or fixed egress IPs.
5. Choose a group. Groups are only for organizing keys in the list; they do not affect permissions, quota, or routing.
6. Create multiple keys if needed. Fill in the quantity when you want several keys with the same settings.

<Info>
  If your page shows "Cross-group retry", it is only for automatic fallback. The group itself is still just a management label.
</Info>

<Warning>
  The full key is shown only once. If it is lost, create a new key.
</Warning>

## Use a key

OpenAI-compatible requests use:

```text theme={null}
Authorization: Bearer sk-your-key
```

SDKs usually accept only the raw key value, without the `Bearer ` prefix.

## Manage keys

* View usage for a key.
* Edit quota, expiration, model limits, IP limits, and group.
* Disable a key temporarily.
* Delete exposed or unused keys permanently.

Groups are only for organization and filtering; they do not change access control or request results.

## Security practices

* Use separate keys for development, production, automation, and external clients.
* Set quota limits for browser plugins, desktop clients, and temporary tests.
* Store keys in environment variables or a secret manager.

```bash theme={null}
export MOXUS_API_KEY="sk-your-key"
export MOXUS_BASE_URL="https://moxus.cloud/v1"
```

If a key is exposed, delete or disable it immediately, create a new key, update your app, and review Usage for abnormal calls.

## Next steps

* [Quickstart](/en/overview/quickstart)
* [Cursor](/en/integrations/clients/cursor)
* [Billing](/en/platform/billing)
