Skip to content

tribal init

Sets up your memory provider, API credentials, and creates an assistant for storing memories.

Terminal window
tribal init [OPTIONS]
OptionDescription
--api-key, -kBackboard API key (for non-interactive / agent use)
--providerMemory provider: backboard (default) or mem0
--project-root, -pProject root path (defaults to git root or CWD)
--global, -gSet up a user-level default config
--llm-providerLLM provider: anthropic, openai, or google
--model-nameLLM model name
Terminal window
tribal init

Creates .tribal/config.yaml in the current project. Memories are scoped to this project’s assistant.

Terminal window
tribal init --global

Creates ~/.config/tribalmind/tribal.yaml. All repos without their own .tribal/config.yaml inherit from this config.

When run without flags, tribal init walks you through an interactive 5-step setup:

  1. Memory provider — choose Backboard (default) or Mem0
  2. API key — enter credentials for your chosen provider (stored securely in your OS keyring)
  3. LLM provider — choose Anthropic, OpenAI, or Google (Backboard only — Mem0 uses its own LLM pipeline)
  4. Assistant — creates an assistant for this project
  5. Agent files — optionally runs tribal setup-agents

For CI/CD or scripted use, pass all required values as flags:

Terminal window
tribal init --api-key sk-xxx --llm-provider anthropic --model-name claude-sonnet-4-20250514
# Use Mem0 as the memory provider
tribal init --provider mem0 --api-key m0-xxx
Terminal window
tribal init # set up this repo interactively
tribal init --global # set up user-level default
tribal init --api-key sk-xxx # non-interactive
tribal init --project-root /path # specific project directory