Documents Stack
0.2.0-dev.20260701.1. Monitor and telemetry env vars added in
the 2026-07-01 release.stack.config.json from the install / repo root. Override the
working directory per run when Codex should operate in a different project tree.
Example stack.config.json
| Field | Meaning |
|---|---|
workingDir | Codex working directory (relative paths resolve from Stack app root) |
defaultEnvironment | Initial dev/staging/prod selection |
environments.*.apiBaseUrl | Synth API base for remote ops |
environments.*.authEnv | Environment variable name for the API key |
authEnvFile | Optional file path to load keys (preferred over committing secrets) |
--skip-git-repo-check to Codex by default so parent workspaces
(e.g. ~/Documents/GitHub) work even when they are not a single git repo.
API keys
Create keys at usesynth.ai/keys.Codex harness
| Env | Default | Purpose |
|---|---|---|
STACK_HARNESS | codex | Agent harness (codex or cursor) |
STACK_CODEX_COMMAND | codex | Path to Codex binary |
STACK_CODEX_MODEL | from ~/.codex/config.toml | Override model |
STACK_CODEX_REASONING_EFFORT | from config | Override effort |
stackd
| Env | Default |
|---|---|
STACK_API_URL | http://127.0.0.1:8792 |
STACK_API_BIND | 127.0.0.1 |
STACK_API_PORT | 8792 |
STACKD_MCP | 1 (set 0 to disable HTTP MCP) |
Monitor
| Env | Purpose |
|---|---|
STACK_MONITOR_ENABLED | 0 disables monitor |
STACK_MONITOR_PROFILE | e.g. progress-narrator |
STACK_MONITOR_STRICTNESS | passive / conservative / aggressive |
Local GEPA auto-start
On dev, Stack can auto-startsynth-optimizers gepa service when the local
optimizer is installed:
| Env | Effect |
|---|---|
STACK_AUTO_START=0 | Disable all auto-start |
STACK_AUTO_START_LOCAL_OPTIMIZER=0 | Disable GEPA auto-start only |
.stack/bootstrap/dev-slot.log, .stack/optimizers/gepa-service.log.