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

# monid keys add

> Add an API key to your local credential store.

Add an API key to your local credential store.

## Usage

```bash theme={null}
monid keys add --label <name> --key <key> [--json]
```

## Flags

| Flag                  | Type    | Required | Description                |
| --------------------- | ------- | -------- | -------------------------- |
| `-l, --label <label>` | string  | Yes      | A unique label for the key |
| `-k, --key <key>`     | string  | Yes      | The API key                |
| `-j, --json`          | boolean | No       | Output raw JSON            |

## Examples

```bash theme={null}
# Add a production key
monid keys add --label production --key monid_live_a1b2c3d4e5f6...

# Add a test key
monid keys add --label staging --key monid_test_x9y8z7w6v5u4...
```

## Behavior

* Label must be unique across stored keys
* The first key you add is automatically set as the active key
