toknmtr-selfhost/.env.example
megaproxy 71a60ab054 toknmtr — self-hostable Claude Code usage & analytics dashboard
Server (SvelteKit + SQLite Docker container) + per-machine agent that parses
Claude Code JSONL transcripts. docker-compose one-command deploy; raw transcript
view + search gated behind SHOW_TRANSCRIPTS (hidden by default).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 19:33:55 +01:00

13 lines
790 B
Text

# toknmtr server config. Copy to `.env` (gitignored) before `docker compose up`.
# Only API_TOKEN is required — docker-compose.yml sets DB_PATH, the port, and body limit.
# --- server ---
API_TOKEN=change-me # Bearer token the agent must present to /api/ingest.
# Generate a strong one: openssl rand -hex 32
# SHOW_TRANSCRIPTS=true # Unset/false = HIDE the transcript view + full-text search
# (raw prompt/response text). Only enable behind auth.
# --- agent (informational) ---
# The per-machine agent reads these from ~/.toknmtr/env, NOT from this file (see ops/README.md):
# TOKNMTR_URL=http://<server-host>:3001 # base URL of your deployed server
# TOKNMTR_TOKEN=<same value as API_TOKEN above>