Skip to content

Terminal access to ollama API-only models designed to used with bashrc alias

License

Notifications You must be signed in to change notification settings

NotCoffee418/ollama-terminal

Repository files navigation

ollama-terminal

Installation

ollama-terminal is a terminal application that uses ollama to generate a prompt through the terminal, allowing you to use non-text models in the terminal. You can specify an alias for the application, and the model to use for the prompt.

Features on request

  • Customizable preprompt
  • Chat finetuning

Install and update

curl -s https://raw.githubusercontent.com/NotCoffee418/ollama-terminal/main/install.sh | sudo bash
source ~/.bashrc

Usage

llama [optional initial prompt]

See Configuration section for changing llama to a different alias.

Configuration

The alias is the command you run to activate the application. By default the alias is llama. To change the alias run the following command:

/usr/local/bin/ollama-terminal set alias [new alias]
source ~/.bashrc

To set the model ollama-terminal uses to generate the prompt run the following command:

/usr/local/bin/ollama-terminal set model [model name]
source ~/.bashrc

You can find a list of usable models on the ollama website.

About

Terminal access to ollama API-only models designed to used with bashrc alias

Resources

License

Stars

Watchers

Forks

Packages

No packages published