404kidwiz

Claude Openrouter Router — Development skill for Claude Code

Development community

Claude Code launchers for OpenRouter profiles and Claude-compatible routing.

How to install Claude Openrouter Router

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 404kidwiz/claude-openrouter-router and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Openrouter Router does

Claude Code launchers for OpenRouter profiles and Claude-compatible routing.

Alternatives in Development

  • Ecc Guide — Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su 243.5k ★
  • Magnitude — Open source inference server your agent sets up for you 1.5k ★
  • Dario — A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline 485 ★

README

Claude OpenRouter Router

![Claude OpenRouter Router hero](assets/claude-openrouter-router-hero.png)

![Setup demo](assets/demo.gif)

Small shell launchers for running Claude Code through OpenRouter's Anthropic-compatible endpoint.

The goal is simple: keep Claude Code's environment clean, make provider switching obvious, and offer a safe default that follows OpenRouter's Claude Code documentation.

**Note:** Shortcut commands (`claude-ring`, `claude-owl`, etc.) do **not** replace your existing `claude` command. The original Claude Code binary stays untouched. Use `claude-openrouter` or a shortcut when you want OpenRouter routing.

**Compatibility:** macOS and Linux. Requires bash 4+. Not tested on Windows (WSL may work).

What This Does

`claude-openrouter` starts Claude Code with the OpenRouter environment variables that Claude Code expects:

ANTHROPIC_BASE_URL=https://openrouter.ai/api
ANTHROPIC_AUTH_TOKEN=$OPENROUTER_API_KEY
ANTHROPIC_API_KEY=

The empty `ANTHROPIC_API_KEY` is intentional. OpenRouter's Claude Code guide says it must be explicitly blank so Claude Code does not try to authenticate against Anthropic directly.

Install

Homebrew (macOS/Linux):

brew tap 404kidwiz/tap
brew install claude-openrouter

One-line install:

curl -fsSL https://raw.githubusercontent.com/404kidwiz/claude-openrouter-router/main/bootstrap.sh | bash

Then run:

claude-openrouter --setup

Clone and install:

git clone https://github.com/404kidwiz/claude-openrouter-router.git
cd claude-openrouter-router
./install.sh

Make sure `~/.local/bin` is on your `PATH`:

export PATH="$HOME/.local/bin:$PATH"

Create an OpenRouter API key from the [OpenRouter API keys page](https://openrouter.ai/settings/keys), then save it locally.

Fastest setup:

claude-openrouter --setup

Recommended, avoids putting the key directly in shell history:

printf '%s' 'sk-or-v1-...' | claude-openrouter --set-k