by chaitin
A secure local gateway for AI agents to reliably call approved enterprise APIs, tools, and services.
# Add to your Claude Code skills
git clone https://github.com/chaitin/OctoBusOctoBus is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by chaitin. A secure local gateway for AI agents to reliably call approved enterprise APIs, tools, and services. It has 213 GitHub stars.
OctoBus'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/chaitin/OctoBus" and add it to your Claude Code skills directory (see the Installation section above).
OctoBus is primarily written in JavaScript. It is open-source under chaitin 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 OctoBus 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.
OctoBus is a locally running single-binary gateway for managing pluggable Node.js service packages and exposing the gRPC capabilities in those packages to clients or agents by capset.
The current implementation provides a Go-built octobus binary that is responsible for:
OctoBus is built around the following core model:
service.json, proto files, and a gRPC implementation. A single distribution package can expose multiple service roots through //service-dir.capset -> service -> instance -> method bindings.By default, the daemon listens on a single port, 127.0.0.1:9000. The admin API, gRPC, Connect RPC, MCP, and reflection are all dispatched through that port. You can bind explicitly to another address with --addr, for example 0.0.0.0:9000; when exposing OctoBus remotely, you are responsible for network access control. The CLI performs management operations through the admin API by default and does not write SQLite directly.
Service packages use the long-running runtime mode by default: after an instance is created or started, OctoBus launches a resident Node.js gRPC subprocess. A package can also declare "runtime":{"mode":"on-demand"} in service.json: such instances are not prestarted and do not store a PID or listen address. For each incoming request, OctoBus starts one short-lived invoke subprocess.
A third mode, scale-to-zero, keeps a resident serve subprocess warm between calls: the first request starts it (concurrent first requests share one start), idle requests park it after OCTOBUS_SCALE_TO_ZERO_IDLE_TTL (default 15m), and the warm pool is capped at OCTOBUS_SCALE_TO_ZERO_MAX_INSTANCES (default 32, evicting the least recently used). A parked scale-to-zero instance keeps enabled and returns to stopped, so the next request warms it again. Set the mode per instance with instance create/update --runtime-mode scale-to-zero, or per package with "runtime":{"mode":"scale-to-zero"}. An instance may also override its service's mode at any time. The daemon reconciles real runtime processes against the store on a period (OCTOBUS_RECONCILE_INTERVAL, default 5m): on Linux, leaked serve processes are killed (attribution reads /proc); everywhere, stale rows are repaired and enabled long-running instances that died are restarted. An instance create against an existing instance converges its stored definition and never changes an operator's start/stop state -- use instance start/stop for that.
OctoBus is published as the @chaitin-ai/octobus npm package. The main package
installs a small Node.js launcher and pulls the matching native Go binary through
platform-specific optional dependencies such as
@chaitin-ai/octobus-linux-x64.
npm install -g @chaitin-ai/octobus
octobus serve --dev
You can also run it without a global install:
npx @chaitin-ai/octobus serve --dev
The npm package installs the octobus binary only. Normal service import and
runtime flows still require node, npm, protoc, and git as described
below.
The Docker image includes the octobus binary and the runtime dependencies used
for normal service import and instance startup flows.
docker run --rm \
-p 9000:9000 \
-e OCTOBUS_BOOTSTRAP_ADMIN_TOKEN=... \
-v octobus-data:/var/lib/octobus \
docker.io/chaitin/octobus:latest
The container listens on 0.0.0.0:9000 by default and stores daemon state under
/var/lib/octobus.
The image runs as the non-root octobus user. The named volume example above
is already initialized with the correct ownership. If you use a host bind mount,
create the directory first and make it writable by the container's octobus
user before starting the daemon:
mkdir -p ./octobus-data
# Replace <uid>:<gid> with the values used by the image:
docker run --rm --entrypoint id docker.io/chaitin/octobus:latest -u octobus
docker run --rm --entrypoint id docker.io/chaitin/octobus:latest -g octobus
sudo chown -R <uid>:<gid> ./octobus-data
docker run --rm \
-p 9000:9000 \
-v "$PWD/octobus-data:/var/lib/octobus" \
docker.io/chaitin/octobus:latest
After the first checkout, build the binary:
task build
Start with the default configuration:
./bin/octobus serve --dev
Common options:
./bin/octobus serve --dev \
--data-dir .octobus \
--addr 127.0.0.1:9000
You can also override defaults through environment variables:
export OCTOBUS_DATA_DIR="./.octobus"
export OCTOBUS_ADDR="127.0.0.1:9000"
export OCTOBUS_ADMIN_TOKEN="octobus-dev-admin-token"
The data directory stores the SQLite database, service artifacts and runtimes, instance config, and logs. The default data directory is .octobus under the current directory where the daemon command is started.
By default, service runtimes inherit the daemon's environment and can access anything the daemon user can. Pass --runtime-hardening=node (or set OCTOBUS_RUNTIME_HARDENING=node) to restrict every service runtime:
./bin/octobus serve --runtime-hardening=node
Levels are named after what enforces the restrictions, because the concrete mechanism differs per platform:
| Level | What enforces it |
|---|---|
off (default) |
nothing; runtimes launch just as the daemon runs |
node |
the Node.js process itself |
At level node, each runtime:
PATH, LANG, LC_ALL, TZ, proxy and CA settings, and on Windows SystemRoot, PATHEXT, and COMSPEC) plus the OCTOBUS_* context. Other daemon variables and any existing NODE_OPTIONS are dropped.HOME, USERPROFILE, and the temp directory variables (TMPDIR, TEMP, TMP) pointing into its instance directory. Temporary files left there are not cleaned up automatically.octobus.db and other instances), start child processes, use worker threads, or load native addonsdns.lookup, fetch, net.connect, and net.Socket.prototype.connect, so a name is judged on the address it resolves to as the connection is made and each redirect is judged again--max-old-space-size)Level node requires Node.js 22.13+, 23.5+, or 24+. At startup the daemon writes the egress rules into its data directory, checks the version of the node on PATH, then launches node once with the same preparation a runtime gets (environment, NODE_OPTIONS including the rules, temp directory, and process group), using a temporary directory in place of the service and instance directories. The daemon refuses to start if either check fails. A version-manager shim that needs variables outside the allowlist (for example Volta or asdf) fails this check; put a real node binary first on PATH. The check runs only at startup, so restart the daemon after changing the node on PATH. On Node.js 25+, whose permission model blocks network access by default, the daemon grants it with --allow-net. Services that start child processes, use worker threads, or load native addons do not work at this level.
Because the Node.js process checks these restrictions itself rather than the operating system enforcing them, treat this level as protection against mistakes in trusted service code, not as isolation for untrusted code:
NODE_OPTIONS, which only Node.js reads. A runtime entry that is not a Node.js script, and any program other than Node.js that it runs, gets only the environment allowlist and the process group. An entry that passes its own permission flags can widen its grants.