| Crates.io | oli-server |
| lib.rs | oli-server |
| version | 0.1.4-post1 |
| created_at | 2025-04-17 20:45:11.664483+00 |
| updated_at | 2025-04-17 21:50:42.570138+00 |
| description | A simple, blazingly fast AI coding assistant server |
| homepage | |
| repository | https://github.com/amrit110/oli |
| max_upload_size | |
| id | 1638422 |
| size | 867,184 |
oli is an open-source alternative to Claude Code with powerful agentic capabilities for coding assistance. Features:
⚠️ This project is in a very early stage and is prone to bugs and issues! Please post your issues as you encounter them.
npm install -g oli-tui
This will install the latest version from npm and handle all dependencies automatically.
brew install amrit110/oli/oli
Homebrew will download and install the latest version directly.
# Clone the repository
git clone https://github.com/amrit110/oli
cd oli
# Build both backend and frontend
./build.sh
# Run the hybrid application
./run.sh
# Install Python dependencies (for pre-commit)
python -m pip install uv
uv venv
uv pip install -e .
# Install pre-commit hooks
pre-commit install
# Run Rust linting and formatting
cargo fmt
cargo clippy
# Run TypeScript checks in the UI directory
cd ui
npm run lint
npm run format
For API-based features, set up your environment variables:
# Create a .env file in the project root
echo "ANTHROPIC_API_KEY=your_key_here" > .env
# OR
echo "OPENAI_API_KEY=your_key_here" > .env
Claude 3.7 Sonnet provides the most reliable and advanced agent capabilities:
This implementation includes:
oli supports local models through Ollama:
ollama serve
# Examples of compatible models
ollama pull qwen2.5-coder:14b
ollama pull qwen2.5-coder:3b
ollama pull llama3:8b
Note: For best results with tool use and agent capabilities, use models like Qwen 2.5 Coder which support function calling.
./run.sh
Select a model:
Make your coding query in the chat interface:
The application uses a hybrid architecture:
┌───────────────┐ ┌───────────────┐
│ React + Ink UI│◄───────┤ Rust Backend │
│ │ JSON │ │
│ - UI │ RPC │ - Agent │
│ - Task Display│ │ - Tool Exec │
│ - Loading │ │ - Code Parse │
└───────────────┘ └───────────────┘
Here are some example queries to try:
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.