/tenere

TUI interface for LLMs built in Rust

Primary LanguageRustGNU Affero General Public License v3.0AGPL-3.0

Tenere

A crab in the moroccan desert

TUI interface for LLMs built in Rust

📸 Demo

demo


💎 Supported LLMs

Only ChatGPT is supported for the moment. But I'm planning to support more models in the future.


⚙️ Installation

MacOS

brew tap pythops/tenere
brew install tenere

You can download the prebuilt binaries from the release page.

Otherwise, you can build from source. This requires Rust compiler and Cargo package manager.

Once Rust and Cargo are installed, run the following command to build:

cargo build --release

This will produce an executable file at target/release/tenere that you can copy to a directory in your $PATH.


⚡ Requirements

You need to export the API key from OpenAI first.

export OPENAI_API_KEY="YOUTR KEY HERE"

🚀 Usage

There are two modes like vim: Normal and Insert.

Insert mode

To enter Insert mode, You press i. Once you're in, you can use:

Esc: to switch back to Normal mode.

Enter: to create a new line

Backspace: to remove the previous character

Normal mode

When you launch tenere, it's in Normal mode by default. In this mode, you can use:

Enter: to submit the prompt

dd: to clear the prompt.

ctrl+l: to clear the prompt AND the chat.

Tab: to switch the focus between the prompt and the chat history.

j: to scroll down

k: to scroll up

q: to quit the app

h: to show the help pop-up. You can dismiss the pop-up with Esc


🧭 Roadmap

  • Highlight the chat messages
  • Show the scroll bar
  • Support more models

🛠️ Built with


🙏 Acknowledgments

Big thanks to @orhun and @sophacles for their precious help 🙏


⚖️ License

AGPLv3