Self-Hosting
Configuration
Environment variables of adTraces and of the traces CLI.
Server
| Variable | Purpose |
|---|---|
POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, POSTGRES_HOST_PORT |
Database container; Compose derives DATABASE_URL and WORKFLOW_POSTGRES_URL |
APP_URL |
Public origin, used for CLI login links, cookies, share links, sitemap and docs |
SESSION_SECRET |
Random secret for sessions |
ADTRACES_SIGNUPS |
open (default) or closed |
LLM_BASE_URL, LLM_API_KEY, LLM_MODEL |
OpenAI-compatible endpoint for trace summaries. Unset disables summaries |
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET |
Optional GitHub login |
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET |
Optional Google login |
OAuth login
A provider is enabled only when both its ID and secret are set. Register these callback URLs with the provider; they are built from APP_URL, not from the Host header.
- GitHub:
https://adtraces.adfactory.app/auth/github/callback, scopesread:user user:email - Google:
https://adtraces.adfactory.app/auth/google/callback, scopesopenid email profile
An OAuth login never attaches to an existing password account by matching e-mail. A signed-in user links a provider by opening https://adtraces.adfactory.app/auth/<provider>. New users respect ADTRACES_SIGNUPS.
CLI
| Variable | Purpose |
|---|---|
TRACES_HTTP_URL, TRACES_URL, TRACES_API_URL |
All three must point at https://adtraces.adfactory.app |
TRACES_API_KEY |
API key (trk_...) instead of an interactive login |
Search engines
/robots.txt blocks /admin, /api, /v1 and /settings. /sitemap.xml lists only public traces, profiles with public traces and the docs. /llms.txt and /llms-full.txt describe the instance for language models.