A community skill for coding agents

Choose the API.
Build with evidence.

OpenRouter has grown beyond chat. Give your agent the API choices, working patterns, and failure cases it needs—without starting over in every project.

Open source · MIT · Independent of OpenRouter

● ● ●one task → the right contract

“Add a read-aloud button.”

  1. 01
    Choose speech synthesisAudio Speech API, not a chat response.
  2. 02
    Read bytes, not JSONCheck voice, format, errors, and generation id.
  3. 03
    Try the smallest sampleDry-run first. Live calls are explicit.
A worked pattern. Not a claim of paid inference.
30capability areas mapped
6focused sample patterns
2chat / image starter stacks
3×behavior trials per case

A wider map. Clear boundaries.

More than a chat wrapper.

A skill is a set of instructions, references, and reusable code your coding agent can load. It helps decide what to build; it does not turn on services or change your account.

01 / APIs & media

Start with the right format.

Chat Completions, Responses, Messages, images, async video, speech, transcription, embeddings, and rerank.

Starters cover selected chat/image routes. Other APIs have focused guidance and samples.

02 / Tools & agents

Know who runs the action.

Client functions, hosted tools, deferred tool search, Agent SDK, MCP, and state across turns.

A hosted tool record must not become a command on your application host.

03 / Cost & control

Keep the bill explainable.

Model routing, endpoint discounts, response caching, budgets, Guardrail Policies, identity, regions, and trace exports.

Preferences are not hard caps. Feature discovery is not account verification.

Read the complete capability map ↗

Real code to start from

Small samples. Useful edges.

Every command defaults to dry-run. The sample functions run in offline tests with injected responses. Paid model behavior is a separate check.

Runnable sample · dry-run default

Turn text into playable audio.

Use the speech endpoint, check its status, and save audio bytes. Choose a model and voice that support MP3.

Not every voice supports every format. A live Kokoro MP3 sample passed on 12 Nov 2026.

Open the actual source ↗
Terminal · from the skill directory
npx --yes tsx examples/run.ts speech \
  --model SPEECH_MODEL_ID --voice SUPPORTED_VOICE \
  --text "Your export is ready." --out reply.mp3
Dry-run → no request sent. Add --live with your own server-held key to generate audio.

Evidence you can inspect

“Tested” should mean something.

Unit tests check code. Documentation checks check selected contracts. Behavioral trials check what an agent recommends. We report them separately.

Local code checks

35 tests cover install safety, streaming, request/response samples, local tool execution boundaries, and inventory drift.

Synthetic fixtures, actual functions
Live documentation checks

113 checks passed against selected official contracts and a reviewed inventory of 552 indexed pages and 174 API operations.

Read-only network checks · 11 Nov 2026
Paid OpenRouter inference

Seven live flows passed: streaming, MP3 speech, completed video, embeddings, rerank, client tools, and image. Eight inference requests cost $0.22931826. One selected model per flow. Read the redacted results and billing evidence ↗

Actual paid requests · 12 Nov 2026

Paired behavior evaluation

Same task. Clean context.

Previous release, no skill, and candidate. Three trials per case, with hidden gates and a grader blinded to the variant.

Loading the published evaluation record…

This measures bounded integration recommendations. It does not certify end-to-end app behavior or performance on every model.

Inspect the results and limits ↗
How to read the evaluation

The runner receives the task and available reference text, but not the grading gates. Skill auto-discovery, tools, network, and account writes are disabled in the run. A separate clean model context grades shuffled answers against outcome gates. The grader uses the same model family, so this is blind grading, not a cross-model or human certification. Three trials are an early signal, not a broad reliability guarantee.

Cases include representative tasks, failure cases, scope boundaries, and held-out tasks. Development failures and retests stay in the release record; an average cannot erase a failed hard gate. No-skill and previous-release results are kept alongside the candidate.

Carry it into the next project

Install once.
Load what you need.

Use it with coding agents that support the skills format. Keep the generated code in your app, and choose the parts that fit.

Community-maintained. No bundled key, paid account, or tracking.

Install the canonical skill
npx skills add bnishit/skills \
  --skill openrouter-integration --global

Then ask your agent:

Use $openrouter-integration to add a resumable video flow. Start with the dry-run sample and show what still needs live verification.
Read the setup and verification guide ↗

Before you use it

The useful limits.

Does it implement every OpenRouter feature?

No. The references map 30 capability areas. The supplied Next.js/Express starters implement selected chat and image routes. Worked samples cover narrower server/CLI patterns. New product surfaces still need their own implementation and checks.

Why use this with an official SDK?

The SDK gives you typed calls and client behavior. This skill helps choose the API, preserve state, handle failure, and audit cost. The Client SDK and Agent SDK have different jobs; the skill explains that boundary.

How does it stay current?

Focused checks verify selected official assumptions. The inventory check flags added or removed indexed pages and API operations. Existing page/schema changes can still need manual review. The capability map includes source links and dated migration notes.

Is it ready to expose as a public proxy?

The samples are not an authentication, quota, or tenant-isolation system. Add those controls for your app and test with your account before exposure. Keys belong on the server; account and admin changes need their own authorization.