Advanced
Configuration
Contxt stores its configuration globally in ~/.contxt/. Most settings are managed automatically — this page covers manual configuration options.
Config directory
~/.contxt/db.sqliteLocal database — all memory entries across all projects~/.contxt/auth.jsonAuthentication credentials (access token, user ID)~/.contxt/config.jsonGlobal settings (Supabase URL override, default branch)
Environment variables
These environment variables override config file values:
| Variable | Description |
|---|---|
| CONTXT_SUPABASE_URL | Override the Supabase URL (for self-hosting) |
| CONTXT_SUPABASE_ANON_KEY | Override the Supabase anon key |
| CONTXT_DB_PATH | Override the SQLite database path |
Reset config
To reset authentication without removing your local data:
contxt auth logoutThis removes ~/.contxt/auth.json only. Your local database and project registrations are preserved.