A text-based terminal client for Ollama.
Project description
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.
Screenshots
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file oterm-0.1.13.tar.gz
.
File metadata
- Download URL: oterm-0.1.13.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95f398e18adfc625409c3a10300c2d574c1e0e5c0ee26bd50db524c95bc66e48 |
|
MD5 | 41bd4dfa260250f3cf1d8f086ae643e5 |
|
BLAKE2b-256 | f3c0d31aeb407046bdc2500e66db0c557e1925dd88f07827942c4ca4e2e1da3d |
File details
Details for the file oterm-0.1.13-py3-none-any.whl
.
File metadata
- Download URL: oterm-0.1.13-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 269449000b893682ae03edf36dce50d75c380ead6329951e4af539de9467297b |
|
MD5 | db1662ba2e1ce86f11b82926b591a1bb |
|
BLAKE2b-256 | 660420660fbcbd1ec1449f6fe2226bc5a846ae2b2b43f23660c8c819e980ebfc |