Configuration
TribalMind uses a layered configuration system. Settings are resolved from multiple sources with a clear precedence order.
Config file locations
Section titled “Config file locations”| Scope | Path | Created by |
|---|---|---|
| Per-project | .tribal/config.yaml | tribal init |
| Global | ~/.config/tribalmind/tribal.yaml | tribal init --global |
A per-project config takes precedence over the global config. The global config provides defaults for repos that don’t have their own.
Config file format
Section titled “Config file format”provider: backboardbackboard_base_url: https://api.backboard.devproject_assistant_id: asst_abc123def456llm_provider: anthropicmodel_name: claude-sonnet-4-20250514Settings reference
Section titled “Settings reference”| Key | Description | Default |
|---|---|---|
provider | Memory provider: backboard or mem0 | backboard |
backboard_base_url | Backboard API endpoint | https://api.backboard.dev |
project_assistant_id | Assistant ID for this project | Set during tribal init |
llm_provider | LLM provider: anthropic, openai, or google | anthropic |
model_name | Model name for the chosen provider | Provider default |
mem0_api_key | Mem0 API key (when using Mem0 provider) | |
mem0_org_id | Mem0 organization ID | |
mem0_project_id | Mem0 project ID |
Environment variables
Section titled “Environment variables”Every setting can be overridden with an environment variable using the TRIBAL_ prefix:
| Variable | Overrides |
|---|---|
TRIBAL_BACKBOARD_BASE_URL | backboard_base_url |
TRIBAL_PROJECT_ASSISTANT_ID | project_assistant_id |
TRIBAL_LLM_PROVIDER | llm_provider |
TRIBAL_MODEL_NAME | model_name |
TRIBAL_BACKBOARD_API_KEY | API key (but see keyring note below) |
TRIBAL_PROVIDER | provider |
TRIBAL_MEM0_API_KEY | mem0_api_key |
TRIBAL_MEM0_ORG_ID | mem0_org_id |
TRIBAL_MEM0_PROJECT_ID | mem0_project_id |
Secrets and the keyring
Section titled “Secrets and the keyring”API keys are stored in your OS system keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service) — not in config files.
# Store your API key securelytribal config set-secret backboard-api-keyResolution order
Section titled “Resolution order”Settings are resolved in this order (first match wins):
- Environment variable (
TRIBAL_*) - Per-project config (
.tribal/config.yaml) - Global config (
~/.config/tribalmind/tribal.yaml) - Built-in defaults
For the API key specifically:
- OS keyring
- Environment variable (
TRIBAL_BACKBOARD_API_KEY) - Config file (not recommended — use keyring or env var)
Managing config via CLI
Section titled “Managing config via CLI”# View all resolved settingstribal config list
# Get a specific valuetribal config get llm-provider
# Set a valuetribal config set llm-provider openaitribal config set model-name gpt-4o
# Store a secrettribal config set-secret backboard-api-key
# Debug API key issuestribal config debug-keySee tribal config for the full command reference.