memcode docs
CLI

Choosing a model

Let memcode pick the right model per task, or pin the one you want.

You don't have to choose a model. By default memcode picks one for each task, using a fast model for routine work and a stronger one for planning and hard problems. When you want control, you can pin a specific model.

Pin a model

In a session, open the picker:

/model

The first option is Automatic. The rest are specific models, each showing its name, context window, and whether one of your own keys covers it. Pick one to pin it for the project.

If you already know what you want, /model also takes an argument:

CommandWhat it does
/model autoGo back to letting memcode choose.
/model <vendor>Keep Automatic, but prefer that vendor, like anthropic.
/model <model-name>Pin that exact model.

A pinned model stays until you change it, and memcode won't swap it out from under you.

Control how hard it thinks

Separately from the model, /effort sets how much the model reasons before it acts. It takes off, medium, high, or auto. Auto is the default, and the setting resets when you restart the session.

/effort high

Using your own keys

If you've added your own provider keys, memcode prefers a model you have a key for when it's choosing automatically, so you spend your own quota rather than credits. Pinning a model always wins. See Authentication for how to add keys.

On this page