ANTHROPIC_API_KEY (API key) and CLAUDE_CODE_OAUTH_TOKEN (Claude Code OAuth token). You do not need to configure a provider explicitly — anthropic is the default when you add a repo mapping in the admin UI. This page explains how to set up the required secrets and how to control which model Claude uses for each run.
Authentication methods
The workflow selects an auth method automatically based on which secrets are present. The precedence order is:- Bedrock — used if the orchestrator sets
provider=bedrock(see AWS Bedrock) - Claude Code OAuth token — used if
CLAUDE_CODE_OAUTH_TOKENis set - Anthropic API key — used if only
ANTHROPIC_API_KEYis set
Required GitHub Actions secrets
Both the implementation workflow (claude-implement.yml) and the planning workflow (claude-plan.yml) read the same set of secrets. Add these as organization secrets (or repository secrets on each target repo):
| Secret | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key. Used as a fallback when CLAUDE_CODE_OAUTH_TOKEN is not set. |
CLAUDE_CODE_OAUTH_TOKEN | Claude Code OAuth token. Preferred over the API key when present. |
LINEAR_API_KEY | Linear API key for posting status updates and planning comments. |
AI_IMPLEMENT_APP_ID | GitHub App numeric ID used to authenticate workflow actions. |
AI_IMPLEMENT_PRIVATE_KEY | GitHub App RSA private key (PEM format, with newlines escaped as \n). |
Choosing between API key and OAuth token
- Claude Code OAuth token (preferred)
- Anthropic API key (fallback)
Use the OAuth token if your team has a Claude Code subscription. The token is scoped to your Claude account and does not consume API credits separately.
Add the secret
In your GitHub organization (or target repo), go to Settings → Secrets and variables → Actions and add a secret named
CLAUDE_CODE_OAUTH_TOKEN with the token value.Setting the provider in the admin UI
The provider is configured per repo mapping, not globally. To confirm or change the provider for a repo:Edit the repo mapping
Find the team/repo mapping and open the edit form. The Provider field defaults to
anthropic.Selecting a model
The model Claude uses is controlled by themodel: key in the front matter of your repo’s WORKFLOW.md (and PLANNING.md if planning is enabled). The value is passed verbatim to claude-code --model, so any model ID that Anthropic’s API or your OAuth token accepts is valid.
- If
model:is not set inWORKFLOW.md, the implementation workflow defaults toclaude-sonnet-4-6. - The gap analysis step defaults to
claude-haiku-4-5-20251001when nogap_analysis_model:is specified.
claude-opus-4-7 and claude-haiku-4-5-20251001. New Anthropic model releases flow through without requiring a workflow template update — the model ID is not validated by the workflow.
The seed
WORKFLOW.md that AI-Implement syncs to your repo already includes model: claude-sonnet-4-6, so new repos work out of the box without any model configuration.