Skip to Content
AgentShield
Self-Hosting

Deployment Overview

Plan an AgentShield deployment. Components to run, data stores to provide, deployment options, and the path from a workstation to production.

AgentShield is self-hosted. You run five application processes and provide four data stores. This section covers every way to deploy them and how to harden each.

What you run

ProcessScalesStateExposed to
GatewayHorizontally, statelessNone (PostgreSQL, Redis)Agents
Control planeHorizontally, statelessNone (PostgreSQL)Dashboard, automation
DashboardHorizontally, statelessNoneOperators' browsers
Intelligence engineHorizontally, statelessNoneGateway only
Event relayOne replicaNone (PostgreSQL outbox)Monitoring only

What you provide

StoreVersion used in developmentProduction notes
PostgreSQL16Managed service recommended. Apply all migrations; connect services as agentshield_app
Redis7Nonces and budgets. Persistence or replication appropriate to the replay window
NATS with JetStream2.10tls:// required in production for non-loopback servers
S3-compatible storageMinIOPrivate bucket for evidence; TLS required for non-loopback endpoints
SMTP (optional)Mailpitsmtps:// or require_tls=true in production

Deployment options

Path to production

Evaluate locally with Docker Compose and the Quickstart.

Provision data stores with TLS: PostgreSQL, Redis, NATS JetStream, and object storage.

Configure services with environment variables and AGENTSHIELD_ENV=production, which enforces the secure settings. See Configuration.

Deploy with the Kubernetes production overlay using signed, digest-pinned images.

Harden and operate with the production checklist, monitoring, and backups.

Network exposure

PortServiceWho should reach it
8081Gateway APIAgents, through TLS termination
8080Control plane APIThe dashboard, and automation through TLS termination
3000DashboardOperators, through TLS termination
8082Intelligence engineThe gateway only
8083Event relay health and metricsOrchestrator probes and Prometheus
9080–9082MetricsPrometheus only

Every service binds 127.0.0.1 by default when run from source. Images bind all interfaces inside the container; Compose publishes only to loopback.

Was this page helpful?

On this page