Klyro is AI pair programming in your terminal
Project description
██╗ ██╗██╗ ██╗ ██╗██████╗ ██████╗
██║ ██╔╝██║ ╚██╗ ██╔╝██╔══██╗██╔═══██╗
█████╔╝ ██║ ╚████╔╝ ██████╔╝██║ ██║
██╔═██╗ ██║ ╚██╔╝ ██╔══██╗██║ ██║
██║ ██╗███████╗██║ ██║ ██║╚██████╔╝
╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝
AI pair programming in your terminal.
Klyro talks to your code. You talk to Klyro.
Works with GPT-4o, Claude, Gemini, DeepSeek, Ollama, Grok, Groq, Mistral — and 100+ more.
Quick Start · Features · Models · Commands · Config · Changelog
⚡ Quick Start
pip install klyro
# Run with your API key set
klyro
# Or specify a model directly
klyro --model gpt-4o
klyro --model ollama/llama3.2
klyro --model gemini/gemini-2.5-flash
Windows: If
klyrois not recognized, either runpython -m klyroor add your Scripts folder to PATH:python -c "import sysconfig; print(sysconfig.get_path('scripts', 'nt_user'))"
Install from source:
git clone https://github.com/RavindraTirlangi/Klyro.git
cd Klyro
pip install -e .
✨ Features
🧠 Supported Models
Switch models inside Klyro using /model <alias>:
| Provider | Alias | Model |
|---|---|---|
| Anthropic | claude / sonnet | claude-sonnet-4-6 ⭐ latest |
opus | claude-opus-4-7 — most capable | |
haiku | claude-haiku-4-5 — fastest | |
| OpenAI | 4o | gpt-4o ⭐ recommended |
4o-mini | gpt-4o-mini — cheapest | |
o1 / o3-mini | reasoning models | |
gemini | gemini-2.5-pro ⭐ recommended | |
flash | gemini-2.5-flash — fast & cheap | |
flash-lite | gemini-2.5-flash-lite | |
| DeepSeek | deepseek | deepseek-chat (v3) |
r1 | deepseek-reasoner — best reasoning | |
| Mistral | mistral | mistral-large-latest |
codestral | codestral-latest — code specialist | |
pixtral | pixtral-large — vision | |
| Ollama (local) | llama / llama3.2 | ollama/llama3.2 — no API key |
qwen | ollama/qwen2.5-coder | |
phi4 | ollama/phi4 | |
devstral | ollama/devstral — code expert | |
| xAI | grok / grok3 | xai/grok-3-beta |
grok3-mini | xai/grok-3-mini-beta | |
| Groq | groq-llama | llama-3.3-70b-versatile — ultra-fast |
groq-mixtral | mixtral-8x7b-32768 | |
groq-gemma | gemma2-9b-it | |
| OpenRouter (free) | llama-free | llama-3.1-8b-instruct:free |
deepseek-free | deepseek-r1-0528:free | |
gemma-free | gemma-3-27b-it:free | |
qwen-free | qwen3-235b-a22b:free | |
| AWS Bedrock | bedrock-claude | anthropic.claude-3-5-sonnet-v2 |
| Azure OpenAI | azure-gpt4o | azure/gpt-4o |
| Cohere | command | cohere/command-r-plus |
Run
/model listinside Klyro to see all 90+ aliases.
💬 Slash Commands
| Command | Description |
|---|---|
/model [name] |
Switch model mid-session — /model list to browse all providers |
/stats |
Show current model, last message cost, and total session cost |
/web <url> |
Scrape a webpage and add its content to the chat |
/export [file] |
Export full chat history to a Markdown file |
/add <file> |
Add a file to the chat context |
/drop <file> |
Remove a file from the chat context |
/diff |
Show the diff of changes made in this session |
/undo |
Undo the last AI commit |
/tokens |
Report token usage for current context |
/git <cmd> |
Run any git command |
/run <cmd> |
Run a shell command and add output to chat |
/clear |
Clear the chat history |
/help |
Show all available commands |
⚙️ Configuration
Create .klyro.conf.yml in your project root:
model: ollama/llama3.2 # default model
dark-mode: true
auto-commits: true
Or use environment variables:
# Cloud providers
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...
export GEMINI_API_KEY=...
export DEEPSEEK_API_KEY=...
export MISTRAL_API_KEY=...
export XAI_API_KEY=...
export GROQ_API_KEY=...
export OPENROUTER_API_KEY=sk-or-...
# Local
export OLLAMA_API_BASE=http://localhost:11434
📦 Release
Tagged releases automatically publish to PyPI via GitHub Actions:
git tag v1.0.3
git push origin v1.0.3
See CHANGELOG.md for full version history.
📄 License
Apache License 2.0 — see LICENSE for details.
Project details
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 klyro-1.0.3.tar.gz.
File metadata
- Download URL: klyro-1.0.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1885b4a0dea79df73207d29e93b293edee08f79e151faeb185ea83c89d403379
|
|
| MD5 |
8841070f390ff89e400b9a0bf76468f6
|
|
| BLAKE2b-256 |
231ef7bdb8cfe866c69d0badf61e578f009af5948497742a8570122e43d8defb
|
Provenance
The following attestation bundles were made for klyro-1.0.3.tar.gz:
Publisher:
publish.yml on RavindraTirlangi/Klyro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klyro-1.0.3.tar.gz -
Subject digest:
1885b4a0dea79df73207d29e93b293edee08f79e151faeb185ea83c89d403379 - Sigstore transparency entry: 2096484322
- Sigstore integration time:
-
Permalink:
RavindraTirlangi/Klyro@9b9a17154bc27cbaddbbe346b844e2e82fc2d4fa -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/RavindraTirlangi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b9a17154bc27cbaddbbe346b844e2e82fc2d4fa -
Trigger Event:
push
-
Statement type:
File details
Details for the file klyro-1.0.3-py3-none-any.whl.
File metadata
- Download URL: klyro-1.0.3-py3-none-any.whl
- Upload date:
- Size: 386.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6bcab666d6813aeba9a2c4e10214e1e647458a76f2e0ce91894e1a2da15d724
|
|
| MD5 |
50b0ab6af3aa4e834f03ca4bece73ffd
|
|
| BLAKE2b-256 |
3e9956a94fc0366a6e2b0e93e0d9f31634a3be409d35b575c010d9a50334194e
|
Provenance
The following attestation bundles were made for klyro-1.0.3-py3-none-any.whl:
Publisher:
publish.yml on RavindraTirlangi/Klyro
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
klyro-1.0.3-py3-none-any.whl -
Subject digest:
e6bcab666d6813aeba9a2c4e10214e1e647458a76f2e0ce91894e1a2da15d724 - Sigstore transparency entry: 2096484579
- Sigstore integration time:
-
Permalink:
RavindraTirlangi/Klyro@9b9a17154bc27cbaddbbe346b844e2e82fc2d4fa -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/RavindraTirlangi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b9a17154bc27cbaddbbe346b844e2e82fc2d4fa -
Trigger Event:
push
-
Statement type: