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

Binding lists with Orbit authorization

When AGENT_CONTROL_AUTH_UPSTREAM_URL points to Orbit's /internal/auth/agent_control/check_management_access route, binding lists need both target_type and target_id:

GET /api/v1/control-bindings?target_type=log_stream&target_id=<log-stream-uuid>&limit=100

Add control_id to filter bindings within that target. Include both target parameters on every pagination request. A missing, blank, or incomplete target returns 422 VALIDATION_ERROR before calling the authorization service.

This requirement follows Orbit's target-scoped authorization contract. Local authentication and generic HTTP upstreams keep their namespace-wide list behavior. Unexpected upstream rejections still return 502 AUTH_UPSTREAM_REJECTED.

Metadata

Release files for agent-control-server 8.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-control-server 8.16.0
File Size Uploaded Provenance Actions
agent_control_server-8.16.0.tar.gz 311.9 kB Without provenance Details for agent_control_server-8.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-control-server 8.16.0
File Interpreter ABI Platform Actions
agent_control_server-8.16.0-py3-none-any.whl Python 3 none any Details for agent_control_server-8.16.0-py3-none-any.whl

Total release size: 515.4 kB

Release files / agent_control_server-8.16.0.tar.gz

Download URL agent_control_server-8.16.0.tar.gz
Size 311.9 kB
Tags Source
SHA-256 checksum
How to use checksums
087cafdc969ab72963c896768269f373f2a9dddfd92c9e7b0a22cf99f01a5ab2
BLAKE2b-256 checksum
How to use checksums
21f4bd4bd5fde4bf2f38c99400303b82186b2c544d405e8c790397fd51187549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / agent_control_server-8.16.0-py3-none-any.whl

Download URL agent_control_server-8.16.0-py3-none-any.whl
Size 203.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0488bfb09a27219f666a79cf86842e3e583e0147f439f5892cf3e5b6378063c3
BLAKE2b-256 checksum
How to use checksums
03f43d882bee69074959f84a821d026c08bf34170d02f8cb383c3fa33d541699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for agent-control-server 8.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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