Set up ACE

One command starts the entire platform: a Kubernetes cluster, MongoDB, the AgentCert control plane (auth + GraphQL + UI), LiteLLM, Langfuse, and the Certifier.


Quick Start

Enterprise environment or open / local setup? See quickstart-registry.md: IMAGE_REGISTRY selects the registry for images that are pulled or published.

For a kind deployment: Docker with Compose v2, git, kind, kubectl, helm, and Python 3. Docker, Compose v2, and git are the hard checks in scripts/check-prerequisites.sh; the Kubernetes tools are needed for this route, and setup helpers use Python 3.

⚠ --deploy is required — plain ./scripts/setup.sh only builds images Without --deploy (or --restart) the script builds every image and exits; it never writes .env, never creates a cluster and never asks a question. A build-only run ends with:
======================================
  All images built successfully!
======================================
  Build-only run: nothing was deployed and no cluster was changed.
  Next: ./scripts/setup.sh --deploy    (configure .env, create the cluster and install ACE)
That is a successful build, not a failure — but the platform is not running yet. Run ./scripts/setup.sh --deploy to install it.
1
Clone with submodules
git clone --recurse-submodules https://github.com/AgentCert/ace-monorepo
cd ace-monorepo

If you cloned without --recurse-submodules, the setup wizard initializes the required submodules before it starts building. You can therefore continue directly to the next step.

2
Run the setup wizard — configures .env, builds images, creates the kind cluster, deploys, connects chaos infrastructure
./scripts/setup.sh --deploy

Choose an LLM provider when asked. If you leave all hosted-provider keys empty, the wizard offers Ollama and a multi-GB local model download. Review that choice before accepting the defaults. Azure OpenAI credentials are required to produce certification reports.

  • Build ALL locally — Enter at Choice [p/l/A/n] selects build ALL locally: every first-party image (control plane, installers, agents, sidecar, ITBench runner) and the immutable hub bundle (app/agent/fault catalogs + charts) is built from this checkout and side-loaded into kind, so what runs is exactly what you cloned. Nothing is cloned from GitHub at runtime.
  • Helm deploy — Enter at Choice [k/H/n] selects h (Helm); k = plain kubectl apply of the same stack, n = skip deploying.
  • After the stack is up, setup registers the ace-local chaos infrastructure and waits until it is connected, then seeds the demo experiments.

Setup stops with an explicit error if a required image fails to build or the hub bundle cannot be prepared, rather than deploying something that fails later with ImagePullBackOff. See Managing services for day-to-day commands.

3
Confirm it finished

A successful install ends with this banner — the ports are read from your .env, so they may differ on a shared host:

=======================================================
  ✓ ACE stack deployed via Helm
=======================================================
  Release       ace  (namespace: ace)
  AgentCert UI  http://localhost:2001          login: admin / litmus
  Langfuse      http://localhost:4002          login: admin@agentcert.local / agentcert-admin
  Certifier     http://localhost:18000/docs
  LiteLLM       http://localhost:14000
  MongoDB       localhost:27017

  status:   kubectl get pods -n ace
=======================================================

If the banner instead carries ! Chaos infrastructure is NOT connected, the stack is up but experiments cannot run yet — fix the warnings above it and re-run ./scripts/setup.sh --restart.

