`agentproto` CLI
The agentproto binary is the reference host for AgentProto agent-CLI adapters. It installs adapter packages (claude-code, hermes, opencode, gemini-cli, goose, …), runs them locally for a single turn o
agentproto CLI
The agentproto binary is the reference host for AgentProto agent-CLI
adapters. It installs adapter packages (claude-code, hermes,
opencode, gemini-cli, goose, …), runs them locally for a single
turn or a long-lived session, exposes them as a daemon over an outbound
WebSocket tunnel, and orchestrates multi-agent swarms through the
runtime kernel.
This tree is tool docs — what the binary does, what flags it takes, what files it touches. For the protocol it implements, see the AIPs at https://agentproto.sh/docs.
Status: alpha. The package is pre-1.0 (
0.1.0-alpha.x). See../../VERSIONING.mdfor what the alpha guarantees and what may change between minor releases.
Three ways in
Pick whichever matches what you're trying to do:
- Run a Claude Code (or other) session locally —
getting-started.mdwalks throughinstallrunfor a single turn. For a persistent session attached to your terminal, seeverbs/sessions.md.
- Share your machine with a hosted agent (Guilde, a self-hosted
gateway, …) — see
verbs/auth.mdfor the device flow, thenverbs/serve.mdfor the daemon with--connect. - Orchestrate a multi-agent swarm —
concepts/swarms.mdintroduces the model,verbs/run-swarm.mdcovers the verb.
Reference
Verbs
agentproto auth— log in to a host (RFC 8628 device flow)agentproto config— read/write~/.agentproto/config.jsonagentproto daemon— install/start/stop the background serviceagentproto install— install an adapter or a runtime profileagentproto plugins— manage runtime pluginsagentproto run— one-shot adapter turnagentproto run-swarm— kernel-routed multi-agent loopagentproto serve— daemon mode (local-only or tunnelled)agentproto sessions— browse/start/attach/stop daemon sessionsagentproto setup— re-run an adapter's post-install pipelineagentproto workspace— register local workspaces
Concepts
- Adapters — what
@agentproto/adapter-*packages are - Plugins — extending the swarm kernel
- Runtime profiles —
runtime-profile/<name>scaffolding - Swarms — manifest + kernel cycle model
- Credentials — how host tokens are stored
File reference
Install
npm i -g @agentproto/cli
agentproto --versionNode ≥ 20.9.0. Optional node-pty for terminal sessions —
npm i -g node-pty if you want agentproto sessions terminal and
PTY-backed agent attach.