Docs Reference

Environment variables

Environment variables Teamtrail reads, for running it without the UI or in scripts.

#Teamtrail

VariableDefault
TEAMTRAIL_DIR./.teamtrailThe tracker folder, like --dir.
TEAMTRAIL_CONFIG_DIR~/.config/teamtrailYour config folder (tokens, personal settings). See Personal settings.
TEAMTRAIL_LEASE_MINUTES15How long a claim lasts without a tool call from its agent, like --lease-minutes.
TEAMTRAIL_INTEGRATION_POLL_MS10000How often the integration check compares branches.
TEAMTRAIL_SLACK_APP_TOKENSlack app-level token (xapp-…), when none is saved.
TEAMTRAIL_SLACK_BOT_TOKENSlack bot token (xoxb-…), when none is saved.

#Trackers

Variable
GITHUB_TOKEN, GH_TOKENGitHub token, when none is saved in Settings. Without either, gh auth token is tried.
LINEAR_API_KEYLinear API key, when none is saved.

#Agents and usage

Variable
CLAUDE_CONFIG_DIRWhere Claude Code keeps its config and transcripts (default ~/.claude).
CODEX_HOMEWhere Codex keeps its config, prompts and session logs (default ~/.codex). connect codex forwards a custom value to the server.
XDG_CONFIG_HOME, APPDATABase of the config folder on Linux/macOS and Windows.

#Testing and development

TEAMTRAIL_GITHUB_API, TEAMTRAIL_LINEAR_API and TEAMTRAIL_SLACK_API point the GitHub, Linear and Slack clients at another API base URL. They're used by the test suites and aren't needed in normal use.