Who it is forA developer or analyst working with confidential code or data who does not want to send it to a cloud API.
The problemCloud LLM backends require sending prompts to a remote provider, which may be unacceptable for sensitive work.
The outcomeBaize runs its agent loop against a local model served by Ollama, with no API key needed.
What you need first
- Python 3.10 or newer with pip
- An API key for DeepSeek or another supported backend, or a local Ollama install
- Optional: IBM SPSS Statistics or a reachable SQL database, depending on the use case
Steps
- Install Ollama from https://ollama.com/download
ollama pull qwen2.5:7bollama serve- Open
~/.baize/config.tomland setactive_provider = "ollama", then save the file. (inferred, check the README) baize
Prompt for your agent
Using the Baize CLI from the Xu123-Bob/Baize repo with active_provider set to ollama, ask it to summarize the files in <project-path>. Expected output: a summary generated by the local qwen2.5:7b model. Verify that Ollama is serving on localhost:11434 before the decree runs.
Caveat. A 7B local model is less capable than the cloud backends, and the README recommends qwen2.5:7b for strong Chinese while listing llama3.1:8b and deepseek-r1:7b as alternatives.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Xu123-Bob/Baize and "Run Baize on a local Ollama model so data never leaves your machine"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer