IllusionCode
AI-Powered Command-Line Programming Assistant
The best of many worlds, unified into one intelligent coding tool
中文版 | English
📖 Introduction
IllusionCode is an open-source AI-powered command-line programming assistant that brings together the best ideas from many projects and adds its own innovations. It inherits Claude Code's complete prompt system and tool architecture, draws inspiration from OpenHarness's Python architecture design, uses the same Cron task scheduling architecture as OpenClaw, ports core infrastructure modules (async queue, stderr fd-level redirect, cross-platform SIGINT handler) from kimi-cli, references channel connection/rendering patterns (Feishu WS, WeChat iLink, QQ Bot gateway) from hermes-agent, and implements flexible proxy routing through cc-switch. On this foundation, IllusionCode provides deep Windows optimization, full bilingual (Chinese/English) interface support, more comprehensive Markdown terminal rendering than comparable projects, and a browser-based Web UI for a modern chat experience.
Core Features
- 🌐 Web UI Interface - Browser-based chat interface with
illusion web, independently usable alongside the terminal - 🪟 Deep Windows Optimization - Auto-detect Git, PowerShell support
- 🖥️ Zero Terminal Flicker - Stable rendering based on Ink Static component
- 🌍 Bilingual Interface - Chinese/English auto-switch via
ui_languagesetting - 📝 Comprehensive Markdown Rendering - Tables, code blocks, rich text
- 🤖 Multi AI Provider Support - Anthropic, OpenAI, Copilot, Codex, and any compatible endpoint
- 🛠️ Rich Toolset - 42 built-in tools (29 base + 13 channel) + MCP dynamic tool extension
- ⌨️ 48 Slash Commands - Session, config, project, scheduling
- 🧠 Multi-Agent Collaboration - 7 built-in specialized Agents
- 🔌 Flexible Extension System - Plugins, hooks, skills, MCP servers
- 🔐 Comprehensive Permission Control - Three modes + fine-grained rules
- 🎯 Reasoning Effort Control - low/medium/high/xhigh/max levels
Interface Preview
Welcome screen & rich text rendering
🚀 Quick Start
Requirements
- Python >= 3.10
- Supports Windows, macOS, Linux
- Node.js 18+ (only for source install;
pip install illusion-codedoes not require Node.js)
Installation
# Recommended: pip install from PyPI (no Node.js required)
pip install illusion-code
# Alternative: from source (requires Node.js 18+)
git clone https://github.com/YunTaiHua/illusion-code.git
cd illusion-code
pip install .
Basic Usage
# First-time: configure authentication
illusion auth login
# Start interactive session (recommended)
illusion
# Launch Web UI in browser
illusion web
# Non-interactive print mode
illusion -p "Analyze the structure of this project"
Print Mode Notes
-p / --print runs a single non-interactive request and exits:
# Read-only analysis (safe, default permission mode)
illusion -p "Analyze the structure of this project"
# Allow file writes / command execution without interactive approval
illusion --permission-mode full_auto -p "Fix the failing tests"
# Resume after the process exits with code 2 (pending question/permission/plan)
illusion -c -p "Y"
# Specify model and effort for print mode
illusion -m env_1.model_2 -e high -p "Refactor this module"
Important details:
- The prompt value must be the last argument because typer parses
-pgreedily. - In default permission mode, mutating tools exit with code 2 and persist a pending approval; answer it with
illusion -c -p "Y","F", or"N". - Exit codes:
0success,1error,2waiting for cross-turn input.
Interface Notes
The terminal (illusion) and Web UI (illusion web) are two independent, first-class interfaces. They share the same backend runtime, settings, and session storage — use whichever fits your workflow.
📚 Detailed Documentation
| Topic | English | 中文 |
|---|---|---|
| Introduction | docs/en/introduction.md | docs/zh-CN/introduction.md |
| Getting Started | docs/en/getting-started.md | docs/zh-CN/getting-started.md |
| Commands | docs/en/commands.md | docs/zh-CN/commands.md |
| Settings & Credentials | docs/en/settings.md | docs/zh-CN/settings.md |
| Project Files & Memory | docs/en/project-files.md | docs/zh-CN/project-files.md |
| Extensions (MCP, Plugins, Skills, Hooks) | docs/en/extensions.md | docs/zh-CN/extensions.md |
| Architecture | docs/en/architecture.md | docs/zh-CN/architecture.md |
| Messaging Channels | docs/en/channels.md | docs/zh-CN/channels.md |
📄 License
This project is open-sourced under the MIT license.
🤝 Contributing
Welcome to submit Issues and Pull Requests!
Metadata
Release files for illusion-code 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| illusion_code-0.3.2.tar.gz | 11.7 MB | With provenance | Details for illusion_code-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| illusion_code-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for illusion_code-0.3.2-py3-none-any.whl |
Total release size: 13.2 MB
Release files / illusion_code-0.3.2.tar.gz
| Download URL | illusion_code-0.3.2.tar.gz |
|---|---|
| Size | 11.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
025c868e2dffe900145e3395e1936fdf92bb12df5ef65bc05e842f407905bcaf
|
|
BLAKE2b-256 checksum How to use checksums |
9a7b46cde781c4dd10a67c14ab7e8b8be91e778933f5183f45608c7e95a7e6bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logRelease files / illusion_code-0.3.2-py3-none-any.whl
| Download URL | illusion_code-0.3.2-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eca6f9eba78da6dd5890c216b734d0665da06dc5db8892fea060000b3f70b2c0
|
|
BLAKE2b-256 checksum How to use checksums |
b507d367299ca694eda6389c6a9fa8564f4d2f99f7ba767a38e36f344910bff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logSecurity for illusion-code 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for illusion_code-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.