Docs / Getting Started/ Setting Up Your API Key

Setting Up Your API Key

Connect your Anthropic API key or Claude subscription to power your CRHQ agents.

CRHQ agents are powered by Anthropic's Claude models. To use them, you need to connect an API key from your Anthropic account.

Adding Your API Key

  1. Go to Settings (gear icon in the sidebar footer)
  2. Navigate to the System tab
  3. Find the Claude Authentication section
  4. Enter your Anthropic API key
  5. Click Save

Your API key is stored securely on your dedicated server using AES-256-GCM encryption. It never leaves your instance.

Getting an API Key

If you don't have an Anthropic API key yet:

  1. Go to console.anthropic.com
  2. Create an account or sign in
  3. Navigate to API Keys
  4. Click Create Key
  5. Copy the key — you won't see it again

Warning: Keep your API key private. Never share it in chat, commit it to code, or post it publicly. If compromised, regenerate it immediately in your Anthropic console.

Authentication Methods

CRHQ supports two authentication methods:

MethodDescription
API KeyStandard Anthropic API key (starts with sk-ant-) — most common
OAuth TokenOAuth-based authentication for enterprise setups

You can set your preferred method in the System settings. If both are configured, CRHQ uses the preferred method.

Verifying the Connection

After saving your API key, CRHQ validates it automatically. You'll see a status indicator:

  • Connected (green) — API key is valid, agents can work
  • Invalid (red) — Key was rejected, double-check and re-enter
  • Not configured (grey) — No key set yet

Usage & Billing

API usage is billed directly through your Anthropic account. Different models have different costs:

  • Haiku — Lowest cost per token
  • Sonnet — Moderate cost, best value for most tasks
  • Opus — Highest cost, most capable

You can monitor your usage at console.anthropic.com/usage.

Future Providers

CRHQ is designed to support multiple AI providers. Additional model providers (such as Codex and Gemini) are planned for future releases. When available, you'll configure them in the same System settings section.