Skip to main content

Openrouter

@sntxrr/openrouterv2026.10.14.1· MIT(was none)· 1mo agoBEHAVIORS
01README

Chat completions and model catalog listing against the OpenRouter LLM gateway API

02Release Notes

Declare SPDX license (MIT) in manifest.

03Behaviors1
@sntxrr/openrouterv2026.09.25.2openrouter.ts

Global Arguments

ArgumentTypeDescription
apiKeystringOpenRouter API key (sk-or-...). Use a vault reference.
baseUrl?stringOpenRouter API root. Change only for a proxy or test server.
defaultModel?stringModel slug used when a chat call doesn't override it, e.g. openai/gpt-4o-mini
siteUrl?stringSent as HTTP-Referer for OpenRouter's app rankings
siteName?stringSent as X-Title
timeoutMs?numberPer-attempt HTTP timeout in milliseconds; a stalled request is aborted and fails the run.
fn chat(messages: array, model?: string, temperature?: number, maxTokens?: number, requestId?: string)
Send a chat completion request to OpenRouter
ArgumentTypeDescription
messagesarray
model?string
temperature?number
maxTokens?number
requestId?stringInstance name for the stored completion — use distinct values to keep separate conversation histories
fn listModels()
Fetch the current catalog of models available on OpenRouter

Resources

completion(infinite)— Chat completion response from OpenRouter
modelCatalog(infinite)— Snapshot of models available through OpenRouter
04Previous Versions3
2026.09.25.2
2026.09.25.1

Added 1, removed 1 behaviors

2026.06.20.1
05Stats
A
100 / 100
Downloads
61
Archive size
5.8 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
06Platforms
07Labels