| Crates.io | term-gpt |
| lib.rs | term-gpt |
| version | 0.2.0 |
| created_at | 2025-12-11 16:22:38.866018+00 |
| updated_at | 2025-12-11 16:22:38.866018+00 |
| description | A fast, colorful ChatGPT CLI for your terminal! |
| homepage | |
| repository | https://github.com/reidctl/term-gpt.git |
| max_upload_size | |
| id | 1980032 |
| size | 54,054 |
term-gpt is a fast, colorful, file-aware ChatGPT client for your terminal.
It supports one-shot prompts, REPL mode, file context, and a custom assistant personality.
Use it like:
gpt "Explain Rust ownership like I'm an exhausted developer."
Or enter interactive chat:
gpt --repl
Supports injecting files into the prompt:
gpt -f src/main.rs "Explain what this code does."
--repl)-f path/to/file)cargo install --git https://github.com/YOURNAME/gpt
Or install through cargo:
cargo install term-gpt
export PATH="$HOME/.cargo/bin:$PATH"
export OPENAI_API_KEY="sk-your-key-here"
⚠️ Never hardcode your API key into source files.
⚠️ Never commit.envfiles with secrets.
gpt "Write me a haiku about Rust and caffeine dependency."
gpt -f src/main.rs "Explain this code."
Multiple files:
gpt -f src/main.rs -f README.md "Summarize the project."
gpt --repl
Quit with:
:q
You > Why is Rust so strict?
Assistant >
Because Rust is the gym coach who screams “FORM MATTERS”
while making sure you don’t blow out your back doing a deadlift
with a null pointer.
git clone https://github.com/reid-ctl/term-gpt
cd gpt
cargo build --release
Optimized binary:
target/release/gpt
Symlink:
sudo ln -s $(pwd)/target/release/gpt /usr/local/bin/gpt
This CLI uses OpenAI’s Responses API.
You can tweak:
Inside DEFAULT_PERSONALITY in main.rs.
--model flagcat file | gpt)PKGBUILD)MIT — do whatever you want, just don’t sue me if you anger the borrow checker.
Made by Garrett Reid,
powered by Rust, caffeine, and an unhealthy relationship with terminal prompts.