agent-swarm-cli is the terminal client for the agency-swarm FastAPI backend.
It gives you one canonical flow:
- Start an
agency-swarmFastAPI server. - Open the CLI.
- Use
/connectto choose a local server and set a token if the server requires one. - Use
/agentsto choose the active agency and recipient agent. - Chat, stream tools and events, and use
/compactwhen the session gets long.
Install
Install the npm package:Use With terminal_demo()
terminal_demo() launches agent-swarm-cli and connects it to your local agency-swarm backend bridge.
Connect To A Local Server
Use/connect to:
- pick a local server such as
http://127.0.0.1:8000 - add another local port manually
- store or clear an Agency token for authenticated servers
- refresh server availability while the dialog is open
Choose Agencies And Agents
Use/agents after connecting.
The CLI reads live metadata from the selected agency-swarm server and groups the available agents by agency.
You can also direct a prompt with mentions:
@Developer investigate the failing integration test@SupportAgent summarize the uploaded PDF
Tab to autocomplete mentions.
Supported Workflow
The current release is intentionally narrow:- local
agency-swarmservers only - one connected backend path per session
/connect,/agents, mentions, streaming events, exports, undo/redo, and/compact
Current Limitations
These inherited OpenCode surfaces are not part of the Agency Swarm product path:/models/editor/issues/commit- docs mode
terminal_demo(show_reasoning=False) is not supported in the new TUI yet.