openclaw
A personal AI assistant that runs on your own computer and answers through messaging channels such as Slack, Telegram and WhatsApp. Its skills cover browser automation, canvas panels, app previews and shareable diffs.
Offline credential import: shunt import opencodex --dry-run previews compatible API keys and Cursor/Command Code access tokens. Exports create new private snapshots without changing existing settings or copying refresh tokens. See credential import.
Claude Code
> /plugin marketplace add pleaseai/shunt> /plugin install shunt@shunt
Codex
$ npx skills add pleaseai/shunt --skill run-claude-gateway-ref run-shunt verify -a codex
Cursor
$ npx skills add pleaseai/shunt --skill run-claude-gateway-ref run-shunt verify -a cursor
Gemini CLI
$ npx skills add pleaseai/shunt --skill run-claude-gateway-ref run-shunt verify -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add pleaseai/shunt$ copilot plugin install shunt@shunt
OpenCode
$ npx skills add pleaseai/shunt --skill run-claude-gateway-ref run-shunt verify -a opencode
Windsurf
$ npx skills add pleaseai/shunt --skill run-claude-gateway-ref run-shunt verify -a windsurf
Offline credential import: shunt import opencodex --dry-run previews compatible API keys and Cursor/Command Code access tokens. Exports create new private snapshots without changing existing settings or copying refresh tokens. See credential import.
Shunt Claude Code to any model.
shunt is a spec-compliant Claude Code LLM gateway: a transparent proxy that, for the models you map, diverts inference to another LLM provider at the inference layer. It routes by the request's model id — everything else passes through to Anthropic unchanged (the "shunt"; the fallback is configurable via server.default_provider).
The name is the mechanism: an electrical/railway shunt diverts a selected part of the flow onto a parallel path. Here, a mapped model's inference is diverted to another provider while Claude Code's tools and skills stay intact.
Providers for OpenAI, ChatGPT/Codex, xAI, Grok, Cursor, Kimi Code, Zhipu, MiniMax China, OpenCode Zen, Cheaper Inference, Gemini, Antigravity, and Anthropic passthrough ship built in — several of them reusing a subscription you already pay for. Any Anthropic-Messages-compatible backend is one config table away, with no code changes. See Providers.
Note
shuntis pre-1.0 software under active development. Per SemVer,0.xreleases may include breaking changes to configuration keys, the CLI, and behavior — check the release notes before upgrading.
# Homebrew (macOS / Linux)
brew install pleaseai/tap/shunt
# Install script (macOS / Linux) — prebuilt binary from the GitHub release
curl -fsSL https://shunt.sh/install.sh | sh
# Cargo, directly from the source repository
cargo install --git https://github.com/pleaseai/shunt
New versions are distributed through Homebrew and prebuilt binaries (macOS/Linux, arm64/x64) attached to each GitHub release; the crates.io package stops at the last version published there. See Installation for prebuilt-binary and from-source instructions.
The cargo install line above builds without the admin dashboard: its bundle needs Node.js 22.12+ and is embedded only by --features ui, which Homebrew and the release binaries already enable. Everything else — including the admin JSON API — is identical either way. Installation has the from-source steps.
brew services start shunt
Logs go to $(brew --prefix)/var/log/shunt.log. brew services stop sends SIGTERM, and shunt
drains in-flight requests before exiting — for up to [server] shutdown_timeout_seconds
(default 30; changing this one does need a restart), after which shunt stops waiting and exits, so
a quiet SSE stream cannot hold the process open forever. On Unix, Antigravity agent turns are terminated when shutdown starts so
their isolated process groups cannot hold the drain open. Editing the config file
afterwards doesn't need a restart — it hot-reloads automatically. Details:
Running as a service.
# shunt.toml — route a gpt-* id to your ChatGPT subscription
# [[routes]] is legacy for exact ids; prefer [models.upstream_model].
[[routes]]
model = "gpt-5.6-sol"
provider = "codex" # reuses `codex login`; use `openai` for OPENAI_API_KEY
codex login # provider credential
shunt run # -> listening on 127.0.0.1:3001
export ANTHROPIC_BASE_URL=http://127.0.0.1:3001
export ANTHROPIC_CUSTOM_MODEL_OPTION="gpt-5.6-sol"
claude # /model -> pick gpt-5.6-sol
Unmapped models (all your claude-* ids) keep working exactly as before — shunt forwards them to Anthropic with your own credential. Full walkthrough: Quickstart.
shunt init creates a commented shunt.toml in an existing directory. Keep the default passthrough starter, or scaffold ordered upstream presets without changing the fallback for unmapped models:
shunt init
shunt init --upstream codex --upstream kimi
shunt add retrieves embedded Markdown implementation guides for coding agents. List the available upstream blueprints with shunt add upstream, or pipe one directly into an agent:
shunt add upstream kimi --print | claude
shunt add upstream https://provider.example/docs --print | claude
The command is offline and read-only: it prints guidance but never edits files, installs anything, or accesses the network. Use shunt add provider <absolute-url> when contributing support for a genuinely new provider protocol.
A provider is either an ordered [[upstreams]] entry or a legacy [providers.<name>] TOML table (under YAML, an entry in the corresponding sequence or mapping). Two adapter kinds cover most upstreams: kind = "anthropic" (the upstream speaks Anthropic Messages; passed through, optionally with a different key) and kind = "responses" (the upstream speaks the OpenAI Responses API; shunt translates Anthropic Messages ⇄ Responses, streaming included, and emulates stop_sequences gateway-side because the Responses API has no stop parameter). A third native kind, kind = "cursor", bridges Cursor's ConnectRPC/protobuf AgentService so a Cursor subscription is reachable through the same Anthropic-Messages interface.
Ordered upstreams enable cross-provider failover. Declaration order is the attempt order; a model's upstream_model map selects the participating entries and maps its public id to each backend's id:
[server]
default_provider = "anthropic-primary"
[[upstreams]]
name = "anthropic-primary"
provider = "anthropic" # preset: kind, base_url, and default auth
auth = { mode = "claude_oauth", account = "primary" }
[[upstreams]]
name = "codex-fallback"
provider = "codex" # defaults to chatgpt_oauth
[[models]]
id = "claude-opus-4-8"
[models.upstream_model]
anthropic-primary = "claude-opus-4-8"
codex-fallback = "gpt-5.6-sol"
This chain tries anthropic-primary and then codex-fallback. auth accepts either a mode string or a map; claude_oauth and chatgpt_oauth maps can narrow credentials with account = "name" or accounts = [...]. Legacy [providers.<name>] remains supported and becomes implicit name-sorted upstreams. Do not declare both forms: mixing [[upstreams]] with [providers.*] is a configuration error. See the configuration reference for presets, failure classes, and migration details.
These providers are seeded by default, so provider = "<name>" routes to them with no [providers.*] table of your own — but only while you declare no [[upstreams]]. An ordered [[upstreams]] list replaces the provider map entirely, so under that form every provider you route to must be declared there, presets included:
| Name | Kind | Auth | Backend |
|---|---|---|---|
anthropic | anthropic | passthrough or Claude OAuth account pool | api.anthropic.com — forwards the caller's credential by default; auth = "claude_oauth" enables pooled subscription credentials |
openai | responses | OPENAI_API_KEY | api.openai.com/v1 |
codex | responses | ChatGPT OAuth | chatgpt.com/backend-api — reuses ~/.codex/auth.json (codex login) |
xai | responses | XAI_API_KEY | api.x.ai/v1 — the developer API, billed per token |
grok | responses | xAI OAuth | cli-chat-proxy.grok.com/v1 — the Grok CLI proxy; reuses ~/.shunt/xai-auth.json (shunt login xai with a SuperGrok / X Premium+ subscription), or named accounts under ~/.shunt/accounts/xai (shunt login xai --name <name>, pooled with failover; the legacy file is used only while that pool is empty, so adding the first named account switches credentials) |
cursor | cursor | Cursor OAuth | api2.cursor.sh — reuses ~/.shunt/cursor-auth.json (shunt login cursor) |
gemini | gemini | Google OAuth | cloudcode-pa.googleapis.com — Google Code Assist backend; reuses ~/.gemini/oauth_creds.json |
antigravity | antigravity | Antigravity OAuth | daily-cloudcode-pa.googleapis.com — Google Antigravity backend over HTTP; uses ~/.shunt/antigravity-auth.json (shunt login antigravity), or named accounts under ~/.shunt/accounts/antigravity (shunt login antigravity --name, selected via accounts = [...]) |
antigravity-cli | antigravity_cli | None (local CLI) | Deprecated. Local agy binary — same backend via subprocess; superseded by antigravity above |
Ordered [[upstreams]] entries additionally accept the presets kimi, kimi-code, zhipu, minimax-cn, opencode, cheaperinference, and chatgpt-plan, which fill in kind, base_url, and the default auth for those backends.
ChatGPT plan (Sign in with ChatGPT). The chatgpt-plan preset spends a ChatGPT plan through OpenAI's "Sign in with ChatGPT" token-sharing preview on api.openai.com/v1/responses, separate from the codex provider above. Sign in with shunt login chatgpt-plan --name <account> (a browser callback on 127.0.0.1:1455, or paste the callback URL on a remote host), add an ordered [[upstreams]] entry with provider = "chatgpt-plan" (the preset fills in kind, base_url, and auth = "chatgpt_plan_oauth") and map a model to it, as below. Several named accounts form a pool that rotates when one hits its plan usage limit, and shunt logout chatgpt-plan --name <account> revokes and clears one. The preview rejects some request parameters and a usage limit hit after output starts ends the stream instead of rotating; see the ChatGPT plan guide.
[[upstreams]]
name = "anthropic"
provider = "anthropic" # preset: Claude models pass through to Anthropic
[[upstreams]]
name = "chatgpt-plan"
provider = "chatgpt-plan" # preset: kind, base_url, and auth = "chatgpt_plan_oauth"
[[models]]
id = "gpt-6.1-sol"
[models.upstream_model]
chatgpt-plan = "gpt-6.1-sol"
Per-provider setup, model ids, and caveats live under Providers — including xAI's OAuth tier gate (xAI / Grok), Cursor's agent-mode prefixes (Cursor), and Antigravity's two transports and the kind = "antigravity" migration (Antigravity).
Warning
A personal AI assistant that runs on your own computer and answers through messaging channels such as Slack, Telegram and WhatsApp. Its skills cover browser automation, canvas panels, app previews and shareable diffs.
Gives your AI agent a learning loop: it turns past work into reusable skills, keeps notes across sessions, and searches its own earlier conversations. It can also run on a cheap server and be reached from chat apps like Telegram.
A single CLAUDE.md file with behavioral guidelines to reduce common LLM coding mistakes, such as overcomplication and unstated assumptions. It is derived from Andrej Karpathy's observations on coding pitfalls and helps Claude Code write, review, and refactor code more carefully.
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by running routine tasks, explaining complex code, and handling git workflows through natural language commands.
Offline credential import: shunt import opencodex --dry-run previews compatible API keys and Cursor/Command Code access tokens. Exports create new private snapshots without changing existing settings or copying refresh tokens. See credential import. Install it with the command on its page. It includes run-claude-gateway-ref, run-shunt, verify. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it