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

# Raziel API keys: issue, use, and revoke credentials

> Learn how to issue, use, and revoke Raziel API keys. Keys start with rz_live_ and are shown once — save yours before closing the page.

Every request to the Raziel gateway needs an API key. Keys take the form `rz_live_xxxxxxxxxxxx` and act as the single credential for all gateway endpoints — Anthropic-compatible and OpenAI-compatible alike.

<Warning>
  Your key is shown exactly once at issue time. Copy it before you close or navigate away — it cannot be retrieved afterwards.
</Warning>

## Issue a key

<Steps>
  <Step title="Open the API keys page">
    Sign in, then navigate to **Customer → API Keys**.
  </Step>

  <Step title="Add a label (optional)">
    Labels help you tell keys apart later. Use descriptive names like `laptop`, `ci`, or `side-project`. The label has no effect on authentication.
  </Step>

  <Step title="Click Issue key">
    The full key is displayed immediately in the dashboard. Copy it now and store it somewhere safe.
  </Step>
</Steps>

## Use the key

Pass the key as a Bearer token in the `Authorization` header on every request:

```bash theme={null}
curl https://raziel.fun/gateway/v1/messages \
  -H "Authorization: Bearer rz_live_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-4-6","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'
```

If you set up the CLI, your key is saved automatically to `~/.config/raziel/config.json` and injected by the proxy — you do not need to pass it manually when using `razi claude`.

## Revoke a key

Go to **Customer → API Keys**, find the key row, and click **revoke**. Revocation takes effect immediately — any in-flight request using that key will fail with a `401 auth_error`.

## Use multiple keys

You can issue as many keys as you need. Label each one for its intended context so you can revoke a single surface (e.g., a compromised CI secret) without rotating everything else.

<Note>
  The CLI setup command (`npx @raziel.fun/cli setup`) opens a browser sign-in flow and saves your key automatically to `~/.config/raziel/config.json`. Run it once per machine and you are done.
</Note>
