Skip to main content

Overview

Interactive setup for text embeddings: provider (Ollama, OpenAI, or Cohere), model from a curated list, and API key for cloud providers. Settings are written to ~/.moorcheh/config.json and used on every moorcheh up. You can run this before or instead of answering prompts during the first moorcheh up.

Synopsis

moorcheh configure [--force]

Options

FlagDescription
--forceRe-run the wizard even if config.json already exists

What it asks

  1. Providerollama, openai, or cohere (default in wizard: openai)
  2. Model — numbered menu per provider (see Embedding providers)
  3. API key — required for openai and cohere (hidden input); not asked for ollama
base_url is saved from release defaults (edit config.json to point at a proxy or alternate endpoint).

Ollama-specific behavior

SituationWhat happens
Ollama already running on http://127.0.0.1:11434Checks for the model; offers to pull if missing
Ollama not runningSaves config; tells you model will be pulled on next moorcheh up
Configure does not start Docker or the bundled Ollama container. Use moorcheh up for that.

Examples

# First-time setup
moorcheh configure

# Change provider or model
moorcheh configure --force

# Then start the stack
moorcheh up

Config file example

{
  "provider": "openai",
  "model": "text-embedding-3-small",
  "api_key": "sk-...",
  "base_url": "https://api.openai.com/v1"
}
On Unix, config.json is created with mode 600. Do not commit this file or share it; it may contain API keys.

Non-interactive overrides

You can skip the wizard and set values on moorcheh up:
moorcheh up --embedding-provider cohere --embedding-model embed-v4.0 --embedding-api-key "$COHERE_API_KEY"
Or use --no-configure after config.json exists.