Your own AI coding agent. One binary. Any LLM. Full IDE.
Open-source, self-hosted, built in Rust β works with xAI, OpenAI, Anthropic, Ollama, or any local model.
Think Cursor / Claude Code / GitHub Copilot β but open-source, self-hosted, and zero dependencies.
One Rust binary. No Electron, no Docker, no Node. Just run it.
Amni-Code is a self-hosted AI coding agent with a full embedded IDE. Give an LLM real tools to read, write, edit files, run commands, search the web, and iterate on your code β up to 15 autonomous iterations per request.
| Feature | Description |
|---|---|
| π Agentic Tool Loop | 12 tools β read/write/edit files, run commands, search files, web fetch/search, persistent memory |
| π§ Any LLM Provider | xAI Grok, OpenAI, Anthropic, Ollama, or any OpenAI-compatible endpoint |
| π¦ Single Binary | One Rust binary. No runtime deps. Just cargo build and go |
| π¨ Full IDE | Monaco editor with multi-file tabs, breadcrumbs, syntax highlighting for 30+ languages |
| π― Command Palette | Ctrl+Shift+P β fuzzy search 16 commands, VS Code-style |
| π Quick Open | Ctrl+P β instant fuzzy file picker |
| π Live Diff Panel | See every change the agent makes β accept or undo with one click |
| π Web Tools | Agent can fetch URLs and search the web (SSRF-protected) |
| πΎ Persistent Memory | Agent remembers notes across sessions via memory_read/memory_write |
| π Per-Project Instructions | Drop a .amni-instructions.md in your project β the agent reads it automatically |
| π File Watcher | Sidebar auto-refreshes when files change on disk |
| π 8 Accent Themes | Code (pink), Crypt (blue), Haven (purple), AI (amber), Core (red), Explore (cyan), Calc (orange), Green (mint) β dark & light modes |
| β‘ Status Bar | Language, cursor position, version β just like VS Code |
| π Toast Notifications | Non-intrusive popups for saves, actions, and feedback |
| π Interrupt & Steer | Stop the agent mid-generation or inject context while it's thinking |
| π₯ HuggingFace Downloader | Search and download GGUF models directly from the UI |
| π 10 Languages | EN, ES, FR, DE, JA, ZH, KO, PT, AR, RU β switchable in Settings, RTL support for Arabic |
| πͺ Split Panes | Up to 3 independent agent sessions side-by-side with draggable dividers |
| π¦ GUI Installer | WebGL installer (Rust binary) β zero-dependency install.bat bootstraps everything from scratch |
Download and double-click install.bat. That's it.
install.bat
The script auto-installs (if missing):
- Rust toolchain via
rustup - Git via
winget - WebView2 Runtime (Microsoft Edge component)
Then it compiles and launches the GUI installer β a native window with a WebGL interface that guides you through model selection, PATH setup, and desktop shortcut creation. No Python, no Java, no Node required.
# Or clone first, then run
git clone https://github.com/anmire/Amni-Code.git
cd Amni-Code
install.batgit clone https://github.com/anmire/Amni-Code.git
cd Amni-Code
cargo build --release
./target/release/amni # Linux/macOS
target\release\amni.exe # Windows.\run.bat # Windows β auto-pulls, builds if changed, launchesAfter install.bat, the amni command works anywhere:
cd my-project
amni| Shortcut | Action |
|---|---|
Ctrl+Shift+P |
Command Palette |
Ctrl+P |
Quick Open (file picker) |
Ctrl+S |
Save file (in editor) |
Ctrl+Space |
AI suggestion (in editor) |
Enter |
Send message (in chat) |
Shift+Enter |
New line (in chat) |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Native Window (WebView2/wry) β
β βββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β
β βSidebar β β Chat β β Monaco β β Diff β β
β βExplorer β β + Tools β β Editor β β Panel β β
β β β β β β + Tabs β β β β
β βββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β Status Bar β Language β Ln/Col β v2.2.0 ββ
β βββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β SSE streaming
βββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β Rust Backend (Axum + Tokio) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Agent Loop β up to 15 iterations β β
β β Tools: read/write/edit_file, run_command, β β
β β list_directory, search_files, web_fetch, β β
β β web_search, memory_read, memory_write β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ β
β Per-project instructions Β· File watcher Β· Memory β
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β OpenAI-compatible API
βββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β LLM Provider β
β xAI Β· OpenAI Β· Anthropic Β· Ollama Β· Any local serverβ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Click β Settings in the UI:
| Setting | Description |
|---|---|
| Provider | xAI, OpenAI, Anthropic, Ollama, or custom endpoint |
| Model | Auto-populated from provider |
| API Key | Auto-detected from .env or env vars |
| Working Directory | Where the agent operates |
| Auto-approve | Confirm each action vs. fully autonomous |
# .env file or environment variables
XAI_API_KEY=xai-... # xAI Grok (default)
OPENAI_API_KEY=sk-... # OpenAI
ANTHROPIC_API_KEY=sk-ant-... # AnthropicDrop any of these in your project root β they're automatically loaded into the agent's system prompt:
.amni-instructions.md.github/copilot-instructions.mdAGENTS.md
| GPU | Framework | Notes |
|---|---|---|
| NVIDIA | CUDA 12.0+ | Full acceleration |
| AMD | HIP/ROCm 7.1+ | 7000-series supported |
| CPU | β | 16GB+ RAM recommended for local models |
- OS: Windows 10/11, Linux, macOS (build from source)
- RAM: 8GB min, 16GB+ for local models
- Rust: 1.70+ (auto-installed by scripts)
Amni-Code/
βββ src/main.rs # Rust backend β server, agent loop, 12 tools, LLM routing
βββ static/index.html # Embedded UI β chat, Monaco, diff, i18n, split panes
βββ Cargo.toml # Dependencies
βββ install.bat # Zero-dependency installer β bootstraps Rust/Git/WebView2/GUI
βββ run.bat # Developer launcher β auto-pull, incremental build, launch
βββ installer/ # Rust GUI installer crate (tao+wry+axum, WebGL UI)
β βββ src/main.rs # Axum server + wry window + prereq detection + HF downloads
β βββ static/installer.html # WebGL 5-page install wizard
βββ packaging/
β βββ windows/amni-code.wxs # WiX MSI manifest
β βββ macos/build-dmg.sh # macOS .app + DMG
β βββ linux/build-deb.sh # Linux .deb package
βββ changelog.md # Version history
- Fork β branch β PR. All contributions welcome.
- Ideas: Linux/macOS installers, multimodal support, Git integration, diagnostics panel, more providers.
MIT β see LICENSE.