Skip to main content

AI-powered coding assistant in your terminal

Project description

Lora Code

AI-powered coding assistant in your terminal

InstallationQuick StartFeaturesDocumentationContributing


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

  1. 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
  1. Start Lora Code:
loracode
  1. 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:

  1. Command line arguments
  2. Environment variables
  3. 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


Made with ❤️ by Lora Technologies

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

loracode-0.1.1.tar.gz (149.7 kB view details)

Uploaded Source

Built Distribution

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

loracode-0.1.1-py3-none-any.whl (164.3 kB view details)

Uploaded Python 3

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

Hashes for loracode-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc7b089a12ebab28c89b7bd5987e7c8e66023d38df9d0c26658ff6b14c4efa6b
MD5 55b0a92135056229d5d903ef1f0b2225
BLAKE2b-256 645a9e564b5230a54582b71faa7b1cc46d9300b05c0c560700ca5feb5429745f

See more details on using hashes here.

Provenance

The following attestation bundles were made for loracode-0.1.1.tar.gz:

Publisher: publish.yml on Lora-Technologies/LoraCode

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

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

Hashes for loracode-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 099f0419b64023624de9745b1d2531a9c4b6f724159e208b4471461b157a23b9
MD5 fe6e244dc568f19c3f73863ed4a36c7d
BLAKE2b-256 4f1da7abe084fc45af8ccfec02256749d36806e0cd87c6042f28b96a51fcc896

See more details on using hashes here.

Provenance

The following attestation bundles were made for loracode-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Lora-Technologies/LoraCode

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