Skip to main content

Agent Control Server

FastAPI server that powers Agent Control. It manages agents and controls, evaluates requests at runtime, and exposes REST APIs used by the SDKs and UI.

What it provides

  • Agent registration and control association
  • Control CRUD and evaluator configuration
  • Runtime evaluation (/api/v1/evaluation) with pre/post stages
  • Observability endpoints for events and stats
  • API key authentication for production deployments

Quick start (local)

From the repo root:

make sync
make server-run

Server runs on http://localhost:8000. The UI expects this base URL by default.

To use non-default local ports with make server-run, export AGENT_CONTROL_PORT for the server listen port. If you also want the local Postgres container exposed on a different host port, set AGENT_CONTROL_DB_HOST_PORT and point the server at the same value with AGENT_CONTROL_DB_PORT.

Database migrations

The server package includes the agent-control-migrate command for bundled Alembic migrations.

In production, migrations are serialized with a Postgres advisory lock. Alembic runs each migration revision in its own transaction, so if an upgrade across multiple revisions fails, earlier revisions may already be committed. Check the current revision before retrying:

agent-control-migrate current
agent-control-migrate upgrade head

PostgreSQL driver runtime

agent-control-server depends on plain psycopg. The published Docker image installs Debian libpq5 and sets PSYCOPG_IMPL=python so the server uses psycopg's Python implementation with the OS libpq library.

For wheel-based deployments outside Docker, either install the OS libpq runtime package for your platform, or install agent-control-server[binary] if you want psycopg's bundled binary package.

Configuration

Server configuration is driven by environment variables (database, auth, observability, evaluators). For the full list and examples, see the docs.

Full guide: https://docs.agentcontrol.dev/components/server

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_control_server-8.6.0.tar.gz (291.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_control_server-8.6.0-py3-none-any.whl (196.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_control_server-8.6.0.tar.gz.

File metadata

  • Download URL: agent_control_server-8.6.0.tar.gz
  • Upload date:
  • Size: 291.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for agent_control_server-8.6.0.tar.gz
Algorithm Hash digest
SHA256 20d8a874d14df5ffc5bdbdc2f7708e38dc5e580d30d7522063329bc212916888
MD5 80a0d4ea31335f737f7cdf8ac8a563b1
BLAKE2b-256 7b80caca8e22eba21ef4f664af0b61412b850ef9cba615928926fa24ba2cd2b8

See more details on using hashes here.

File details

Details for the file agent_control_server-8.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_control_server-8.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d8e636bff2dca9dc311a3ce314b148e52aa75c822de29d65dba806f4b333bd0
MD5 87420e6aa047374cf637bea15c8dd39f
BLAKE2b-256 a54dac7dce6b8399c7a55bf338117c7b38d7757a58dcdc12a08fcea7871335bd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

8.6.0 This release

2 files

8.5.0

2 files

8.4.0

2 files

8.3.0

2 files

8.2.0

2 files

8.1.2

2 files

8.1.1

2 files

8.1.0

2 files

8.0.0

2 files

7.10.0

2 files

7.9.0

2 files

7.8.1

2 files

7.8.0

2 files

7.7.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page