Skip to content

Amnibro/Amni-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ Amni-Code

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.

Ko-fi License Rust Version


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.


What is Amni-Code?

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.

Core Features

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

Quick Start

Option A β€” One-Click Installer (Windows, zero setup required)

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.bat

Option B β€” Build from Source (all platforms)

git clone https://github.com/anmire/Amni-Code.git
cd Amni-Code
cargo build --release
./target/release/amni        # Linux/macOS
target\release\amni.exe      # Windows

Option C β€” Just Run (developer mode)

.\run.bat   # Windows β€” auto-pulls, builds if changed, launches

Global CLI

After install.bat, the amni command works anywhere:

cd my-project
amni

Keyboard Shortcuts

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)

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  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β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Configuration

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

API Keys

# .env file or environment variables
XAI_API_KEY=xai-...          # xAI Grok (default)
OPENAI_API_KEY=sk-...        # OpenAI
ANTHROPIC_API_KEY=sk-ant-... # Anthropic

Per-Project Instructions

Drop any of these in your project root β€” they're automatically loaded into the agent's system prompt:

  • .amni-instructions.md
  • .github/copilot-instructions.md
  • AGENTS.md

Hardware

GPU Framework Notes
NVIDIA CUDA 12.0+ Full acceleration
AMD HIP/ROCm 7.1+ 7000-series supported
CPU β€” 16GB+ RAM recommended for local models

Requirements

  • OS: Windows 10/11, Linux, macOS (build from source)
  • RAM: 8GB min, 16GB+ for local models
  • Rust: 1.70+ (auto-installed by scripts)

Project Structure

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

Contributing

  1. Fork β†’ branch β†’ PR. All contributions welcome.
  2. Ideas: Linux/macOS installers, multimodal support, Git integration, diagnostics panel, more providers.

Support

Support on Ko-fi

License

MIT β€” see LICENSE.

About

Open-source AI coding agent built in Rust. Works with xAI Grok, OpenAI, Anthropic, Ollama, or any OpenAI-compatible server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages