Skip to main content
This guide covers all configuration options available in the MultiMind SDK.

Environment Variables

API Keys

Default Settings

Compliance Proxy (multimind serve)

Every multimind serve flag can also be set through an environment variable (CLI flags win):
The guardrails file passed with --config defaults to MULTIMIND_DASHBOARD_GUARDRAILS (see below). See the Guard Proxy guide for details.

Governance Dashboard (multimind dashboard)

Every multimind dashboard flag can also be set through an environment variable (CLI flags win):
multimind backend reads MULTIMIND_BACKEND_HOST and MULTIMIND_BACKEND_PORT (default 127.0.0.1:8080).

API Servers and Misc

Model Configuration

Generation parameters such as temperature and max_tokens are passed per call (e.g. to generate()), not to the model constructor.

OpenAI Models

Claude Models

Mistral Models

MistralModel runs Mistral models locally through Ollama; MistralAIModel uses the hosted Mistral AI (La Plateforme) API via MISTRAL_API_KEY.

Agent Configuration

Memory Settings

Tool Configuration

Task Runner Configuration

MCP Configuration

Workflow Definition

An MCP spec must contain version, models (a list of {name, type, config} entries; types: openai, claude, mistral, huggingface, ollama) and a workflow with steps ({id, type, config}; types: model, transform, condition) and connections ({from, to} between existing step ids). A model step’s config needs model (a registered model name) and prompt_template; the full schema is in multimind/mcp/schema.json:

Logging Configuration

Usage Tracking

Trace Logging

CLI Configuration

Command Line Options

Global CLI configuration is stored as JSON in ~/.multimind_cli_config.

Configuration File (config.yaml)

The SDK-level multimind.Config loads a YAML file from the path given by the MULTIMIND_CONFIG environment variable (or an explicit config_path). Environment variables override file values for API keys and the Ollama host:

Best Practices

  1. Environment Variables
    • Use environment variables for sensitive data
    • Keep configuration in version control
    • Use different configs for different environments
  2. Model Selection
    • Choose models based on task requirements
    • Consider cost and performance trade-offs
    • Monitor model usage and costs
  3. Resource Management
    • Set appropriate timeouts
    • Implement retry strategies
    • Monitor memory usage
  4. Security
    • Never commit API keys
    • Use secure storage for sensitive data
    • Implement proper access controls
  5. Monitoring
    • Enable usage tracking
    • Set up logging
    • Monitor performance metrics

Troubleshooting

Common Issues

  1. Configuration Not Loaded
    • Check file permissions
    • Verify environment variables
    • Check config file syntax
  2. Model Access
    • Verify API keys
    • Check model availability
    • Confirm account status
  3. Resource Limits
    • Check rate limits
    • Monitor token usage
    • Verify timeout settings

Getting Help