0xtrail

Arcli — AI skill for Claude Code

AI community

Point Claude Code, Codex, and Claude Desktop at AgentRouter — one command, live model list, byte-exact config backups.

How to install Arcli

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

What Arcli does

Point Claude Code, Codex, and Claude Desktop at AgentRouter — one command, live model list, byte-exact config backups.

Alternatives in AI

  • Model Config — /model-config — Choose the model you follow 705 ★
  • UltraCode Shim — Give Claude Code's ultracode mode to ANY model you already pay for 422 ★
  • ClaudeR — Connect RStudio to Claude Code, Codex, Gemini, and other LLM agents via MCP 328 ★

README

arcli

Point your AI coding tools at [AgentRouter](https://agentrouter.org) — one command, no hand-editing config files.

Supports **Claude Code CLI** (Anthropic protocol), **Codex CLI** (OpenAI protocol), and **Claude Desktop (Cowork)**. The model list is fetched live from the gateway, so you always pick from models your key can actually reach — the menu is filtered per app by the gateway's own `supported_endpoint_types`.

Install

npm install -g @0xtrail/arcli

Requires Node.js 22 or newer. The package is scoped, but the command you type is just `arcli`.

Use

arcli

You will be asked for your API key once — grab one at https://agentrouter.org/console/token and paste it in. The key is verified against the gateway before anything is stored, so a typo fails fast with nothing written. Then a menu opens:

 █████╗ ██████╗
██╔══██╗██╔══██╗
███████║██████╔╝
██╔══██║██╔══██╗
██║  ██║██║  ██║
╚═╝  ╚═╝╚═╝  ╚═╝
point your AI coding tools at AgentRouter

API key ····kt5y
────────────────────────────────────────────

What would you like to do?

❯ Install to apps
  Restore originals
  View status
  Log out
  Quit

↑↓ navigate · enter confirm · esc cancel
  • Install to apps — pick an app, pick from your live model list, done. If the model list can't be reached (offline, gateway hiccup), you type the model name instead — setup never strands you.
  • Restore originals — restores your original configs, byte for byte (checksum-verified backups, including deleting files that didn't exist before).
  • View status — which apps are currently using AgentRouter.
  • Log out — deletes the stored API key. Your apps keep pointing at AgentRouter until you choose Restore originals.

What setup writes

**Claude Code** (`~/.claude/settings.json`, `env` block) — bare origin on purpose, because the Anthropic SDK appends `/v1/messages` itself:

ANTHROPIC_BASE_URL=https://agentrouter.org
ANTHROPIC_AUTH_TOKEN=
API_TIMEOUT_MS=6000