-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path.env.example
More file actions
66 lines (57 loc) · 1.99 KB
/
Copy path.env.example
File metadata and controls
66 lines (57 loc) · 1.99 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
59
60
61
62
63
64
65
66
# --- Secrets ---
# Required for LLM calls (OpenRouter / opencode harness)
OPENROUTER_API_KEY=
# GitHub PAT for clone/post; optional if using GitHub App auth below
GH_TOKEN=
# --- AgentField ---
AGENTFIELD_SERVER=http://localhost:8080
AGENTFIELD_API_KEY=
# Use http://pr-af:8004 when running via docker compose; http://127.0.0.1:8004 when running on host
AGENT_CALLBACK_URL=http://127.0.0.1:8004
# Public CP URL for HITL webhooks (Railway cross-project); leave empty for local single-project setups
AGENTFIELD_PUBLIC_URL=
NODE_ID=pr-af
# --- AI / harness config ---
PR_AF_PROVIDER=opencode
PR_AF_MODEL=openrouter/moonshotai/kimi-k2.5
# Falls back to PR_AF_MODEL when unset
# PR_AF_AI_MODEL=
PR_AF_MAX_TURNS=50
PR_AF_AI_MAX_RETRIES=3
PR_AF_AI_INITIAL_BACKOFF_SECONDS=2.0
PR_AF_AI_MAX_BACKOFF_SECONDS=8.0
PR_AF_OPENCODE_BIN=opencode
PR_AF_OPENCODE_SERVER=
# Harness no-output watchdog window (seconds). Harness CLIs in JSON mode emit
# events only at completion boundaries, so long single completions look silent.
AGENTFIELD_HARNESS_IDLE_SECONDS=360
# Alternate LLM provider keys (forwarded to harness when set)
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GOOGLE_API_KEY=
# --- Review budget / repo paths ---
PR_AF_MAX_COST_USD=2.0
PR_AF_MAX_DURATION_SECONDS=3600
PR_AF_WORKDIR=/workspaces
# Defaults to cwd when unset
PR_AF_REPO_PATH=
# Use /home/praf/.local/share in docker; set a host path when running outside docker
XDG_DATA_HOME=/home/praf/.local/share
# --- GitHub auth alternatives + webhooks ---
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
GITHUB_WEBHOOK_SECRET=
PR_AF_BOT_MENTION=@pr-af
# --- Human-in-the-loop (optional) ---
# Set HAX_API_KEY to enable HITL review gate
HAX_API_KEY=
HAX_SDK_URL=http://localhost:3000
AGENTFIELD_APPROVAL_USER_ID=
# --- CI script (optional for local dev) ---
# Required only when running scripts/ci_runner.py
PR_URL=
# --- Docker Compose agentfield service ---
# Used by docker compose up; not read by PR-AF Python code directly
AF_MODE=dev
AGENTFIELD_HTTP_ADDR=0.0.0.0:8080
AGENTFIELD_STORAGE_MODE=local