Agent Swarm TUI is the terminal UI for Agency Swarm. Use it when you want to build or test your Agency Swarm project in the terminal.Documentation Index
Fetch the complete documentation index at: https://agency-swarm.ai/llms.txt
Use this file to discover all available pages before exploring further.
Start the TUI
For most users, the right way to start is:
Before You Start
Make sure you have:- Node.js installed so
npxis available - Python 3.12 or newer available for Agency Swarm projects
- a model provider credential if you want to send prompts right away, or you can add it later with
/auth - an existing agency project, or a starting point from From Scratch or the Starter Template
What Happens on First Launch
On first launch, you will usually see this flow:Point the launcher at an agency
The launcher can reuse the current Agency Swarm project, create a starter project, or connect to an agency that is already running.
Set up the project environment
The launcher checks for a project
.venv. If it needs to create one, it asks first and then installs the project dependencies before opening the TUI.What You Can Do in the TUI
Once the TUI is running, you get:- a keyboard-first terminal workflow
- session history, export, undo, redo, and
/compact /agentsto switch between top-level agents@AgentNamementions to route a prompt to a specific top-level agent@file and resource references to attach local or MCP context in the same prompt flowTabautocomplete for both agent mentions and file and resource references- direct access to local project files for prompt context

Optional Paths
If this is your first run, you can ignore everything below.Connect to a running agency (optional)
Connect to a running agency (optional)
Use the same
npx @vrsen/agentswarm command, then choose Connect to a running agency during onboarding.This is the optional /connect path.The launcher asks for:- the Agency Swarm base URL
- whether the server needs a bearer token
- the agency id, if automatic discovery does not already find it
- a local Agency Swarm server is already running
- you want to connect to a remote Agency Swarm server
- the server is protected and needs a bearer token
/modelsdoes not switch the models configured inside your Agency Swarm backend yet- local file tools are not available; if you want the TUI to work directly on project files, start with
npx @vrsen/agentswarmfrom that project directory instead
Alternative: Launch from Python with agency.tui()
Alternative: Launch from Python with agency.tui()
If your project already launches from Python, Then start your project the usual way:This path stays bound to the exact
agency.tui() still works as the secondary entrypoint.Agency instance you passed in Python. It starts the local bridge for that agency, then opens the TUI connected to it.Use it when your team already starts the project from Python and you want a quick TUI test path without switching directories or changing entrypoints.tui(show_reasoning=False) is not supported in the new TUI yet.