memcode docs
CLI

Ollama

Run memcode against models served locally by Ollama.

Ollama serves models on your own machine with an OpenAI-compatible API, so memcode can use it. Nothing leaves your machine and no key is needed.

Before you start

Install and start Ollama, then pull a model:

ollama pull qwen2.5-coder

Connect

Point memcode at Ollama and name a model:

memcode ollama qwen2.5-coder

That saves the setting, so later runs just work. Leave the model off to pick one in a session with /model. For a host other than the default, pass --url:

memcode ollama --url http://192.168.1.10:11434 qwen2.5-coder

Notes

A local model won't match a frontier model on hard tasks, so pick a capable coding model and keep tasks focused.

On this page