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.

Client tutorials

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