the terminal client for LLMs
  • Python 99.7%
  • HTML 0.3%
Find a file
Yiorgis Gozadinos a3412f49c6 vb
2023-12-07 16:54:26 +01:00
.github/workflows Use 3.10 python 2023-12-07 11:02:55 +01:00
oterm Show db location 2023-12-07 16:36:48 +01:00
screenshots Update screenshots 2023-12-07 16:25:01 +01:00
tests Update ollama test 2023-11-01 20:37:11 +01:00
.gitignore Update packages, vb 2023-11-29 14:41:36 +01:00
CHANGES.txt vb 2023-12-07 16:54:26 +01:00
LICENSE Readme, license 2023-10-15 19:53:05 +02:00
poetry.lock Update packages, vb 2023-11-29 14:41:36 +01:00
pyproject.toml vb 2023-12-07 16:54:26 +01:00
README.md Show db location 2023-12-07 16:36:48 +01:00

oterm

the text-based terminal client for Ollama.

Features

  • intuitive and simple terminal UI, no need to run servers, frontends, just type oterm in your terminal.
  • multiple persistent chat sessions, stored together with the context embeddings and template/system prompt customizations in sqlite.
  • can use any of the models you have pulled in Ollama, or your own custom models.
  • allows for easy customization of the model's template, system prompt and parameters.

Installation

Using brew for MacOS:

brew tap ggozad/formulas
brew install ggozad/formulas/oterm

Using pip:

pip install oterm

Using

In order to use oterm you will need to have the Ollama server running. By default it expects to find the Ollama API running on http://localhost:11434/api. If you are running Ollama inside docker or on a different host/port, use the OLLAMA_URL environment variable to customize the API url. Setting OTERM_VERIFY_SSL to False will disable SSL verification.

OLLAMA_URL=http://host:port/api

oterm will not (yet) pull models for you, please use ollama to do that. All the models you have pulled or created will be available to oterm.

Customizing models

When creating a new chat, you may not only select the model, but also customize the template as well as the system instruction to pass to the model. Checking the JSON output checkbox will cause the model reply in JSON format.

Chat session storage

All your chat sessions are stored locally in a sqlite database. You can find the location of the database by running oterm --db.

Screenshots

Chat Model selection

License

This project is licensed under the MIT License.