New Tool Radar

Local AI

How to Save an Ollama Chat and Load It Back Later

Save a tuned Ollama chat session with /save, then load it back later with /load instead of setting it up again.

Schematic diagram with three steps: set up a chat in ollama run llama3.2:1b, save it with /save lighthouse-chat, then load it back later with /load lighthouse-chat.

Once you have set up a chat the way you like it — a system prompt, a temperature, a longer context — you do not have to set it up again tomorrow. Inside a running ollama run chat, the command /save NAME saves the session settings as a new model you can call by name, and /load NAME switches to another model or a saved session without leaving the chat. The saved name then behaves like any other model name: you can start it, list it, and delete it.

Save the session before you leave

Start with a model the save command is reported to work on. The Ollama commands cheat sheet says /save is meant to turn a tuned session into a model you can call by name, and that it works on llama3.2:1b and on custom models. Set the session up first — for the practice below, a fictional system prompt — then save it under a name of your own choosing:

/save lighthouse-chat

After saving, leave with /bye. The saved session is now a model called lighthouse-chat, so it will appear in ollama list alongside the models you downloaded.

Try it: save today, load it back tomorrow

Work through the table below in one sitting first, so you know the round trip works, then repeat the load step in a later session.

Step What you type What you should see
Start the chat ollama run llama3.2:1b The >>> prompt
Set it up /set system You are a lighthouse keeper's logbook. Answer in one short sentence. No reply; the line configures the session
Ask one question What does the keeper check first each morning? An answer in one short sentence
Save it /save lighthouse-chat The session is saved as a model called lighthouse-chat
Leave and come back /bye, then ollama run llama3.2:1b A fresh chat with no system prompt
Load the saved session /load lighthouse-chat The saved session is loaded; /show system shows the logbook prompt again

Expected result. We checked the Ollama commands cheat sheet, which lists /save NAME and /load NAME and reports the save working on llama3.2:1b. We did not run ollama run, save a session, or load one back on this machine, and the logbook prompt, the question, and the name lighthouse-chat are fictional.

Limits

Saving does not work on every model. The same cheat sheet reports that /save failed on the library model qwen3.5:4b with Error: pull model manifest: file does not exist, and explains that /save builds the new model from the model’s parent model, which that library model reports as model.gguf. If saving fails on a model, use a Modelfile to build a custom model with the same settings instead. A saved session is also a new model name, so it appears in ollama list and takes up a listing even though it shares the base model’s weights; delete it with ollama rm lighthouse-chat when you no longer need it, which does not delete the base model. Loading an embedding model can fail too: the cheat sheet reports that /load on an embedding model fails when the session you are leaving has thinking enabled. The slash commands in this guide come from a third-party cheat sheet that was checked against Ollama 0.40.14, not from Ollama’s own documentation. We did not test any of this ourselves.

Sources

See all