tribal init
Sets up your memory provider, API credentials, and creates an assistant for storing memories.
tribal init [OPTIONS]Options
Section titled “Options”| Option | Description |
|---|---|
--api-key, -k | Backboard API key (for non-interactive / agent use) |
--provider | Memory provider: backboard (default) or mem0 |
--project-root, -p | Project root path (defaults to git root or CWD) |
--global, -g | Set up a user-level default config |
--llm-provider | LLM provider: anthropic, openai, or google |
--model-name | LLM model name |
Per-project (default)
Section titled “Per-project (default)”tribal initCreates .tribal/config.yaml in the current project. Memories are scoped to this project’s assistant.
Global
Section titled “Global”tribal init --globalCreates ~/.config/tribalmind/tribal.yaml. All repos without their own .tribal/config.yaml inherit from this config.
Interactive setup
Section titled “Interactive setup”When run without flags, tribal init walks you through an interactive 5-step setup:
- Memory provider — choose Backboard (default) or Mem0
- API key — enter credentials for your chosen provider (stored securely in your OS keyring)
- LLM provider — choose Anthropic, OpenAI, or Google (Backboard only — Mem0 uses its own LLM pipeline)
- Assistant — creates an assistant for this project
- Agent files — optionally runs
tribal setup-agents
Non-interactive
Section titled “Non-interactive”For CI/CD or scripted use, pass all required values as flags:
tribal init --api-key sk-xxx --llm-provider anthropic --model-name claude-sonnet-4-20250514
# Use Mem0 as the memory providertribal init --provider mem0 --api-key m0-xxxExamples
Section titled “Examples”tribal init # set up this repo interactivelytribal init --global # set up user-level defaulttribal init --api-key sk-xxx # non-interactivetribal init --project-root /path # specific project directory