Skip to main content
Direct Browser CORS · Bring Your Own Key

Anthropic Bring Your Own Key Guide

Connect your own Anthropic API key to run AI models in the Playground and Compare tool with zero accounts. Follow the official key setup steps below, review how direct browser CORS requests operate, and verify your credentials on the Keys page.


Onboarding

How to Get a Anthropic API Key

Follow these four steps using the official Anthropic console, then validate your key on /keys.

  1. Sign in to the Anthropic Console.
  2. Open Settings and select API Keys.
  3. Click Create Key, assign a workspace, and copy the secret value.
  4. Paste the key into the Keys page to call the Messages API directly from your browser.

Transport & Security

How Bring Your Own Key Works With Anthropic

Anthropic officially supports direct browser CORS calls when the anthropic-dangerous-direct-browser-access: true header is supplied, with /api/proxy/anthropic available as a stateless fallback.

Transport Path:Direct Browser Call (CORS)

Official API Base: https://api.anthropic.com/v1

Official documentation: https://docs.anthropic.com/en/api/messages


Confirmed Availability

Anthropic Supported Models

Models from our directory confirmed on Anthropic's official model list, loaded from data/model-availability.json with provider-specific IDs, pricing, and requirements.

Consult Anthropic's Official Live Model List

Enter any official model ID from Anthropic's documentation directly in the AI Text Generator or Compare tool using Custom Model ID mode (for example claude-3-5-haiku-latest).

Frequently Asked Questions

Does Anthropic Call Directly From the Browser or Through a Proxy?

Anthropic officially supports direct browser CORS calls when the anthropic-dangerous-direct-browser-access: true header is supplied, with /api/proxy/anthropic available as a stateless fallback.

Are My Anthropic Credentials Stored on Your Server?

No. Your Anthropic key stays in browser local storage only and is never logged, cached, or stored server-side.

Related Tools and Key Management