Skip to main content
Install, make your first model call, guard it against PII leaks, track what it costs, and scan text for sensitive data from the command line. Every snippet below is copy-paste runnable. Not a developer? Read the plain-language getting started guide instead.

1. Install (30 seconds)

That is the whole core install: multi-provider models, the PII guard, cost tracking, hallucination checks, and the CLI. Extras like [rag] or [gateway] are only needed for those features — see the installation guide.

2. Pick a model path

Path A — cloud provider (needs one API key). Set the key for whichever provider you have:
Path B — fully local, no API key. Install Ollama, then:
MultiMind talks to Ollama over HTTP; no extra Python packages needed. To see which providers are configured at any time (works offline):

3. First generation

Path A (cloud):
Path B (local, no key):
The interface is identical for every provider — ClaudeModel, GeminiModel, GroqModel, MistralAIModel, DeepSeekModel all work the same way. Prefer plain functions over asyncio? Use model.generate_sync(...) — see the cookbook.

4. Guard it against PII leaks

Wrap any model so emails, SSNs, credit cards, API keys, and other PII are redacted before they ever reach the provider — with an audit trail:
Then look at compliance_audit.jsonl — one JSON line per event, recording what was detected and redacted (types, counts, and hashes only; never the raw values).

5. Track what it costs

Want a hard spending ceiling instead of just a report? Add budget=Budget(max_cost=1.00) — calls past the ceiling are blocked before dispatch. Recipe: budget-capped calls.

6. Scan for PII from the command line

No Python needed — one command, works completely offline:
Output is a table of findings (type, position, matched text) and the command exits with code 1 if any PII was found, so it drops straight into CI pipelines. Scan a file instead, and print a redacted version:

Where to next

  • Cookbook — short task-oriented recipes: switch providers, structured output with Pydantic, hallucination detection, the gateway API, and more
  • Compliance guide — the full GDPR/HIPAA compliance module
  • Deployment guide — docker pull ghcr.io/multimindlab/multimind-sdk:latest, docker compose, and a fully local stack
  • Docs index — everything else