IllusionAgent
Where fantasy meets functionality. The best of many worlds, refined into one intelligent agent.
中文版 | English
📖 Introduction
IllusionAgent is an open-source AI agent platform. It unifies a multi-provider LLM gateway, a bilingual (Chinese/English) CLI, a browser-based Web UI, and a flexible extension ecosystem into a single intelligent agent — at home on Windows, macOS, and Linux.
Whether you prefer the discipline of the terminal or the ease of the browser, IllusionAgent resonates with your workflow: a rich built-in toolset, specialized sub-agents, two compaction methods, MCP server support, hooks, plugins, and a cron scheduler for unattended automation — spanning Feishu, WeChat, and QQ.
Standing on the shoulders of giants — Claude Code prompts, OpenHarness architecture, OpenClaw scheduling, kimi-cli infrastructure, hermes-agent channels, cc-switch routing.
Core Features
- 🤖 Multi AI Provider Support - Anthropic, OpenAI, Copilot, Codex, and any compatible endpoint
- 🧠 Multi-Agent Collaboration - Built-in specialized agents (general-purpose, explore, verification)
- 🛠️ Rich Toolset - Full base + channel toolset + MCP dynamic tool extension
- 📦 Context Compaction - Microcompact (clear old tool results) + full compaction (LLM summary), auto-triggered as context fills
- 🌐 Web UI Interface - Browser-based chat interface with
illusion web, independently usable alongside the terminal - 🌍 Bilingual Interface - Chinese/English auto-switch via
ui_languagesetting - 📝 Comprehensive Markdown Rendering - Tables, code blocks, rich text
- 🔌 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
- 🪟 Deep Windows Optimization - Auto-detect Git, PowerShell support
- 🖥️ Zero Terminal Flicker - Stable rendering based on Ink Static component
- 📦 Desktop Edition - Electron shell with bundled Python/Node.js, installers for Windows/macOS/Linux, zero environment setup, in-app auto-update
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-agentdoes not require Node.js)
Installation
# Recommended: pip install from PyPI (no Node.js required)
pip install illusion-agent
# Alternative: from source (requires Node.js 18+)
git clone https://github.com/YunTaiHua/illusion-agent.git
cd illusion-agent
pip install .
Desktop Edition
Prefer a desktop app without installing Python or Node.js? Download the installer for your platform — it bundles everything, zero environment setup:
| Platform | Download |
|---|---|
| Windows | IllusionAgent-Setup-<version>.exe (NSIS installer) |
| macOS | IllusionAgent-<version>-arm64.dmg |
| Linux | IllusionAgent-<version>-amd64.deb or IllusionAgent-<version>-x86_64.AppImage |
👉 Download from GitHub Release
The desktop edition bundles Python 3.12 and Node.js 24 runtimes internally. See Desktop Edition docs for details.
Basic Usage
# First-time: configure authentication and working directory
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"
# Set or update working directory
illusion set "E:\Projects\my-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 |
| Goal (Auto-Continuation) | docs/en/goal.md | docs/zh-CN/goal.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 |
| Web UI Security | docs/en/security.md | docs/zh-CN/security.md |
| Token Metering & Compaction | docs/en/token-metering.md | docs/zh-CN/token-metering.md |
| Messaging Channels | docs/en/channels.md | docs/zh-CN/channels.md |
| @ Mentions (Skills / Sessions / Files) | docs/en/mentions.md | docs/zh-CN/mentions.md |
| Desktop Edition | docs/en/desktop.md | docs/zh-CN/desktop.md |
📄 License
This project is open-sourced under the MIT license.
🤝 Contributing
Welcome to submit Issues and Pull Requests!
Metadata
Release files for illusion-agent 0.4.14
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_agent-0.4.14.tar.gz | 18.3 MB | With provenance | Details for illusion_agent-0.4.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| illusion_agent-0.4.14-py3-none-any.whl | Python 3 | none | any | Details for illusion_agent-0.4.14-py3-none-any.whl |
Total release size: 21.7 MB
Release files / illusion_agent-0.4.14.tar.gz
| Download URL | illusion_agent-0.4.14.tar.gz |
|---|---|
| Size | 18.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
029a32e500c9ae1701ceeb1aae92cebc6dd7dee4f4607e23f0add13066e57211
|
|
BLAKE2b-256 checksum How to use checksums |
3ce54e359396f34122c7cc6f2ed8f3eefb850a46a97ed0a7d64f1cafb003cd5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 14, 2026.
Transparency logRelease files / illusion_agent-0.4.14-py3-none-any.whl
| Download URL | illusion_agent-0.4.14-py3-none-any.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59b6e51dd0d91d810e95527f9184db33e7a3005e43c7d49b7f03f6270d11da7f
|
|
BLAKE2b-256 checksum How to use checksums |
ce6d4bc4cf9326eb7797f84854339179c0ec187f6e81d00cda241997b7d72e4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Sep 14, 2026.
Transparency logSecurity for illusion-agent 0.4.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for illusion_agent-0.4.14.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 Sep 14, 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.