AI-powered coding assistant in your terminal
Project description
Lora Code
AI-powered coding assistant in your terminal
Installation • Quick Start • Features • Documentation • Contributing
Lora Code is an AI-powered command-line coding assistant that helps you write, edit, and understand code directly from your terminal. It integrates seamlessly with your development workflow and supports multiple AI models through the Lora Technologies API.
Features
- 🤖 AI-Powered Coding - Get intelligent code suggestions, refactoring help, and explanations
- 💻 Terminal-First - Works entirely in your terminal, no IDE required
- 🔄 Git Integration - Automatically tracks changes and creates meaningful commits
- 📁 Multi-File Support - Edit multiple files in a single session
- 🌐 Multiple Languages - Supports Python, JavaScript, TypeScript, and many more
- 🎨 Syntax Highlighting - Beautiful code display with customizable themes
- 🔒 Secure - Your code stays local, only prompts are sent to the API
Installation
Prerequisites
- Python 3.10 or higher
- Git (optional, but recommended)
Install via pip
pip install loracode
Install from source
git clone https://github.com/Lora-Technologies/loracode.git
cd loracode
pip install -e .
Quick Start
- Set your API key:
export LORA_CODE_API_KEY="your-api-key"
Or create a .env file in your project directory:
LORA_CODE_API_KEY=your-api-key
- Start Lora Code:
loracode
- Add files to work with:
loracode myfile.py another_file.js
Usage
Basic Commands
# Start a new session
loracode
# Work with specific files
loracode src/main.py src/utils.py
# Use a specific model
loracode --model gpt-4
# Enable dark mode
loracode --dark-mode
# Get help
loracode --help
In-Session Commands
Once inside Lora Code, you can use these commands:
| Command | Description |
|---|---|
/add <file> |
Add a file to the session |
/drop <file> |
Remove a file from the session |
/clear |
Clear the conversation history |
/diff |
Show pending changes |
/commit |
Commit changes to git |
/help |
Show all available commands |
/quit |
Exit Lora Code |
Configuration
Lora Code can be configured via:
- Command line arguments
- Environment variables
- Configuration file (
.loracode.conf.yml)
Configuration File Example
Create .loracode.conf.yml in your project root or home directory:
# Model settings
model: gpt-4
# UI settings
dark-mode: true
pretty: true
# Git settings
auto-commits: true
dirty-commits: false
# Editor settings
vim: false
Environment Variables
| Variable | Description |
|---|---|
LORA_CODE_API_KEY |
Your Lora Code API key |
LORA_CODE_API_BASE |
Custom API base URL (optional) |
Requirements
Core dependencies:
- Python >= 3.10
- GitPython
- rich
- prompt_toolkit
- litellm
See requirements for the full list.
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
# Clone the repository
git clone https://github.com/Lora-Technologies/loracode.git
cd loracode
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Support
- 📧 Email: support@loratech.dev
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Made with ❤️ by Lora Technologies
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 loracode-0.1.1.tar.gz.
File metadata
- Download URL: loracode-0.1.1.tar.gz
- Upload date:
- Size: 149.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc7b089a12ebab28c89b7bd5987e7c8e66023d38df9d0c26658ff6b14c4efa6b
|
|
| MD5 |
55b0a92135056229d5d903ef1f0b2225
|
|
| BLAKE2b-256 |
645a9e564b5230a54582b71faa7b1cc46d9300b05c0c560700ca5feb5429745f
|
Provenance
The following attestation bundles were made for loracode-0.1.1.tar.gz:
Publisher:
publish.yml on Lora-Technologies/LoraCode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loracode-0.1.1.tar.gz -
Subject digest:
fc7b089a12ebab28c89b7bd5987e7c8e66023d38df9d0c26658ff6b14c4efa6b - Sigstore transparency entry: 790781205
- Sigstore integration time:
-
Permalink:
Lora-Technologies/LoraCode@df54d1a9bf4bd6f159439fdb5c82e316a8804b0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Lora-Technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@df54d1a9bf4bd6f159439fdb5c82e316a8804b0d -
Trigger Event:
release
-
Statement type:
File details
Details for the file loracode-0.1.1-py3-none-any.whl.
File metadata
- Download URL: loracode-0.1.1-py3-none-any.whl
- Upload date:
- Size: 164.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099f0419b64023624de9745b1d2531a9c4b6f724159e208b4471461b157a23b9
|
|
| MD5 |
fe6e244dc568f19c3f73863ed4a36c7d
|
|
| BLAKE2b-256 |
4f1da7abe084fc45af8ccfec02256749d36806e0cd87c6042f28b96a51fcc896
|
Provenance
The following attestation bundles were made for loracode-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Lora-Technologies/LoraCode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
loracode-0.1.1-py3-none-any.whl -
Subject digest:
099f0419b64023624de9745b1d2531a9c4b6f724159e208b4471461b157a23b9 - Sigstore transparency entry: 790781209
- Sigstore integration time:
-
Permalink:
Lora-Technologies/LoraCode@df54d1a9bf4bd6f159439fdb5c82e316a8804b0d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Lora-Technologies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@df54d1a9bf4bd6f159439fdb5c82e316a8804b0d -
Trigger Event:
release
-
Statement type: