Skip to main content
The Agent Control UI is a Next.js dashboard for managing agents and controls. It runs on port 4000 by default and works best with a running Agent Control server.

Prerequisites

  • Node.js 20+ (CI uses 20; 18+ may work)
  • pnpm 9+ (install from pnpm.io or run corepack enable && corepack prepare pnpm@latest --activate)
For full functionality (live data, regenerating API types), the server must be running. See the main repo quick start for server setup.

Tech Stack

  • Next.js 15 (Pages Router) + React 19 + TypeScript
  • Mantine 7 + Jupiter DS
  • TanStack Query for server state management
  • openapi-fetch with auto-generated types from the server OpenAPI spec

Quick Start

The UI starts on http://localhost:4000. To regenerate API types from a running server:
If server auth is enabled, set an API key before starting the UI:

Folder Structure

Key Patterns

  • API types are auto-generated. Run pnpm fetch-api-types after server API changes.
  • Query hooks wrap the api client and return typed data (see core/hooks/query-hooks/).
  • Page components contain UI logic; pages/ files are thin wrappers that apply layouts.
  • Evaluator forms follow a registry pattern in core/evaluators/.

Documentation and Help

Source Code

View the complete UI dashboard source code and implementation: Agent Control UI