Skip to content

Add openrouter kit#107

Open
Pradumnasaraf wants to merge 1 commit into
docker:mainfrom
Pradumnasaraf:add-openrouter-kit
Open

Add openrouter kit#107
Pradumnasaraf wants to merge 1 commit into
docker:mainfrom
Pradumnasaraf:add-openrouter-kit

Conversation

@Pradumnasaraf

@Pradumnasaraf Pradumnasaraf commented Jun 23, 2026

Copy link
Copy Markdown

Adds openrouter, a provider mixin that routes Claude Code to OpenRouter through its Anthropic-compatible endpoint. It allows one domain (openrouter.ai) and uses one credential (OPENROUTER_API_KEY), which the sandbox proxy injects as a Bearer token on outbound requests — so the key stays on the host and never enters the sandbox.

Model tiers default to Claude models on OpenRouter and can be pointed at any
slug from https://openrouter.ai/models.

@Pradumnasaraf
Pradumnasaraf requested a review from a team as a code owner June 23, 2026 04:01
A stateless provider mixin that routes Claude Code to OpenRouter via its
Anthropic-compatible endpoint. OPENROUTER_API_KEY stays on the host and the
sandbox proxy injects it as a Bearer token on outbound requests to
openrouter.ai, so the key never enters the sandbox.

Defaults map each Claude Code model tier to the matching Claude model on
OpenRouter; any slug from https://openrouter.ai/models works.

Signed-off-by: Pradumna Saraf <pradumnasaraf@gmail.com>
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