Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Environment variables

Browsing, listing, reviewing, and local capture work without signing in. For unattended service uploads and server-side SDK integrations, configure these variables instead:
export HALFSPAN_API_URL="https://YOUR_API_HOST" export HALFSPAN_API_KEY="YOUR_WORKSPACE_API_KEY" export HALFSPAN_DASHBOARD_URL="https://YOUR_DASHBOARD_HOST"
VariablePurpose
HALFSPAN_API_URLAPI origin for key-based uploads. Defaults to https://app.halfspan.com; posts to /v1/agent-events.
HALFSPAN_API_KEYScoped workspace key for automation. Needs traces:write for uploads. A saved login takes precedence for span share; use --key to override it.
HALFSPAN_INGEST_TOKENLegacy service credential fallback.
HALFSPAN_DASHBOARD_URLOptional dashboard URL for trace links; also the login default in development builds. Browser login saves the connected dashboard automatically.
HALFSPAN_REDACTION_CONFIGAbsolute path to a required local redaction policy. Defaults to optional ~/.halfspan/redaction.json. Invalid or explicitly missing policies block event uploads.
TACT_HOME, NANOCODEX_HOMEOverride the corresponding session root; databases are read from sessions/v2.sqlite3 beneath that root.
CODEX_HOMEOptional override for the Codex session directory, normally ~/.codex.
CLAUDE_CONFIG_DIROptional override for the Claude Code configuration directory, normally ~/.claude.
HALFSPAN_CURSOR_GLOBAL_DBOverride Cursor's global state.vscdb path; TRACES_CURSOR_GLOBAL_DB is also accepted.
HALFSPAN_OMP_DIROverride Oh My Pi's data root; TRACES_OMP_DIR is also accepted.
FX_HOME, DSH_HOMEOverride fx and DeepSeek Harness data roots.
KIMI_CODE_HOMEOverride Kimi Code's data root.
HALFSPAN_OPENCODE_URLOpt into the OpenCode2 service fallback when no local database sessions can be read.
API and dashboard URLs must use HTTPS. Development builds accept HTTP on loopback and .localhost hosts. Shared builds reject local URLs. URLs cannot contain credentials, query parameters, or fragments.
An administrator can bind an ingest token to a dashboard user in 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.