Guides
How to Get an Anthropic API Key Step by Step
Learning how to get an Anthropic API key takes about five minutes. You sign in to Anthropic Console, create a key, and paste it into the app that asked for it. The rest is understanding billing and keeping the key safe.
This guide shows you each step, explains credits and billing in plain terms, and gives you a Mac-friendly routine for key safety.
Before you start
You need three things:
- An email address you control for your Anthropic Console account. Use a work address if the key is for client work, so billing stays with the right owner.
- A modern browser.
- A place to store the key, such as Apple Keychain or another password manager.
You do not need to write code to create the key. You only copy the key into the app that requested it. If you are still weighing this model, read bring your own API key explained first.
Console screens and plan names change often, at the time of writing — check their site for current pricing/features if a button looks different from the steps below.
How to get an Anthropic API key step by step
These steps use Anthropic Console, which is Anthropic's web console for keys, use tracking, and billing.
- Sign in to Console. Open Anthropic Console and sign in or create an account with your chosen work address.
- Confirm your account. Complete any email check or onboarding step Console asks for. You may need to accept the terms before the key section appears.
- Open API keys. Look for "API keys" in the menu or settings. Console lists your existing keys by name and creation date, without showing full values.
- Create a new key. Choose the create-key option and give the key a clear name, such as "work-mac-meeting-app". A clear name helps you find and revoke the right key later.
- Copy the key once. Console shows the full key only at creation. Copy it straight into your password manager before you close the window or switch tabs.
- Paste it into your app. Open the app's settings, find the field for an Anthropic API key, paste the value, and save. Run one small test, such as asking a single question about a short note.
- Confirm use appears. Return to Console after a minute and check that you see fresh activity. If you see nothing, you may have used a different account or pasted the key into the wrong field.
Create one key per app. Say a client asks you to pilot a new meeting workflow while your main retainer work continues. A separate key for the pilot lets you track its cost on its own and revoke it when the pilot ends, without touching your main key.
If you also want the Google option, see how to get a Gemini API key.
Credits and billing basics
Anthropic bills API use through your Console billing settings. In simple terms, the app sends text, Anthropic measures that use, and your account balance or payment method covers it. Short questions cost less than long documents you ask the model to read.
Keep these points in mind from day one:
- Check pricing first. Check Anthropic's current pricing page before you connect a key to daily work. Rates, credit packs, and included limits change, and only the official page is current.
- Understand credits. Console may show credits or a balance that your use draws down. Learn where that screen lives and what happens when the balance runs low, so a key call does not fail mid-week.
- Set limits early. Look in Console for spending limits, monthly caps, or low-balance alerts and turn them on. Set the first alert low, near the cost of one normal week, so a leak or mistake stands out.
- Expect two bills. The app you use may charge its own fee, and Anthropic bills you separately for API use. Both charges are normal with the bring-your-own-key model.
- Start with a trial week. Connect one workflow first, such as weekly client notes, and review the use report after seven days. That sample tells you what a normal month will look like.
- Review monthly. Put a short billing check on your calendar. Divide one month of API use by the number of calls or matters you handled and compare it with flat plans you could buy instead.
Billing options and free allowances change often, at the time of writing — check their site for current pricing/features and the Console docs for the latest setup details.
Keeping your key safe on a Mac
Treat your Anthropic key like a password that can spend money. Anyone with the key can make requests billed to you until you revoke it. Use this checklist on the day you create the key. You can copy it into your own runbook.
- Save the key in Apple Keychain or your password manager with a clear name and date
- Turn on FileVault and screen lock on your Mac if they are off
- Paste the key only into the app that needs it, using the copy button that hides the value
- Delete screenshots, downloads, or drafts that contain the full key
- Never send the key by email, ticket, or shared doc
- Use one key per app so you can revoke a single key without breaking the rest
- Set a reminder to rotate the key every 6–12 months
To rotate a key, create a new key in Console, paste it into the app, confirm the app works, then delete the old key. That order avoids downtime. If someone with access to the key leaves the project, rotate it the same day.
Also check how the app stores your key. Prefer apps that keep it in Keychain on your device and state clearly what leaves your machine. HintGoblin, for example, transcribes speech on-device and sends only redacted question text and matching snippets to the AI provider. For background, see our notes on local-first AI privacy.
Troubleshooting common setup errors
Most failures come from pasting, billing, or picking the wrong key. Work through this table in order before you create a third or fourth key.
| Symptom | Likely cause | What to do |
|---|---|---|
| "Invalid API key" right after pasting | Extra space, line break, or partial copy | Copy again from your password manager, trim spaces, paste once, save, retry |
| Key worked, then stopped | Key revoked or renamed by a teammate | Check Console to see if the key still exists; create a replacement if needed |
| "Authentication failed" | Wrong key pasted into the Anthropic field | Confirm the value starts with the expected prefix shown in Console and re-paste |
| "Billing required" or "insufficient credit" | No payment method or balance too low | Open billing settings, add funds or a card, then retry one short request |
| "Rate limit" or "overloaded" | Too many requests at once | Wait a minute, shrink your test, and retry; check Console status if it repeats |
| No activity in Console | Key from a different account | Confirm the signed-in address matches the account that owns the key |
If none of these fix it, create a fresh key with a new name and test it with one short question. That tells you whether the fault sits with the old key or with the app's settings. Keep the old key until the new one works, then delete the old one.
One more habit: clear your clipboard after pasting. Copy a short random word right after you paste the key, so the secret does not sit in your clipboard history where another app could read it.
Where HintGoblin fits
HintGoblin can run with your own Anthropic key under its bring-your-own-key plan, which suits light or uneven use. It listens on your Mac, shows cited answers during the call, and writes minutes after. See pricing to compare plans.
Frequently asked questions
How do I get an Anthropic API key?
Sign in to Anthropic Console, open API keys, and create a new key. Copy it once and store it in a password manager before you close the window.
Where do I find my Anthropic API key?
Open Anthropic Console and go to the API keys section. You will see key names and creation dates, and you can create a new key from there.
How does Anthropic API billing work?
You pay for measured use under your Console billing settings, and options change often. Check Anthropic's current pricing page for the latest rates and credit options.
How do I keep my Anthropic API key safe?
Store it in Apple Keychain or a password manager, use one key per app, and set spending limits where available. Revoke and replace the key at once if it leaks.
Why is my Anthropic API key not working?
Common causes are pasting errors, missing billing setup, or a revoked key. Check the troubleshooting table in this guide and the official Console docs.
HintGoblin
Never say “let me get back to you” again.
Knowledge graphs for every meeting, cited answers during the call, minutes and action points after. Mac app + web dashboard.
See plans →