by StaysUp
Cross-vendor middleware for coding agents: every model call, its cost and the full conversation, through one gateway.
# Add to your Claude Code skills
git clone https://github.com/StaysUp/agentbusagentbus is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by StaysUp. Cross-vendor middleware for coding agents: every model call, its cost and the full conversation, through one gateway. It has 93 GitHub stars.
agentbus's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/StaysUp/agentbus" and add it to your Claude Code skills directory (see the Installation section above).
agentbus is primarily written in Go. It is open-source under StaysUp on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agentbus against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Control every AI agent in a single place.
Quickstart • Demo • Docs • Releases
AgentBus sits between your coding agents and every model vendor. It runs the agents you already have (Claude Code, Codex, Antigravity, OpenCode or any OpenRouter model) and tracks every step.
You need macOS or Linux, and claude, codex, agy or opencode installed. Use one of these:
Install script (puts the binary in ~/.local/bin):
curl -fsSL https://raw.githubusercontent.com/staysup/agentbus/main/install.sh | sh
Homebrew (macOS or Linux):
brew install staysup/tap/agentbus
From source (Go 1.27.1 or later):
go install github.com/staysup/agentbus/cmd/agentbus@latest
A source build serves the API only, with no cockpit; agentbus up then prints the one command that adds it.
The install script takes AGENTBUS_INSTALL_DIR (another folder) and AGENTBUS_VERSION (another
release). Check the install with agentbus version. If ~/.local/bin is not on your PATH, the
script prints the exact line to add for your shell (zsh, bash or fish); it never edits a profile.
A first run, from nothing to two vendors talking about the same work. You need claude and codex
installed, and a Claude and a ChatGPT subscription.
Start AgentBus.
agentbus up -open
It prints a sign-in link, http://127.0.0.1:8787/?t=…, and with -open opens it in your
browser. Without -open it only prints the link. The cockpit comes with
agentbus up: nothing else to install. The link works once, for 10 minutes. The link expired?
Stop agentbus up (Ctrl-C) and start it again for a new one.
In another tab or browser, paste your token on the connect screen instead. The token is the file
token in the data folder that agentbus up prints when it starts ($AGENTBUS_HOME, by default
~/.local/share/agentbus). Copy it
without showing it: pbcopy < ~/.local/share/agentbus/token on a Mac, or
xclip -sel c < ~/.local/share/agentbus/token on Linux. Anyone with the token controls your
agents, so keep it to yourself.
Add your agents. A new AgentBus starts with no agents. Press + Agent at the top of the Agents column, pick Claude Code, and press Create agent. Do the same for Codex.
Connect your subscriptions. Open Settings (at the foot of the Agents column), then Subscriptions. Press Connect next to Claude Code and sign in as it asks. Do the same for Codex. You do this once.
Bring your setup (optional). In Settings, Config, press Use my config, look over
the list and save. Your settings, skills, MCP servers and logins such as gh and aws then come
into every session.
Ask Claude something. Press + Session, pick Claude Code, type the path of a project folder, write a first message such as "what does this project do?", and press Start.
Ask Codex about it. In the same session, switch the agent beside Send to Codex, and send "what do you think about the answer above?". Codex reads Claude's answer and gives its own.
Every turn and every model call is now in the record, with its cost.
By default (-replay), agentbus up, server and runner continue Claude and Codex sessions by sending the earlier turns' history through the gateway. Pass -replay=false when you want to use the vendor's own session resume instead. AgentBus keeps that history within a budget by itself (40% of the model's window by default, budget in /api/v0/settings/compaction): older turns' long tool output becomes stubs the agent can fetch back, and the oldest turns become a short summary, while the record keeps every byte.
Every turn uses the sign-in you connect in Settings. This one path, Connect, is used in every
mode. Your tool's own sign-in on this machine (~/.claude, ~/.codex) is not touched: AgentBus
gives the agent a stand-in and swaps in the real token at the gateway, so recording is never
bypassed. A turn whose tool is not connected is refused with "connect your claude subscription in
Settings".
On agentbus up, a turn runs in your real home, so the rest of your setup comes along: your
CLAUDE.md, hooks, plugins, skills, and logins such as gh, aws, ssh and gitconfig. Only the
vendor sign-in goes through Connect.
An agent can also use an API key instead of a subscription. Paste the key once in Settings, Subscriptions: an OpenRouter key for any OpenRouter model, or the vendor's own key (Anthropic for Claude Code, OpenAI for Codex, Gemini for Antigravity). AgentBus keeps it, adds it only to that vendor's model calls, and never shows it again or gives it to an agent. Replace and Remove change it.
An agent reaches its model in one of three ways, its access:
subscription: the subscription connected in Settings. The model is optional.openrouter: an OpenRouter key. The model is required and is written in OpenRouter's naming.api: the vendor's own API key set in Settings (Anthropic for Claude Code, OpenAI for Codex, Gemini
for Antigravity). The model is optional.OpenCode (npm install -g opencode-ai) runs on openrouter only.
Claude Code can run on any model OpenRouter offers: the agent still runs Claude Code, but the model behind it changes. From an empty AgentBus:
openrouter and model to an id in OpenRouter's naming, such as openai/gpt-oss-120b (GPT) or
deepseek/deepseek-v4.1-flash (DeepSeek), then press Create agent. openrouter needs a model.Claude Code's tools are tuned for Claude, so other models may behave differently; give clear steps and read what they reply.
When you start a session you pick how it runs. The choice is remembered.
A Copy session brings your setup in read only, leaving out the agents' own login files so Connect's sign-in is used.
A Copy session's workspace holds its copy, and its file changes are held for you. Open the session, read what each turn changed, and ask another model to check it with Review, right next to Apply. Then Apply writes the changes into your folder, or Discard drops the copy. What a turn's commands did outside the copy is shown in the turn view; it is not undone.
Settings apply to every session, from the next turn. Change them on the cockpit's Settings page, or
through the API (/api/v0/settings/permissions and /api/v0/settings/instructions; the keys and
their defaults are in