Skip to main content

Klyro is AI pair programming in your terminal

Project description

🧠 Klyro

AI Pair Programming in Your Terminal

PyPI Python License


Klyro lets you pair program with LLMs directly from your terminal. Start a new project or work on your existing codebase with an AI that can read, understand, and edit your code.

⚡ Quick Install

pip install klyro

Or install from source:

git clone https://github.com/RavindraTirlangi/Klyro.git
cd Klyro
pip install -e .

🚀 Usage

# Start Klyro in your project directory
klyro

# Use a specific model
klyro --model gpt-4o

# Use a local Ollama model (auto-detected if running)
klyro --model ollama/llama3.2

✨ Features

Smart Model Detection

Klyro auto-detects your environment:

  • Local Ollama running? Uses it automatically — no API key needed.
  • Cloud API keys set? Picks the best available model.
  • No keys at all? Offers one-click OpenRouter setup.

Slash Commands

Command Description
/stats Show model name, last message cost, and total session cost
/web <url> Fetch a web page and add its content to the chat context
/export [filename] Export chat history to a markdown file
/tokens Report token usage for the current chat context
/add <file> Add a file to the chat
/drop <file> Remove a file from the chat
/diff Show the diff of changes made
/undo Undo the last change
/help Show all available commands

Code Editing

  • Whole file and diff-based editing modes
  • Automatic linting after every edit
  • Built-in git integration with auto-commits

Repository Intelligence

  • Builds a repo map using tree-sitter AST analysis
  • Understands your codebase structure and relationships
  • Smart context management to stay within token limits

🔧 Configuration

Create a .klyro.conf.yml in your project root:

model: ollama/llama3.2
dark-mode: true
auto-commits: true

Or use environment variables:

export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-ant-...
export OLLAMA_API_BASE=http://localhost:11434

📦 Publishing

This project uses GitHub Actions for automated PyPI publishing. To release:

git tag v1.0.0
git push origin v1.0.0

The workflow will automatically build and publish to PyPI.

📄 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

klyro-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

klyro-0.1.0-py3-none-any.whl (382.9 kB view details)

Uploaded Python 3

File details

Details for the file klyro-0.1.0.tar.gz.

File metadata

  • Download URL: klyro-0.1.0.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

Hashes for klyro-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e614327e708f76fde2fddcf60a5008d34ffd16755e3d4477c010f890f77174d
MD5 28fdcf8aa5e76575a314011f613a4bb2
BLAKE2b-256 c1ffa8d2c92cba9efd147316837804b4883712d5c56e68a732579e22518c345b

See more details on using hashes here.

Provenance

The following attestation bundles were made for klyro-0.1.0.tar.gz:

Publisher: publish.yml on RavindraTirlangi/Klyro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file klyro-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: klyro-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 382.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for klyro-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3dfdb5142d2edc4d33732f481f54107b8ec0a8af4c7b5ef3b960897fb8303f
MD5 bc9746c1ba147d6b5fe079c2029cddc2
BLAKE2b-256 5ef2976971a7da09771f841156f11efc28988631719bc4ff79b227dfe44d411d

See more details on using hashes here.

Provenance

The following attestation bundles were made for klyro-0.1.0-py3-none-any.whl:

Publisher: publish.yml on RavindraTirlangi/Klyro

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page