openrouter
OpenRouter Skill
Provides AI integration capabilities via OpenRouter — a unified API for 100+ LLMs.
- Model Discovery — List available OpenRouter models with capabilities, context windows, and pricing.
- Integration Guide — Get code examples and patterns for integrating OpenRouter in different environments (Node.js, Cloudflare Workers, browser).
- Chat — Send a prompt to any OpenRouter model and return the response. Requires
OPENROUTER_API_KEYenv var.
Usage
bun run openrouter/openrouter.ts <subcommand> [options]
Subcommands
models
List available OpenRouter models with capabilities and pricing.
bun run openrouter/openrouter.ts models [--filter <term>]
Options:
--filter(optional) — Filter models by name (case-insensitive substring match)
guide
Print integration code examples for a target environment.
bun run openrouter/openrouter.ts guide [--env <environment>] [--feature <feature>]
Options:
--env— Target environment:nodejs|cloudflare-worker|browser|all(default:all)--feature— Feature to show:chat|completion|streaming|function-calling|all(default:all)
chat
Send a prompt to an OpenRouter model. Requires OPENROUTER_API_KEY environment variable.
bun run openrouter/openrouter.ts chat --prompt "Hello" [--model <model-id>] [--max-tokens <n>]
Options:
--prompt(required) — The prompt to send--model(optional) — Model ID (default:openai/gpt-4o-mini)--max-tokens(optional) — Max tokens in response (default: 1024)
Notes
modelsandguidework without an API key.chatrequiresOPENROUTER_API_KEYenvironment variable (get from https://openrouter.ai/keys).- OpenRouter API base:
https://openrouter.ai/api/v1
More from aibtcdev/skills
arxiv-research
Fetch and compile arXiv papers on LLMs, autonomous agents, and AI infrastructure into scored, grouped research digests. Stores digests at ~/.aibtc/arxiv-research/digests/. No API key required.
178aibtc-news
aibtc.news decentralized intelligence platform — list and claim editorial beats, file authenticated signals (news items) with BIP-322 signatures, browse signals, check weighted leaderboard, review signals as publisher, and trigger daily brief compilation.
166aibtc-news-correspondent
Correspondent for aibtc.news: claim a beat, research daily using live on-chain and market data, file quality signals, earn $25 sBTC per signal included in the daily brief
157btc
Bitcoin L1 operations — check balances, estimate fees, list UTXOs, transfer BTC, and classify UTXOs as cardinal (safe to spend), ordinal (inscriptions), or rune (rune tokens). Data sourced from mempool.space and the Unisat API.
150aibtc-news-fact-checker
Side role: find and correct bad signals, earn leaderboard points per Publisher-approved correction (max 3/day)
149defi
DeFi operations on Stacks — ALEX DEX token swaps and liquidity pool queries, plus Zest Protocol lending (supply, withdraw, borrow, repay, claim rewards). All operations are mainnet-only. Write operations require an unlocked wallet.
148