Open the AgentCert UI URL setup prints at the end (default http://localhost:2001 — on a shared host the port may differ; see KIND_HOSTPORT_WEB in .env) · login admin / litmus, then go straight to Run your first experiment.

First run Building every image locally and creating the kind cluster can take tens of minutes the first time (Docker layer caches make later runs much faster). Re-apply an existing configuration without re-entering configuration with ./scripts/setup.sh --restart. An interactive restart may still ask which deployment method to use.
Stuck? Join Slack ↗ — the fastest way to get unblocked.

Prerequisites

Tool Min version Check Install
Docker Engine 28+ docker --version docs.docker.com ↗
User in docker group — groups \| grep docker sudo usermod -aG docker $USER then re-login
kind v0.20+ kind version kind releases ↗ or go install sigs.k8s.io/kind@latest
kubectl v1.27+ kubectl version --client sudo snap install kubectl --classic or kubernetes.io ↗
git any git --version sudo apt-get install git
helm v3.12+ helm version --short helm.sh ↗ — used by the default (Helm) deploy
python3 3.8+ python3 --version sudo apt-get install python3 — setup’s own helpers (stdlib only). Python 3.12 is needed only to run the certifier as a host process (local dev); check-prerequisites.sh can install it with uv when ACE_PREREQ_BOOTSTRAP_PYTHON=1.

Only Docker, docker compose v2 and git are hard checks in the prerequisite script — missing any of them stops the run with ✗ docker, docker compose, and git are required for any setup path. kind, kubectl, helm, Node and Go are reported as warnings with the install command, and a Docker version below 28 only warns (Continuing anyway.). Python 3 is used by setup helpers, though the checker only reports Python 3.12 for host-side certifier development. A clean check ends with ✓ All required prerequisites satisfied.

LLM provider for the agent — choose one of the hosted providers below or the Ollama option offered by the wizard when no hosted key is configured:

Azure OpenAI
Powers both the flash-agent and the certifier. Required if you want certification reports.
Google Gemini
Powers the flash-agent only. Provides gemini-3-flash, gemini-2.5-flash, gemini-2.5-flash-lite.
OpenRouter
Powers the flash-agent only. Provides the auto-free alias for no-cost routing.
Certifier always needs Azure OpenAI The 4-phase certification pipeline calls Azure OpenAI directly (standard model, reasoning model, embedding model). If you skip Azure credentials the flash-agent can still run experiments via Gemini or OpenRouter, but the certifier will not produce reports.

Pipeline in action


What Comes Up

./scripts/setup.sh --deploy deploys the full platform into a kind cluster:

Web UI
AgentCert console — agents, experiments, reports
:2001
GraphQL API
Control plane: registries, experiment logic, Helm bridge
:8081
Auth
JWT issuance + OIDC via Dex
:3005 / :3030
MongoDB
Sole persistence layer (replica set rs0)
:27017
LiteLLM
LLM gateway — proxies calls to Azure OpenAI / Gemini / OpenRouter
:14000
Langfuse
Trace store — every agent decision recorded here
:4002
Certifier
4-phase pipeline → 12-section certification report
:18000/docs

All services run as Kubernetes Deployments in the ace namespace inside a local kind cluster. Ports are exposed via NodePort services and kind’s extraPortMappings so they are reachable on localhost from the VM.


System Architecture

ACE composes four subsystems. Understanding how they connect makes debugging and extending the platform straightforward.

ACE Control Plane — namespace: ace
Web UI :2001
⟷
GraphQL API :8081
⟷
Auth :3005 / :3030
MongoDB :27017
Argo Workflow + Helm install
▼
Kubernetes Cluster — kind / AKS / your own
SockShop (SUT)Prometheus · Grafana
⟷
Flash ITOps Agentagent-sidecar · MCP servers
←
Chaos FaultsLitmusChaos operator
LLM calls · OTEL traced
▼
LiteLLM proxy :14000 Azure OpenAI · Gemini · OpenRouter
trace spans
▼
Langfuse :4002 trace store · every agent decision recorded
▼
Certifier — 4-phase pipeline · :18000
Phase 0 · Fault Bucketing LLM classifies trace events into per-fault windows
Phase 1 · Metrics Extraction TTD · TTR · hallucination score · PII rate ×30 runs
Phase 2 · Statistical Aggregation mean · P95 · confidence intervals across all runs
Phase 3 · Certification 12-section report · pass/fail verdict → PDF

One experiment run, step by step:

  1. A fault is selected from the Fault Library (application / network / resource)
  2. LitmusChaos injects it into SockShop on Kubernetes
  3. Flash agent investigates via MCP tools — every call traced through OTEL → LiteLLM → Langfuse
  4. Certifier reads the trace, buckets it, extracts metrics, stores them in MongoDB
  5. After 30 runs: aggregation → hypothesis testing → 12-section report → PDF

Choose Your Route

Route 1
Existing local cluster
CLUSTER_MODE=local
You already have a kind / minikube / k3s cluster and kubectl points at it. The full ACE stack is deployed into that cluster.
Setup guide →
Route 2
Fresh VM (kind)
CLUSTER_MODE=fresh
Clean VM with Docker + kind + kubectl but no cluster yet. The wizard creates a kind cluster with the right port mappings. Services are on localhost immediately.
Setup guide →
Route 3
Cloud cluster (AKS / EKS / GKE)
CLUSTER_MODE=local
VM is already logged in to a cloud cluster (az aks get-credentials etc.) and kubectl get nodes works. ACE deploys into the cloud cluster; browser UIs exposed via LoadBalancer.
Setup guide →
Local Dev
Host processes
scripts/azure_build/start-agentcert-v2.sh
Actively developing the Go backend or React frontend. Auth, GraphQL, and the UI run directly on the host with hot-reload; MongoDB, Langfuse, LiteLLM, and the Certifier run in Docker.
Setup guide →

After the Stack Is Up

Follow the experiment guide to run your first certification:

Useful commands

kubectl get pods -n ace                                    # health check
kubectl logs -n ace deploy/graphql -f                      # control plane logs
kubectl logs -n ace deploy/certifier -f                    # pipeline logs
kubectl rollout restart -n ace deploy/auth deploy/graphql deploy/web deploy/certifier  # reload config
./scripts/shut_down.sh                                     # tear down this checkout (dumps MongoDB first)

The cluster is named agentcert-<ACE_INSTANCE_NAME>, not agentcert — use ./scripts/shut_down.sh rather than a hand-written kind delete cluster, so the MongoDB dump and the ownership marker are handled for you.

⚠ Applying .env changes After editing .env, re-run ./scripts/setup.sh --restart to reuse saved configuration, or ./scripts/setup.sh --deploy to change it. On an interactive run, choose h or k if the deployment-method prompt appears. Setup recreates the ace-env Secret and rolls out affected deployments.

Troubleshooting

Symptom Fix
Pods stuck in Pending kubectl describe pod -n ace <pod> — usually a PVC or image pull issue
UI at :2001 shows blank GraphQL not ready — kubectl logs -n ace deploy/graphql
Langfuse key errors Delete and recreate the langfuse-web pod: kubectl rollout restart -n ace deploy/langfuse-web
LiteLLM 401 errors Check the configured provider key (for Azure: AZURE_OPENAI_KEY) in .env, then run ./scripts/setup.sh --restart
kind cluster missing port mappings Run ./scripts/setup.sh --deploy — it detects missing port bindings and offers to recreate the cluster

Still stuck? Join Slack ↗ or open a GitHub issue ↗.


Table of contents


ACE — Agent Certification Engine · Released under the Apache License 2.0.