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

# Bring your own key (BYOK)

> Use your own Anthropic or OpenRouter API key for unlimited queries

BYOK lets you connect your own Anthropic or OpenRouter API key to Digcrate. When a key is set, your queries use your key instead of the platform key — so you're not subject to monthly query limits.

BYOK is useful if you're a heavy user who regularly hits your monthly quota, or if you want to use models that aren't available on the standard platform key.

<Warning>
  Your key is used directly for API calls to Anthropic or OpenRouter. Standard API costs from those providers apply to every query you run. Digcrate does not mark up these costs.
</Warning>

## Setting up your key

<Steps>
  <Step title="Open Settings">
    Click **Settings** in the sidebar, then go to the **API Keys** tab.
  </Step>

  <Step title="Enter your key">
    Paste your Anthropic key (starts with `sk-ant-...`) or your OpenRouter key into the corresponding field.
  </Step>

  <Step title="Save">
    Click **Save**. Digcrate will validate the key before saving it. If the key is invalid, you'll see an error and nothing will be stored.
  </Step>

  <Step title="Select a model (optional)">
    Once a key is connected, open the model picker in the chat input to choose a different model. BYOK unlocks all models available for your key type.
  </Step>
</Steps>

Your key is encrypted at rest. Digcrate never logs or exposes it.

## Supported key types

<CardGroup cols={2}>
  <Card title="Anthropic" icon="robot">
    Connects to Claude models directly via the Anthropic API. Paste your key from [console.anthropic.com](https://console.anthropic.com).

    **Key format:** `sk-ant-...`
  </Card>

  <Card title="OpenRouter" icon="sliders">
    Routes to any model OpenRouter supports, including Claude, GPT-4o, Gemini, Llama, DeepSeek, and Mistral. Paste your key from [openrouter.ai/keys](https://openrouter.ai/keys).

    **Key format:** `sk-or-...`
  </Card>
</CardGroup>

## Available models

When an OpenRouter key is connected, you can select any of these models from the model picker:

| Model             | Provider                   |
| ----------------- | -------------------------- |
| Claude Sonnet 4.6 | Anthropic (via OpenRouter) |
| GPT-4o            | OpenAI                     |
| Gemini 2.5        | Google                     |
| Llama 4           | Meta                       |
| DeepSeek R1       | DeepSeek                   |
| Mistral Large     | Mistral AI                 |

With an Anthropic key, you can access Claude models directly without routing through OpenRouter.

## How query limits work with BYOK

When a valid key is stored, Digcrate routes your agent queries through that key instead of the platform key. Your monthly query count from your plan is not decremented — you can run as many queries as your API key's rate limits allow.

Your plan's other limits (saved sessions, custom skills, publishing, memory) still apply based on your subscription tier.

## Removing your key

To disconnect a key, open **Settings → API Keys**, clear the field, and save. Digcrate will switch back to the platform key and your monthly quota will apply again.
