Skip to main content

Server for Agent Control - manage and evaluate controls for AI agents

Project description

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

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

Project details


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-7.10.0.tar.gz (274.8 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-7.10.0-py3-none-any.whl (187.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_control_server-7.10.0.tar.gz
  • Upload date:
  • Size: 274.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agent_control_server-7.10.0.tar.gz
Algorithm Hash digest
SHA256 d6ddbf6b1cd21962f61ac6c0735111ba1691cfee0ea7aac227c99237435ef0d7
MD5 bedc0e389661fea573196e9eebc68b7d
BLAKE2b-256 79d424ef4a5bbbd9445da99a64923117898b0836c2c82735ee15f505dda81a09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_control_server-7.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc7105bba17d69527ed1e09bd8d85884548e2f6481690dd74755a0d84824ca4
MD5 0cb07563d510f3a5805cf2710a7f272a
BLAKE2b-256 30f4ae3385e34ac90d3be67b57a5d49d7fb6e07036db200f871b1ffd468358f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page