AnySwarm is a TypeScript SDK and CLI (@anyswarm/core) for building multi-agent systems that need isolated sandboxes, host-enforced shared Services, and inspectable traces.
- A Harness is the TypeScript program you write: it defines the shared Services, Agent Profiles and permissions, orchestration loop, and acceptance checks.
- A Runtime executes that Harness: it boots isolated OpenSandbox containers, keeps model API keys on the host, authenticates every Service call, and archives traces and artifacts before cleanup.
Explore without installing
Open the Live Trace Demos in your browser to inspect real multi-agent runs — zoomable swimlanes, authenticated Service calls, and exported artifacts — with zero local setup.
Recommended reading path
- Quickstart — Install
@anyswarm/core, initialize local OpenSandbox, run your first multi-agent task, and inspect it inanyswarm trace. (Using Claude Code or Codex? Point it to the dedicated Agent setup runbook.) - Core Concepts — A 2-minute tour of the six building blocks and how a run flows from start to finish.
- Build your first SDK Harness — Write a minimal two-agent Harness in TypeScript with a host Service, read/write role permissions, and byte-verified output.
- Core SDK & Plugins — Deep dive into Runtime, Services, Sandboxes, Agents & Profiles, Host Gateway, and Trace Viewer.
- Flagship Walkthrough: AutoResearch — See all six SDK building blocks come together in a real autonomous research loop with competing peers and a host-controlled Evaluator.
- How to Design a Harness — A practical design framework for mapping your own problem onto Services, Profiles, orchestration, and events, illustrated by three core topologies (Subagents, TaskPool, and Substrate).
One package: SDK + CLI
@anyswarm/core ships both the host CLI and the TypeScript SDK:
| Surface | What it covers | Reference |
|---|---|---|
| CLI | anyswarm setup, doctor, update, run, eject, trace, and built-in --harness runners |
CLI Reference |
| Core SDK | createRuntime, createSandbox, ServiceRegistry, runInput, runWithReport, createHarnessSession |
SDK & API Reference |
| Types | Public Runtime, Service, Profile, event, and verification contracts | Types & Source Map |