Skip to content

Deployment

Deploy Edictum

Two paths to production. Start with the library. Add the console when you need fleet visibility.

Core Library

Zero Infrastructure

  • pip install edictum
  • 3 lines of code
  • Zero runtime dependencies
  • Works offline, no server needed

Best for: single agent, local development, CI/CD pipelines

pip install edictum

Console

Full Visibility

  • docker compose up
  • Fleet monitoring, human-in-the-loop approvals, audit feed
  • PostgreSQL + Redis
  • Self-hosted on your infrastructure (FSL-1.0-Apache-2.0)

Best for: production fleets, compliance requirements, team visibility

Deploy Console

Architecture

Data flow

Agent

AI Agent

tool call

Enforcement

Edictum Library

verdict

Execution

Tool

optional

Operations

Edictum Console API

PostgreSQL

Redis

SSE push

Dashboard / Slack / Telegram

Agent / Tool
Edictum
Console
Storage

Quick start

Console in five commands

terminalbash
# Clone the console
git clone https://github.com/edictum-ai/edictum-console.git
cd edictum-console

# Start services (Postgres + Redis + Console)
docker compose up -d

# Open the setup wizard in your browser
open http://localhost:8000

# Verify
curl http://localhost:8000/health
response200 OK
{
  "status": "healthy",
  "version": "0.1.0",
  "uptime": 12.4,
  "db": "connected",
  "redis": "connected"
}

Graceful degradation.

Never silent failure.

ScenarioBehaviorAgent Impact
Console unreachableFall back to local cacheNone if cached
Local cache emptyFall back to embedded YAMLReduced coverage
No contracts at allDeny-all (fail-closed)All calls blocked
Redis downPostgres-only modeSSE delayed
Postgres downLocal-only enforcementNo persistence
Malformed contract pushedReject, keep previousNo impact
Invalid contract versionReject + alertNo impact
Network partitionLocal enforcement continuesFull coverage

Observability

Built-in telemetry

OpenTelemetry

Every verdict emits a span with tool name, verdict, contract ID, and latency.

Grafana

Pre-built dashboard JSON available in the edictum-demo repo.

Health check

GET /health returns status, version, uptime, db, and redis.

Structured logs

JSON format, configurable log level.

Notifications

Slack, Telegram, Discord, email, and webhook channels for alerts. Microsoft Teams coming soon.

Splunk

Audit event sink for Splunk. Coming soon.

Configuration

Environment variables

VariableRequiredDescription
DATABASE_URLYesPostgreSQL connection string
REDIS_URLYesRedis connection string
SECRET_KEYYesJWT signing key (generate with openssl rand -hex 32)
EDICTUM_DEFAULT_MODENoDefault enforcement mode: enforce or audit (default: enforce)
EDICTUM_LOG_LEVELNodebug, info, warning, error (default: info)
EDICTUM_CORS_ORIGINSNoComma-separated allowed origins
EDICTUM_RATE_LIMITNoRequests per minute per IP (default: 60)

Hosting

Deployment options

Recommended

Docker Compose

Full stack, single command, production-ready.

Railway

One-click deploy template available.

Render

Free tier available. Works with managed PostgreSQL.

Start enforcing contracts today.

pip install edictum