By kyxzhe
OpenRouter plugins for model research, experiments, API workflows, and administration
npx claudepluginhub kyxzhe/openrouter-pluginOpenRouter integration using its official MCP, Agent Skills, APIs, and SDK documentation.
Use OpenRouter from Codex, Claude Code, or an Agent Plugins 1.0 compatible client for model research, experiments, API integration, multimodal generation, analytics, and account administration.
Run in a terminal:
codex plugin marketplace add kyxzhe/openrouter-plugin --ref main
codex plugin add openrouter@openrouter-community
codex mcp login openrouter
Restart Codex and start a new task.
Run inside Claude Code:
/plugin marketplace add kyxzhe/openrouter-plugin
/plugin install openrouter@openrouter-community
/reload-plugins
Then type:
Initialize OpenRouter
This opens the official OpenRouter MCP OAuth flow. If authentication does not start automatically, run /mcp inside Claude Code, select the plugin-provided OpenRouter server, and follow the browser login flow.
The portable package is in plugins/openrouter and includes the standard plugin.json, mcp.json, and skills/ layout. Point an Agent Plugins 1.0 compatible client at that directory using the client's installation workflow.
Recommend an OpenRouter model for my task using live pricing and benchmarks
Run one experiment across OpenRouter models and compare results and cost
Integrate this project with OpenRouter using the latest official documentation
Manage my OpenRouter API keys, workspaces, guardrails, BYOK, presets, or observability settings
MCP features use the browser OAuth setup above and do not require an API key. Add keys only when you need direct API, SDK, or key-management workflows.
OPENROUTER_API_KEY and OPENROUTER_MANAGEMENT_API_KEYCreate a dedicated, limited key at openrouter.ai/keys and expose it as OPENROUTER_API_KEY.
For the macOS Codex app, run this in Terminal, then fully restart Codex:
read -s "OPENROUTER_API_KEY?OpenRouter API key: "
launchctl setenv OPENROUTER_API_KEY "$OPENROUTER_API_KEY"
unset OPENROUTER_API_KEY
For Codex CLI or Claude Code on macOS/Linux, run this before launching the agent from the same shell:
printf 'OpenRouter API key: '
IFS= read -rs OPENROUTER_API_KEY
printf '\n'
export OPENROUTER_API_KEY
On Windows PowerShell:
$env:OPENROUTER_API_KEY = Read-Host "OpenRouter API key" -MaskInput
Create one at OpenRouter Management API Keys only if you want the plugin to create, rotate, update, disable, or delete API keys. Repeat the setup above with OPENROUTER_MANAGEMENT_API_KEY instead of OPENROUTER_API_KEY.
Management keys are for administrative operations only and cannot run inference. Never paste either key into chat or commit it to a repository.
Billable requests run immediately when the user's prompt explicitly approves the specific credit use, charge, or budget. Otherwise, the plugin asks for confirmation in ordinary conversation before sending the request. It does not use interactive confirmation cards or session-wide approval. Account and administrative changes always require separate confirmation.
Codex:
codex plugin marketplace upgrade openrouter-community
codex plugin add openrouter@openrouter-community
Claude Code:
/plugin marketplace update openrouter-community
/reload-plugins
This is an independently maintained plugin, not an official OpenRouter or Anthropic distribution. See OFFICIAL_SOURCES.md for source and compatibility details.
7-day visitors to each marketplace page
Knowledge graph and codebase architecture intelligence for AI coding assistants
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Context7 plugins for coding agents.