OpenRouter static-API-key provider (https://openrouter.ai/api/v1).
OpenRouter is a multi-provider gateway speaking the OpenAI chat wire, so no
:api-style override is needed - svar's default OpenAI transport handles it.
Model names are vendor/model slugs (anthropic/claude-sonnet-4.5,
openai/gpt-5.1, ...).
Authentication is the shared static-API-key shape, owned by
com.blockether.vis.internal.provider.key-store and declared by BOOK below:
lookup order, status, logout, the token envelope and the interactive
vis-agent providers auth openrouter flow all come from there.
What stays here is what only OpenRouter knows: the starter catalog, the live
model enrichment, and the credit report from GET /api/v1/key - the credits
this key has consumed and, for capped keys, its limit.
OpenRouter static-API-key provider (https://openrouter.ai/api/v1). OpenRouter is a multi-provider gateway speaking the OpenAI chat wire, so no `:api-style` override is needed - svar's default OpenAI transport handles it. Model names are `vendor/model` slugs (`anthropic/claude-sonnet-4.5`, `openai/gpt-5.1`, ...). Authentication is the shared static-API-key shape, owned by `com.blockether.vis.internal.provider.key-store` and declared by `BOOK` below: lookup order, status, logout, the token envelope and the interactive `vis-agent providers auth openrouter` flow all come from there. What stays here is what only OpenRouter knows: the starter catalog, the live model enrichment, and the credit report from `GET /api/v1/key` - the credits this key has consumed and, for capped keys, its limit.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |