UniRoute
Docs

UniRoute configuration tool and Skill

Configure AI clients with the UniRoute CLI, Claude Code plugin, or portable Skill.

UniRoute provides an npm configuration CLI, a Claude Code plugin, and a portable Skill. The CLI queries the gateway model catalog for your current API key, selects the native client protocol, and backs up files before changes. Available models come from that catalog rather than a built-in fixed allowlist.

Use the configuration tool

Install Node.js 22+ and create a UniRoute API key. Query the catalog with hidden terminal key input:

bash
npx -y uniroute-setup@latest models

Copy a complete model ID from the catalog. This example configures Codex with Responses:

bash
npx -y uniroute-setup@latest configure codex --model MODEL_ID --dry-run

Review the preview, then write the configuration:

bash
npx -y uniroute-setup@latest configure codex --model MODEL_ID

The npm command always uses uniroute-setup@latest. Supported client IDs: claude, codex, gemini, opencode, openclaw, and hermes. When --model is omitted, the tool selects the client recommendation present in your authenticated catalog, then the first compatible catalog model. An explicit --model pins your choice.

To choose Claude Fable 5.2 when claude-fable-5-2 is in your catalog, preview the Claude Code configuration:

bash
npx -y uniroute-setup@latest configure claude --model claude-fable-5-2 --dry-run

--dry-run previews without writes. --home /path/to/test-home uses an isolated home. Existing changed files receive private .uniroute-….bak backups. To restore, quit the client and copy its matching configuration and credential backups back to the printed paths; preserve later unrelated edits. Claude Code setup also merges hasCompletedOnboarding: true into its preference file.

Non-interactive key input

Use the UNIROUTE_API_KEY environment variable for an automated one-liner. The tabs below work in bash / zsh and PowerShell.

Quick setup

Sign in to create a key and fill it in automatically Sign in

bash
UNIROUTE_API_KEY=YOUR_UNIROUTE_API_KEY npx -y uniroute-setup@latest configure codex --model gpt-6.1-sol

The CLI also accepts --key-file /path/to/private-key-file. Restrict that file to your user. Keep API keys out of AI conversations, repositories, and shared terminal history. Configuration and catalog commands do not start model conversations.

Claude Code plugin marketplace

In a Claude Code session, add the marketplace and install the setup Skill:

/plugin marketplace add emptylower/uniroute-community
/plugin install uniroute-setup@uniroute-marketplace

Reload the plugin or restart the session, then ask: “Use the UniRoute setup Skill to configure Codex; preview the changes first.” The Skill uses the same npm CLI. Install the coding client separately through its official channel.

Portable Skill

Download the setup Skill ZIP, extract uniroute-setup, and place it in your client’s skill directory:

ClientProject skill directory
Claude Code.claude/skills/uniroute-setup/
Codex.agents/skills/uniroute-setup/

The folder must contain SKILL.md. Reopen the project, then invoke $uniroute-setup in Codex or ask Claude Code to use the Skill. The source lives in the UniRoute community repository.

MCP Server (Media Generation)

uniroute-mcp-server is a zero-dependency stdio MCP server for Node.js 20+, released under the MIT license. Claude Code, Codex CLI, Cursor, and Claude Desktop can use uniroute_list_media_models to discover 63+ image, video, and music models and uniroute_quote_media to get an exact USD quote before submitting a task. For one-shot generation, uniroute_generate_media quotes the cost, submits the asynchronous task only if the quote is within the per-call max_budget_usd limit (default $0.50), and polls for output URLs.

Create a UniRoute API key, clone the server, and read your key into memory with silent terminal input so it is not saved in shell history. This example uses claude for Claude Code. Use codex, cursor, or claude-desktop for the other clients.

git clone https://github.com/uniroute-app/uniroute-mcp-server.git ~/.uniroute-mcp
printf 'UniRoute API key: ' && IFS= read -rs UNIROUTE_API_KEY && printf '\n'
UNIROUTE_API_KEY="$UNIROUTE_API_KEY" node ~/.uniroute-mcp/src/index.js setup claude
unset UNIROUTE_API_KEY

Setup saves your key to ~/.config/uniroute/api-key with chmod 600 and stores the file path in the client config. Restart the client to load the server. To verify API connectivity and see the model counts, run the check command.

node ~/.uniroute-mcp/src/index.js check

GitHub · Glama

Client tutorials

Claude Code · Codex · Gemini CLI · OpenCode · OpenClaw · Hermes