A terminal client for chatting with LLM APIs. Very sparse on features, currently tinkering on this to fit my needs. Will probably standardize at some point and make this more presentable/user-friendly.
Eventually hope for this to be a complete general terminal replacement for the web interfaces, as opposed to my own idiosyncratic tool.
TLLM currently only supports OpenAI--make sure your OPENAI_API_KEY
environment variable is set.
To install,
git clone https://github.com/jtan2231/tllm.git && cd tllm
cargo build --release
sudo cp target/release/tllm /usr/bin
Then just use tllm
to open a chat.
The controls are vim-esque:
- Command Mode:
- Cursor is a block and in the conversation display
q
to exita
to enter Edit ModeEnter
to send message
- Edit Mode:
- Cursor is a line in input display
ctrl + v
to pasteesc
to enter Command Mode
You can also use ctrl + <left|right>
and shift + <up|down>
to more quickly move about the text.
- Named conversation search
- Embeddings (?)
- Native text highlighting + yanking
- CLI
- Refactor
display.rs
--hideous code in there