@auggy/openrouter
v0.4.3
Published
OpenRouter engine adapter for auggy — implements ModelClient against OpenRouter's OpenAI-compatible API.
Downloads
519
Maintainers
Readme
@auggy/openrouter
OpenRouter engine adapter for auggy — implements ModelClient against OpenRouter's OpenAI-compatible API. Routes to any of the 200+ models OpenRouter supports.
Install
bun add @auggy/openrouterYou don't normally install this directly — auggy create does it for you when you pick openrouter as the engine provider during scaffold.
Usage
import { createOpenRouterEngine } from "@auggy/openrouter";
const engine = createOpenRouterEngine({
model: "anthropic/claude-sonnet-4-6",
// apiKey omitted → SDK reads OPENROUTER_API_KEY from env.
});The auggy runtime resolves the engine via agent.yaml:
engine:
provider: openrouter
model: anthropic/claude-sonnet-4-6
maxContextTokens: 200000
maxTokens: 4096License
Apache-2.0 — see LICENSE.
