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

# Inference keys

> Create keys for developers, limit what they can call, and revoke them.

An inference key is a password used only for sending prompts to models. Creating and revoking keys needs the ADMIN role. Anyone with access to the project can [save a key](https://docs.rivvr.ai/guides/inference.md#save-the-key-on-your-computer) you give them.

## Create a key for someone else

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr inference-key create developer --cluster-scope development
```

Here `developer` is a name for the key, and `--cluster-scope development` means it only works for models on the `development` cluster (see [scopes](#limit-what-a-key-can-call)).

The secret is printed once and can never be shown again, so run this where nobody can see or record your screen. Send the key ID and secret to the developer through your company's tool for sharing secrets. Keep the secret out of chats, CI logs, and AI assistant prompts.

The developer then signs in, picks the same project, and saves the key:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr inference-key store KEY_ID
```

## Create a key for yourself

Add `--save`. The secret goes straight into your keychain instead of being printed:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr inference-key create my-key --cluster-scope development --save
```

The secret then exists only on your computer. If the key is for someone else, leave out `--save`.

## Limit what a key can call

| Options | The key can call |
| - | - |
| none | Any model in the project, on any cluster |
| `--cluster-scope development` | Models on the `development` cluster |
| `--model-scope hello` | Only the model `hello` |

You can repeat both options and mix them. The key can call a model if it matches at least one of them.

## See and revoke keys

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr inference-key list --wide
rivvr inference-key revoke KEY_ID
```

Revoking asks you to confirm. After that, the key stops working on Rivvr's side.

Creating or revoking a key happens in Rivvr. Saving it in your keychain is a separate step on your computer. If the keychain step fails, the key is still created, or still revoked. Read the output before you try again, and see [keychain recovery](https://docs.rivvr.ai/troubleshooting/recovery.md#keychain-failed-after-creating-or-revoking-a-key).


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