Set Up Your Anthropic Account
This page walks you through creating an Anthropic developer account, enabling billing, and generating an API key.
Prerequisites
- An email address for your Anthropic account
- A payment method (credit card) for billing
- Access to your email for account verification
Step 1: Go to Anthropic Console
- Visit https://console.anthropic.com/ in your browser
- You should see the Anthropic Console sign-in page
Step 2: Create Your Account
If you don't have an Anthropic account yet:
- Click Sign Up on the console home page
- Enter your email address
- Create a strong password
- Check your email for a verification link and click it to confirm your email address
- Your account is now created and you're logged in
If you already have an Anthropic account, simply log in with your email and password.
Step 3: Add a Payment Method
Your Anthropic account must have billing enabled before API keys will work. This is required even if you have free trial credits.
- Click on Account in the top navigation (or your profile menu)
- Select Billing Settings or Payment Method
- Click Add Payment Method or + Add Card
- Enter your credit card information:
- Card number
- Expiration date (MM/YY)
- CVC/CVV code
- Cardholder name
- Billing address
- Click Save or Add Card
- Your payment method is now on file and billing is enabled
Important: Your account needs a valid payment method even if you have free trial credits. Without billing enabled, API keys will be rejected.
Step 4: Navigate to API Keys
- In the Anthropic Console, click on API Keys in the left sidebar (or top navigation menu)
- You should see your existing API keys (if any) and an option to create a new key
Step 5: Create a New API Key
-
Click + Create Key or Generate New Key button
-
A dialog or form will appear asking for a key name
-
Enter a descriptive name for your key, for example:
RepoRisk ProductionRepoRisk - Main AccountRepoRisk Scanning
Use a name that makes it easy to identify which service uses this key.
-
Click Create or Generate
Step 6: Copy Your API Key
IMPORTANT: Your API key is displayed only once after creation. You must copy it immediately before navigating away.
- After creation, your API key will appear in a highlighted box
- The key will look something like:
sk-ant-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - Click the Copy button (or select and copy the text manually)
- Paste it into a secure location (a password manager is recommended) before leaving this page
- Once you navigate away, you will not be able to retrieve this key again
Warning: If you forget to copy your key, you must return to API Keys and delete it, then create a new one.
Step 7: Store Your Key Securely
Once copied, store your API key in a secure location:
- Password manager (Bitwarden, 1Password, LastPass, etc.) — recommended
- Secure notes in a notes app that encrypts sensitive data
- Key vault or secrets management tool if your organization uses one
- Never store it in plain text in files, email, or chat
Do not share your key with anyone. If you need to share RepoRisk access with team members, they should either:
- Use their own Anthropic API key (if using BYOK)
- Use the platform's shared API key (if their plan tier includes it)
What's Next?
You now have an API key ready to use. The next step is to add it to RepoRisk:
→ Continue to Configure BYOK in RepoRisk
Troubleshooting
Q: My payment method was rejected
A: Verify your card details (number, expiration, CVC) are correct. Try a different payment method if available. Contact your card issuer to confirm the card is active and not blocked.
Q: I can't find the API Keys section
A: Make sure you're logged in to console.anthropic.com. The API Keys section is usually in the left sidebar under "Workspace" or in the top navigation. Check your user menu if you don't see it.
Q: My API key shows an error when I use it in RepoRisk
A: Verify that:
- Your Anthropic account has billing enabled (check Account → Billing Settings)
- The key you copied is complete (should start with
sk-ant-and be about 40+ characters long) - You didn't accidentally add extra spaces or characters when copying
- You haven't revoked the key in the Anthropic Console
For more troubleshooting, see BYOK Troubleshooting.
Additional Resources
- Anthropic API Documentation — Technical API reference
- Anthropic Console — Manage your account and API keys