Skip to content

Openrouter migration#3

Open
CrypticSwarm wants to merge 2 commits into
mainfrom
openrouter-migration
Open

Openrouter migration#3
CrypticSwarm wants to merge 2 commits into
mainfrom
openrouter-migration

Conversation

@CrypticSwarm

Copy link
Copy Markdown

Migrate from using Anthropic API key over to OpenRouter API key for API based python scripts.

Point the anthropic SDK at OpenRouter's Anthropic-compatible Messages
endpoint (base_url + auth_token) and read OPENROUTER_API_KEY. Model is now
an OpenRouter slug, overridable via OPENROUTER_MODEL. No changes to the
Messages API call shape, tool schemas, or transcript output.
Drop ANTHROPIC_API_KEY from the Module 2 and Module 3 run commands; the
containers now authenticate to OpenRouter with OPENROUTER_API_KEY only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant