
Gollama is a delightful tool that brings Ollama, your offline conversational AI companion, directly into your terminal. It provides a fun and interactive way to generate responses from various models without needing internet connectivity. Whether you're brainstorming ideas, exploring creative writing, or just looking for inspiration, Gollama is here to assist you.

http://localhost:11434,
optionally can be configured using the OLLAMA_HOST environment
variable. Refer the official Ollama Go SDK docs for further
informationollama pull <model-name> command.
To find a list of all available models,
check the Ollama Library.
You can also use the ollama list command to list all locally installed models.You can install Gollama using one of the following methods:
Grab the latest release from the releases page and extract the archive to a location of your choice.
[!NOTE] Prerequisite: Go installed on your system.
You can also install Gollama using the go install command:
go install github.com/gaurav-gosain/gollama@latest
You can pull the latest docker image from the GitHub Docker Container Registry and run it using the following command:
docker run --net=host -it --rm ghcr.io/gaurav-gosain/gollama:latest
bash
gollama
or
bash
/path/to/gollama
[!NOTE] Running Gollama with the
-hflag will display the list of available flags.
-v, --version Prints the version of Gollama
-m, --manage manages the installed Ollama models (update/delete installed models)
-i, --install installs an Ollama model (download and install a model)
-r, --monitor Monitor the status of running Ollama models
--model string Model to use for generation
--prompt string Prompt to use for generation
--images strings Paths to the image files to attach (png/jpg/jpeg), comma separated
[!WARNING] The responses for multimodal LLMs are slower than the normal models (also depends on the size of the attached image)
Pick a chat screen| Key | Description |
|---|---|
↑/k |
Up |
↓/j |
Down |
→/l/pgdn |
Next page |
←/h/pgup |
Previous page |
g/home |
Go to start |
G/end |
Go to end |
enter |
Select chat |
q |
Quit |
d |
Delete chat |
ctrl+n |
New chat |
? |
Toggle extended help |

| Key | Description |
|---|---|
ctrl+up/k |
Move view up |
ctrl+down/j |
Move view down |
ctrl+u |
Half page up |
ctrl+d |
Half page down |
ctrl+p |
Previous message |
ctrl+n |
Next message |
ctrl+y |
Copy last response |
alt+y |
Copy highlighted message |
ctrl+o |
Toggle image picker |
ctrl+x |
Remove attachment |
ctrl+h |
Toggle help |
ctrl+c |
Exit chat |
[!NOTE] The
ctrl+okeybinding only works if the selected model is multimodal

[!NOTE] The management screens can be chained together. For example, using the flags
-imrwill run Ollamanager with tabs for installing, managing, and monitoring models.
The following keybindings are common to all modal management screens:
| Key | Description |
|---|---|
? |
Toggle help menu |
↑/k |
Move up |
↓/j |
Move down |
←/h |
Move left |
→/l |
Move right |
enter |
Pick selected item |
/ |
Filter/fuzzy find items |
esc |
Clear filter |
q/ctrl+c |
Quit |
n/tab |
Switch to the next tab |
p/shift+tab |
Switch to the previous tab |

[!NOTE] The following keybindings are specific to the
Manage Modelsscreen/tab:
| Key | Description |
|---|---|
u |
Update selected model |
d |
Delete selected model |

[!NOTE] Gollama uses the Ollamanager library to manage models. It provides a convenient way to install, update, and delete models.
https://github.com/user-attachments/assets/9e625715-5a8a-4e71-a355-89eaa298eb9b
echo "Once upon a time" | gollama --model="llama3.1" --prompt="prompt goes here"
gollama --model="llama3.1" --prompt="prompt goes here" < input.txt
[!IMPORTANT] Not supported for all models, check if the model is multimodal
gollama --model="llava:latest" \
--prompt="prompt goes here" \
--images="path/to/image.png"
[!WARNING] The
--modeland--promptflags are mandatory for CLI mode. The--imagesflag is optional.
You can also run Gollama locally using docker:
bash
git clone https://github.com/Gaurav-Gosain/gollama.git
bash
cd gollama
bash
docker build -t gollama .
bash
docker run --net=host -it gollama
[!NOTE] The above commands build the docker image with the tag
gollama. You can replacegollamawith any tag of your choice.
If you prefer to build from source, follow these steps:
bash
git clone https://github.com/Gaurav-Gosain/gollama.git
bash
cd gollama
bash
go build
Gollama relies on the following third-party packages:
Contributions are welcome! Whether you want to add new features, fix bugs, or improve documentation, feel free to open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
$ claude mcp add gollama \
-- python -m otcore.mcp_server <graph>