123export HALFSPAN_API_URL="https://YOUR_API_HOST" export HALFSPAN_API_KEY="YOUR_WORKSPACE_API_KEY" export HALFSPAN_DASHBOARD_URL="https://YOUR_DASHBOARD_HOST"
| Variable | Purpose |
HALFSPAN_API_URL | API origin for key-based uploads. Defaults to https://app.halfspan.com; posts to /v1/agent-events. |
HALFSPAN_API_KEY | Scoped workspace key for automation. Needs traces:write for uploads. A saved login takes precedence for span share; use --key to override it. |
HALFSPAN_INGEST_TOKEN | Legacy service credential fallback. |
HALFSPAN_DASHBOARD_URL | Optional dashboard URL for trace links; also the login default in development builds. Browser login saves the connected dashboard automatically. |
HALFSPAN_REDACTION_CONFIG | Absolute path to a required local redaction policy. Defaults to optional ~/.halfspan/redaction.json. Invalid or explicitly missing policies block event uploads. |
TACT_HOME, NANOCODEX_HOME | Override the corresponding session root; databases are read from sessions/v2.sqlite3 beneath that root. |
CODEX_HOME | Optional override for the Codex session directory, normally ~/.codex. |
CLAUDE_CONFIG_DIR | Optional override for the Claude Code configuration directory, normally ~/.claude. |
HALFSPAN_CURSOR_GLOBAL_DB | Override Cursor's global state.vscdb path; TRACES_CURSOR_GLOBAL_DB is also accepted. |
HALFSPAN_OMP_DIR | Override Oh My Pi's data root; TRACES_OMP_DIR is also accepted. |
FX_HOME, DSH_HOME | Override fx and DeepSeek Harness data roots. |
KIMI_CODE_HOME | Override Kimi Code's data root. |
HALFSPAN_OPENCODE_URL | Opt into the OpenCode2 service fallback when no local database sessions can be read. |
.localhost hosts. Shared builds reject local URLs. URLs cannot contain credentials, query parameters, or fragments.HALFSPAN_INGEST_KEY_HASHES by mapping its SHA-256 hex digest to {"tenant":"org_…","user":"user_…"}. Use that personal token with the CLI or SDK to credit the user’s first trace. Mapping a digest to a workspace ID string keeps the token shared across the workspace.