Stop paying for AI coding assistants. Run them for free, locally, on your own hardware.
Installation β’ Quick Start β’ Features β’ Configuration β’ Contributing
Axion is a powerful, terminal-based AI coding assistant designed to give individuals and teams the power of Claude Code without the subscription fees. It connects natively to local LLMs (via Ollama) or free-tier APIs (like Google Gemini or Groq) to help you write, edit, and understand code in real-time.
| Feature | Description |
|---|---|
| π€ Local-First | Pull and run any model from Ollama (Llama 3, Qwen, DeepSeek) for 100% free, private usage. |
| π οΈ Tool-Equipped | Can read, write, and surgically edit files (edit_file with search-and-replace). |
| π Terminal Power | Execute shell commands directly and capture their output for debugging. |
| π¨ Rich UI | Beautiful markdown rendering, syntax highlighting, and progress indicators. |
| π Safety Built-in | Every destructive operation requires explicit user permission. |
| β‘ Blazing Fast | Optimized for zero-latency streaming on your local GPU. |
Axion isn't just a chat bot; it's an agent that can:
- π Read File: Analyzes existing code to provide context-aware help.
- βοΈ Write File: Generates entire new modules or files from scratch.
- βοΈ Edit File: Performs surgical edits using a specialized search-and-replace algorithm to minimize mistakes.
- π» Run Command: Compiles code, runs tests, or manages your environment.
- π Search Code: Uses lightning-fast search to find exactly what you're looking for.
- π List Directory: Explores your codebase structure automatically.
- Python 3.9 or higher
- Ollama installed and running (for local usage)
# Clone the repository
git clone https://github.com/iam-ssrivastav/axion-cli.git
cd axion-cli
# Install locally
pip install -e .Just type axion anywhere in your terminal to start a session in your current directory.
axionDon't worry about editing YAML files. Use the built-in config commands:
# Set your engine to Ollama
axion config set provider ollama
# Set your model (e.g., Llama 3.1)
axion config set model llama3.1:8b
# Using Gemini? Set your key
export GEMINI_API_KEY="your-key-here"
axion config set provider gemini| Command | Action |
|---|---|
/help |
List all available slash commands |
/config |
View or change your AI settings |
/clear |
Start a fresh conversation context |
/model <name> |
Hot-swap the model mid-conversation |
/exit |
Safely end the session |
We love forks! π΄ Whether it's adding a new provider like Anthropic or building a tool to deploy to AWS, we welcome all PRs.
Check out our Contributing Guide to get started.
If Axion helps you code faster and save money, please star the repo and share it with your friends!