StaysUp/agentbus
Self-hosted coding-agent gateway for model-call tracing and staged edits.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
AgentBus is a self-hosted Go control plane and model gateway for existing coding CLIs, not a model runtime. A turn runs through Claude Code, Codex, OpenCode or Antigravity on the local host or a joined runner. The gateway captures model requests and replies with cost records, while the session layer lets a different agent take the next turn or review work in the same conversation. The browser cockpit, CLI and HTTP API are separate entry points into the workflow.
The package layout separates adapter/, gateway/ and runner/ from event/, store/, replay/, workspace/ and wall/. The Go module includes modernc.org/sqlite, kin-openapi and mvdan.cc/sh/v3, covering embedded SQL, OpenAPI and shell parsing without implying that every host command is intercepted. HTTP clients can use the OpenAPI 3.1 contract at /api/v0/openapi.json; runner integration has a separate contract at /api/v0/runner/openapi.json.
Key Capabilities & Differentiators
A session can switch from Claude Code to Codex mid-conversation or delegate a question, task or review to another agent. Access varies by adapter: Claude Code and Codex support native logins or their respective vendor API keys; Antigravity supports Google login or a Gemini API key; OpenCode uses OpenRouter or xAI keys, not its native login. Claude Code can also use OpenRouter model IDs, though changing the backend does not change the Claude Code harness or its tool conventions.
Claude Code and Codex use gateway replay by default; the history budget defaults to 40% of the model’s context window. Older long tool results become retrievable stubs, and the oldest turns are summarized without truncating the stored record. Antigravity uses vendor-side resume and only receives a pending note when the next turn starts. User-submitted turns have their own lane, while agent-started turns default to a concurrency limit of eight. Delegation depth, turn count and cost are configurable.
Trade-offs & Limitations
Compared with running Claude Code or Codex directly, AgentBus adds cross-vendor continuity, a per-call audit trail and staged changes, at the cost of another service, more local data and adapter-specific limits. Direct edits the real folder without a wall. Default Copy works on a per-session copy; Review can ask another model to inspect changes, Apply writes them back, and Discard drops the copy without undoing effects outside it. Sandbox adds permission checks to Copy, but enforcement is not uniform: Antigravity cannot enforce shell forbid rules, and OpenCode may refuse a turn rather than pause for approval.
The srt boundary restricts writes to protected project folders and hides AgentBus’s data directory; it is not host isolation. Network access, Docker and ssh-agent remain available, and agents can read host secrets their terminal can read. Docker can modify the original folder outside Review and Apply. Evaluate those limits before giving agents access to sensitive hosts, and set a retention policy for full model records. The license metadata is unspecified despite a LICENSE file, so verify its terms before commercial adoption or redistribution.
Hardware & Deployment Guide
Run on macOS or Linux with at least one supported coding CLI installed; Windows is unsupported. Install via Homebrew or the release script, then use agentbus up -open to start the service and open the cockpit. Building cmd/agentbus from source requires Go 1.27.1 or later and initially serves only the API; agentbus up prints the cockpit installation command. Joined runners need the relevant CLIs and machine-local logins for subscription access, and the control plane rejects older runner protocols.
The default data directory is ~/.local/share/agentbus, overridable with AGENTBUS_HOME. Protect it and its control token, and restrict network access if enabling a non-loopback listener. Copy can be slow on Ubuntu 24.04 and later until the AgentBus AppArmor profile is installed. The release notes mark separate user-turn scheduling in v0.6.7 and a shared srt boundary for Copy and Sandbox in v0.6.10. Local hosting keeps records on managed disk, but is not offline inference: model calls still go to the selected provider.
Developers running multiple coding CLIs who want a shared session, per-call cost visibility and a review gate before changes land.
You only need one vendor’s native CLI, require fully offline inference, or need strong isolation from host secrets and network access.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/staysup/agentbus/main/install.sh | sh
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| agentbus ★ | 243 | +153 | Go | — | Self-hosted coding-agent gateway for model-call tracing and staged edits. |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
| goose | 57.3k | +219 | Rust | Apache-2.0 | Rust coding agent with MCP tools and local or hosted models, embeddable via ACP |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/StaysUp/agentbus.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about agentbus
Does AgentBus replace my coding CLI, and how does a second agent pick up the work?
Do I need a GPU, and what should I size on the host?
Can we self-host AgentBus for commercial use?
When is AgentBus preferable to running Claude Code or Codex directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy