← Blog

How to Find Your Claude API Key: A Quick Guide

2026-09-01 · 5 min read · SubToAPI Team

If you're looking for your Claude API key, it lives in the Anthropic Console under Settings → API Keys. You need an Anthropic account with billing set up (or free trial credits) to generate one, and the key itself is only shown once, in full, at creation time.

If you already generated a key and lost it, you can't retrieve the original value again — Anthropic doesn't store or display it after creation for security reasons. You'll need to revoke the old key and create a new one. This is standard practice for API providers and applies the same way to services like SubToAPI.

Step-by-Step: Finding Your Key in the Anthropic Console

  1. Go to console.anthropic.com and log in with the account tied to your organization.
  2. Click Settings in the left sidebar, then API Keys.
  3. If you've already created a key, you'll see a list with names, creation dates, and partial identifiers (something like sk-ant-api03-...xxxx) — but not the full secret.
  4. To get a usable key, click Create Key, name it something meaningful (e.g. "production-backend" or "staging-test"), and copy the full string immediately. It won't be shown again.

If this is your first time here and the API Keys page is empty, you don't have a key yet — you'll need to generate one following the steps above.

Common Reasons People Can't Find Their Key

What the Key Actually Looks Like

A Claude API key from Anthropic starts with sk-ant-api03- followed by a long random string. You pass it in the x-api-key header (not Authorization: Bearer) when calling the Messages API directly:

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-4-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Store it as an environment variable, never hardcode it in source, and add it to your .gitignore'd .env file. Treat it exactly like a database password.

If You Only Have a Claude Subscription, Not API Billing

This is the most common source of confusion behind this search. A lot of people have Claude Pro or Max for the chat interface but no separate API billing account, and they assume there's a hidden key somewhere in their subscription settings. There isn't — Anthropic's consumer subscriptions and API billing are intentionally decoupled, partly because API usage is metered per token and can spike in cost in a way a flat subscription can't.

If you want to build something (an app, an internal tool, an automation) using the model access you're already paying for, without setting up separate API billing and juggling raw usage-based invoicing, SubToAPI turns your existing Claude access into a standard HTTPS API. You get an application key in the format sub_live_..., generated from your SubToAPI dashboard, that works with normal REST calls:

curl https://api.subtoapi.app/v1/messages \
  -H "Authorization: Bearer $SUBTOAPI_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-4-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Finding this key later is simpler too — it's in your SubToAPI dashboard under API Keys, same place every time, with support for streaming responses, tool use, and per-key usage metadata so you can see exactly what each application is consuming. Plans start at Solo (€9), with Team (€19/seat) and Scale (€49/seat) tiers if you need multiple seats or higher limits, and there's a free trial at /signup if you want to test it before committing.

Rotating a Key You Already Have

Whether you're using Anthropic's console or SubToAPI, the rotation process is the same pattern:

  1. Generate a new key first.
  2. Update your app/environment to use the new key.
  3. Confirm the new key works in production.
  4. Revoke the old key.

Doing it in that order avoids downtime. Revoking first and generating second means your app is dead in the water until the new key propagates.

Where to Go Next

FAQ

I have Claude Pro — where's my API key? There isn't one automatically. Claude Pro/Max subscriptions and API access are separate products with separate accounts and billing. You either need to set up Anthropic API billing directly, or use a service like SubToAPI that turns your existing subscription into API access without a second billing setup.

I lost my Claude API key — can I see it again? No. API keys are shown in full only once, at creation. If you've lost it, revoke it in the console and generate a replacement — update any apps using the old key before revoking to avoid downtime.

Why can't I find the API Keys page in the Anthropic Console? You likely don't have admin/member permissions on the organization, or you're logged into the wrong account. Confirm you're using the account tied to API billing (not just claude.ai), and ask an org admin to grant you access if needed.

Turn your Claude access into an HTTPS API

SubToAPI gives you application API keys, streaming, tool use and usage insights on top of your existing Claude access — set up in minutes.

Start free  Read the quickstart →