forked from WhitzardAgent/AgentGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (51 loc) · 4.47 KB
/
Copy path.env.example
File metadata and controls
58 lines (51 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# AgentGuard environment configuration.
#
# Usage:
# Docker Compose → cp .env.example .env && docker compose up
# Native dev → cp .env.example .env && ./scripts/run-dev.sh
#
# Variables marked "(optional)" have built-in defaults; you can delete or
# leave them blank and everything will still start correctly.
#
# ─────────────────────────────────────────────────────────────────────────────
# PostgreSQL (docker-compose managed; change credentials if needed)
# ─────────────────────────────────────────────────────────────────────────────
POSTGRES_USER=agentguard
POSTGRES_PASSWORD=agentguard
POSTGRES_DB=agentguard
# ─────────────────────────────────────────────────────────────────────────────
# AgentGuard runtime server
# ─────────────────────────────────────────────────────────────────────────────
AGENTGUARD_PORT=38080 # (optional) default: 38080
AGENTGUARD_MODE=enforce # (optional) enforce | monitor | dry_run
AGENTGUARD_RUNTIME_MODE=sync # (optional) sync | async
AGENTGUARD_LOG_LEVEL=info # (optional) debug | info | warning | error
AGENTGUARD_API_KEY= # (optional) blank = no X-Api-Key check
# Policy rules directory / file.
# Use a relative path — works for both Docker (CWD=/opt/agentguard) and
# native dev (CWD=project root). Leave blank to load built-in rules only.
AGENTGUARD_POLICY=./rules
# Rule-pack binding config (optional). Leave blank to skip.
AGENTGUARD_RULE_PACK_CONFIG=./rule_packs.yaml
# Hot-reload rule files when they change (optional, default off).
AGENTGUARD_WATCH=0
# ─────────────────────────────────────────────────────────────────────────────
# State cache & persistence
# (docker-compose sets these automatically via redis/postgres services)
# Uncomment below only for native dev when Redis / Postgres are running locally.
# ─────────────────────────────────────────────────────────────────────────────
# AGENTGUARD_STATE_CACHE=redis://localhost:6379/0
# AGENTGUARD_POSTGRES_URL=postgresql://agentguard:agentguard@localhost:5432/agentguard
# ─────────────────────────────────────────────────────────────────────────────
# LLM_CHECK reviewer (optional — only needed if you use POLICY: LLM_CHECK rules)
# ─────────────────────────────────────────────────────────────────────────────
# AGENTGUARD_LLM_BACKEND=openai # openai | anthropic | env
# AGENTGUARD_LLM_MODEL=gpt-4o
# AGENTGUARD_LLM_BASE_URL= # custom base URL (e.g. Azure endpoint)
# AGENTGUARD_LLM_API_KEY= # keep real secrets out of tracked files!
# AGENTGUARD_LLM_TRACE_MAX_STEPS=5 # 0 = omit trace summaries from prompts
# ─────────────────────────────────────────────────────────────────────────────
# Frontend web UI (served by the `frontend` docker-compose service)
# ─────────────────────────────────────────────────────────────────────────────
FRONTEND_PORT=8080 # (optional) host port for the web UI
# AGENTGUARD_API_BASE=http://localhost:38080 # override for native dev