Prerequisites
- Node.js 18+
- Python 3.10+ (if building Python agents)
- Postgres database
- An Anthropic API key (or OpenAI / Google)
Install Polos
Run the install script to download the Polos server and CLI:Create a project
Scaffold a new project withcreate-polos:
coding_agent and assistant_agent) and a sample multi-agent workflow.
Configure your API key
.env and fill in your API key:
Start the server
Start the Polos server and worker with a single command:polos dev starts the orchestrator, connects your worker, and watches for code changes with hot reload.
Run an agent
In a second terminal, start an interactive session with the coding agent:polos run prompts you for approval directly in the terminal:
View in the UI
Open http://localhost:5173 to see your agent execution in the Polos dashboard. You can trace every step, see tool calls, and inspect the agent’s reasoning.
Understand the code
Project structure
create-polos generates the following structure:
Agent definition
The coding agent gets six built-in sandbox tools (exec, read, write, edit, glob, grep) via a single sandboxTools() call:
- TypeScript
- Python
src/agents/coding-agent.ts
env: "local"runs tools directly on the host - for container isolation in production, use"docker"instead (see Sandbox Tools)- Exec security defaults to
approval-alwaysfor local mode - every shell command suspends for your approval - The agent gets six tools automatically:
exec,read,write,edit,glob,grep
Worker entry point
The worker registers agents and workflows with the orchestrator.polos dev runs this automatically.
- TypeScript
- Python
src/main.ts
The Polos CLI
Once you’re running, the CLI gives you full control:What just happened?
create-polosscaffolded a project with agents, a workflow, and configurationpolos devstarted the orchestrator, connected your worker, and began watching for changespolos runstarted an interactive session - the agent decided to write a file, and Polos suspended execution for your approval- You approved - Polos resumed execution exactly where it left off
- The agent ran code in a sandboxed environment with built-in tools
- Every step was durably checkpointed - if the process crashed mid-execution, it would resume from the last completed step without re-running the LLM calls you already paid for
Next steps
Core Concepts
Understand how Polos handles state and durability
Agents
Learn about tools, sandbox, streaming, and more
Workflows
Orchestrate multi-step processes with human-in-the-loop
Examples
See more examples: HITL agents, multi-agent systems, and more
Need help? Join our Discord community for support and discussions.