Skip to content

Add your Claude key

Lyra writes on your own Claude account, so every post runs on your key and you stay in control of cost. Your credential is validated before it is saved, stored encrypted, and never marked up. You add it during onboarding and can change it any time in Settings > API keys.

You add one Claude credential. You can also add an optional Gemini key for banners, covered in Banner images.

Choose a credential type

Lyra accepts either of two Claude credentials. Pick the one that matches how you use Claude.

CredentialStarts withBest for
Anthropic API keysk-ant-apiAnyone with an Anthropic Console account
Claude Code OAuth tokenGenerated by claude setup-tokenPeople on a Claude subscription

Only one credential is active at a time. Adding a new one immediately invalidates the previous credential.

Option 1: Anthropic API key

  1. Go to the Anthropic Console.
  2. Create an API key. It starts with sk-ant-api.
  3. In Lyra, paste the key into the Claude credential field during onboarding, or in Settings > API keys.
  4. Lyra validates the key and saves it encrypted.

Option 2: Claude Code OAuth token

If you use a Claude subscription, you can authorize Lyra with a Claude Code token instead of an API key.

  1. Run the token command locally:
claude setup-token
  1. Copy the token it prints.
  2. Paste it into the Claude credential field in Lyra.
  3. Lyra validates and saves it.

Why your own key

  • At cost. Runs bill directly to your account. Lyra never marks up usage.
  • In your control. You set the budget on your Anthropic account and can rotate the key any time.
  • Encrypted at rest. Lyra stores your credential encrypted and validates it before every save.

Change or rotate your key

  1. Go to Settings > API keys.
  2. Enter the new key or token.
  3. Save. The previous credential is invalidated immediately.

What's next

Troubleshooting

Issue: My key is rejected

Symptoms: Lyra will not save the credential.

Diagnosis: The key is mistyped, expired, or of the wrong type.

Resolution: Confirm an API key starts with sk-ant-api and copy it fresh from the Anthropic Console. For a Claude Code token, run claude setup-token again and paste the new value.

Issue: Runs stop with a rate limit

Symptoms: Posts pause and a run reports a rate limit.

Diagnosis: Your Claude account hit its rate limit.

Resolution: Lyra paces herself and hibernates the project briefly, then resumes on her own. To raise the ceiling, adjust the limits on your Anthropic account.