Skip to main content
This guide walks you through starting the Agent Manager backend, executing your first agent run, and launching the UI. By the end you will have a working local environment and a real API response in hand.

Prerequisites

Before you start, make sure you have the following:
  • Java 21 or later — confirm with java -version. JAVA_HOME must be set.
  • Docker Desktop — running and accessible. It is required for PostgreSQL and the Python code-execution sandbox.
  • An LLM API key — at least one of OPENAI_API_KEY, ANTHROPIC_API_KEY, or GOOGLE_API_KEY.
  • Node.js 20 or later — only needed for the UI.

Start the backend

1

Export your API key

Set at least one provider key in your shell. Agent Manager activates whichever providers have valid keys on startup.
2

Start the database

From the backend directory, bring up PostgreSQL:
This starts PostgreSQL on port 5432. Wait a few seconds for it to be ready before proceeding.
3

Run the application

Use the Maven wrapper to start the application:
The server starts on http://localhost:8080. On first boot it seeds three default agents: procurator_assistant, finance_agent, and web_agent.

Make your first API call

Once the server is running, send a synchronous run request to one of the seeded agents. The endpoint is POST /api/agents/{agentId}/runs.
The session_id field is optional. If you omit it, the server generates a new UUID for you and includes it in the response — use it in subsequent requests to continue the same conversation.

Understand the response

A successful run returns a RunResponse object:
If status is PAUSED, the agent encountered a sensitive tool call and is waiting for human approval. Send a POST /api/agents/{agentId}/runs/{runId}/continue request with {"action": "APPROVE"} or {"action": "REJECT"} to resume.

Start the UI

The Agent Manager UI runs as a separate Node.js development server. Open a new terminal, navigate to the UI directory, and run:
Open your browser to http://localhost:5173. The UI connects to the backend at http://localhost:8080/api by default. From the UI you can:
  • Chat with any registered agent and see streaming tokens and reasoning steps in real time.
  • Browse and configure agents in the registry.
  • Upload PDFs or trigger URL ingestion for the knowledge base.
  • Inspect session history and long-term user memories.
  • Approve or reject paused HITL runs with a single click.
The UI expects the backend to be running before it loads. If you see connection errors, confirm that ./mvnw spring-boot:run completed successfully and the server is listening on port 8080.

Next steps

Key concepts

Learn what agents, runs, sessions, and memory mean in Agent Manager.

Multi-agent teams

Coordinate multiple agents using Coordinator or Router orchestration.

Knowledge base

Ingest documents and let agents search them with RAG.

API reference

Full request and response documentation for every endpoint.