/openrouter:use-openrouterfrom OpenRouter
Route any OpenRouter task through the official OpenRouter MCP, bundled official OpenRouter skills, live official documentation, or the official REST API and SDKs. Use for OpenRouter model research, comparisons, reproducible experiments, inference, multimodal generation, analytics, account or key administration, integrations, debugging, authentication, updates, or first-time setup.
Ships in OpenRouter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use official OpenRouter capabilities in this order:
openrouter in Codex and plugin:openrouter:openrouter in Claude Code.search-docs; if MCP is unavailable, start from https://openrouter.ai/docs/llms.txt and the exact linked official page.https://openrouter.ai/openapi.json when applicable.Do not reimplement an official SDK, maintain a local model catalog, or rely on remembered model names, prices, limits, or capabilities when live official data is available.
Translate natural-language requests into the required workflow. Do not require the user to know model slugs, endpoint names, API request shapes, or which skill to invoke. Discover those details from live official sources, explain only decisions that affect cost, permissions, or results, and ask only for missing choices that materially change the operation.
When asked to initialize, set up, connect, authenticate, sign in, or log in to OpenRouter:
codex mcp login openrouter. In Claude Code, run /mcp, select the plugin-provided OpenRouter server, and follow the browser authentication flow.OPENROUTER_API_KEY, OPENROUTER_MANAGEMENT_API_KEY, quotas, workspaces, or other account settings unless the user explicitly asks for those separately.Treat these login requests as OAuth-only. Do not substitute MCP ping for the authentication flow and do not expand setup into API-key onboarding.
OPENROUTER_API_KEY is present. Never print, echo, log, persist in the project, or include the value in tool output.https://openrouter.ai/keys. Never ask them to paste it into chat.read -s "OPENROUTER_API_KEY?OpenRouter API key: "
launchctl setenv OPENROUTER_API_KEY "$OPENROUTER_API_KEY"
unset OPENROUTER_API_KEY
Tell the user to fully reopen Codex and start a new task afterward. To remove the login-session value, use launchctl unsetenv OPENROUTER_API_KEY.
printf 'OpenRouter API key: ' >&2
IFS= read -rs OPENROUTER_API_KEY
printf '\n' >&2
export OPENROUTER_API_KEY
The environment value belongs to that shell session. Launch Claude Code or Codex from the same shell, and use unset OPENROUTER_API_KEY when finished.
OPENROUTER_MANAGEMENT_API_KEY only for an explicit API-key administration task; never use it for inference or substitute it for OPENROUTER_API_KEY.request_user_input, AskUserQuestion, or a session-wide approval option.send-feedback, credit purchases or transfers, account changes, API-key creation, rotation, update, disablement, or deletion, and workspace, member, budget, guardrail, privacy, BYOK, observability, or preset writes always require separate confirmation of the exact side effect. A missing or ambiguous response is a denial.Retry-After for rate limits and availability errors. Do not retry a billable request without confirmation unless the user's approval explicitly covered retries.openrouter-models and openrouter-benchmarks when their richer workflow is needed.run-openrouter-experiment; use spawn-ori-eval for complete agent or coding harness evaluations.openrouter-key-management. Prefer current official APIs; use the exact official page only when no public endpoint exists. A regular inference key is enough to inspect its own limits; management writes require a separate management key and confirmation.openrouter-typescript-sdk, openrouter-agent-migration, create-agent-tui, or create-headless-agent as applicable.openrouter-images, openrouter-stt, openrouter-tts, or openrouter-video skill.openrouter-analytics, its schema/query skills, or openrouter-generations.openrouter-oauth. Do not confuse application OAuth with MCP connection OAuth.update-openrouter-plugin. Apply only its allowlisted safe changes automatically.Use the official snapshot provenance in the plugin root OFFICIAL_SOURCES.md only when auditing or updating the integration.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kyxzhe/openrouter-plugin --plugin openrouter21 skills in this plugin
/create-agent-tuiScaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant./create-headless-agentScaffolds a headless agent in TypeScript using @openrouter/agent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service./