A minimalist CLI tool to connect to OpenRouter and chat with free AI models directly from your terminal.
Project description
Terminal Pilot
A minimalist, interactive CLI tool to connect to OpenRouter and chat with free AI models directly from your terminal.
Installation
-
Clone this repository:
git clone <YOUR_GITHUB_REPO_URL> cd Terminal_Pilot
-
Install the CLI tool globally (or in a virtual environment):
pip install -e .
Configuration
You need an OpenRouter API key to use this tool.
Create a file named .env in this directory (or in your home directory as .terminal_pilot_env) and add your key:
OPENROUTER_API_KEY=your_openrouter_key_here
Usage
Start the interactive assistant from anywhere in your terminal:
tp start
Inside the interactive chat, you can instantly load files into the AI's memory by using the /read command:
? You: /read requirements.md
✓ Loaded requirements.md into memory!
? You: Give me a summary of this project.
Changing Models Mid-Chat
If a model hits a rate limit or you want to switch to a different one, you don't need to exit. Just type /model to hot-swap:
? You: /model
✓ Switched model to: google/gemma-3
Pipe Support (stdin)
You can pipe data directly into the AI to analyze logs, code, or command outputs instantly without opening an interactive chat:
cat error.log | tp ask "Why is this crashing?"
git diff | tp ask "Write a commit message for these changes"
tp ask "What is the command to undo a git commit?"
Optional: Custom Rules
You can inject custom system prompts (personas) by feeding it a text or markdown file:
tp start --rule rules.md
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file terminal_pilot-0.1.2.tar.gz.
File metadata
- Download URL: terminal_pilot-0.1.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df9a9501a58ee8531ff5aae93219e0c0a356377c179257c4ec4b994874614fcf
|
|
| MD5 |
7efd7cd7a6375b30f18471215a5d0a4e
|
|
| BLAKE2b-256 |
5c61546539ddf6907577e2d1a72077a70762cebf11d518f7c1071f95c3d2795e
|
File details
Details for the file terminal_pilot-0.1.2-py3-none-any.whl.
File metadata
- Download URL: terminal_pilot-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
955c712b502a001f6c03a1489e96189f22261024bc036c9c84b33813bfe06af5
|
|
| MD5 |
ff5baccfed9b654737608f18a304c8a4
|
|
| BLAKE2b-256 |
c878cc02eb0c1b45bf4a4ef1e8db3646174f346b00ea2fa328ba4414e0522cbf
|