Skip to content

Configuration

TribalMind uses a layered configuration system. Settings are resolved from multiple sources with a clear precedence order.

ScopePathCreated by
Per-project.tribal/config.yamltribal init
Global~/.config/tribalmind/tribal.yamltribal 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.

.tribal/config.yaml
provider: backboard
backboard_base_url: https://api.backboard.dev
project_assistant_id: asst_abc123def456
llm_provider: anthropic
model_name: claude-sonnet-4-20250514
KeyDescriptionDefault
providerMemory provider: backboard or mem0backboard
backboard_base_urlBackboard API endpointhttps://api.backboard.dev
project_assistant_idAssistant ID for this projectSet during tribal init
llm_providerLLM provider: anthropic, openai, or googleanthropic
model_nameModel name for the chosen providerProvider default
mem0_api_keyMem0 API key (when using Mem0 provider)
mem0_org_idMem0 organization ID
mem0_project_idMem0 project ID

Every setting can be overridden with an environment variable using the TRIBAL_ prefix:

VariableOverrides
TRIBAL_BACKBOARD_BASE_URLbackboard_base_url
TRIBAL_PROJECT_ASSISTANT_IDproject_assistant_id
TRIBAL_LLM_PROVIDERllm_provider
TRIBAL_MODEL_NAMEmodel_name
TRIBAL_BACKBOARD_API_KEYAPI key (but see keyring note below)
TRIBAL_PROVIDERprovider
TRIBAL_MEM0_API_KEYmem0_api_key
TRIBAL_MEM0_ORG_IDmem0_org_id
TRIBAL_MEM0_PROJECT_IDmem0_project_id

API keys are stored in your OS system keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service) — not in config files.

Terminal window
# Store your API key securely
tribal config set-secret backboard-api-key

Settings are resolved in this order (first match wins):

  1. Environment variable (TRIBAL_*)
  2. Per-project config (.tribal/config.yaml)
  3. Global config (~/.config/tribalmind/tribal.yaml)
  4. Built-in defaults

For the API key specifically:

  1. OS keyring
  2. Environment variable (TRIBAL_BACKBOARD_API_KEY)
  3. Config file (not recommended — use keyring or env var)
Terminal window
# View all resolved settings
tribal config list
# Get a specific value
tribal config get llm-provider
# Set a value
tribal config set llm-provider openai
tribal config set model-name gpt-4o
# Store a secret
tribal config set-secret backboard-api-key
# Debug API key issues
tribal config debug-key

See tribal config for the full command reference.