Skip to main content

IllusionAgent

PyPI Python Platform GitHub

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: 35 built-in tools, 48 slash commands, 7 specialized sub-agents, 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 - 7 built-in specialized Agents
  • 🛠️ Rich Toolset - 35 built-in tools (31 base + 4 channel) + MCP dynamic tool extension
  • ⌨️ 48 Slash Commands - Session, config, project, scheduling
  • 🌐 Web UI Interface - Browser-based chat interface with illusion web, independently usable alongside the terminal
  • 🌍 Bilingual Interface - Chinese/English auto-switch via ui_language setting
  • 📝 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

Interface Preview

Welcome screen & rich text rendering

IllusionAgent welcome screen IllusionAgent rich text rendering

🚀 Quick Start

Requirements

  • Python >= 3.10
  • Supports Windows, macOS, Linux
  • Node.js 18+ (only for source install; pip install illusion-agent does 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 .

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 -p greedily.
  • 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: 0 success, 1 error, 2 waiting 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!


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

illusion_agent-0.3.4.tar.gz (16.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

illusion_agent-0.3.4-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file illusion_agent-0.3.4.tar.gz.

File metadata

  • Download URL: illusion_agent-0.3.4.tar.gz
  • Upload date:
  • Size: 16.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for illusion_agent-0.3.4.tar.gz
Algorithm Hash digest
SHA256 ad801f052da7f8995f2458bbcecfdbaaa75b357e85505a73a4bd0b9f148c2738
MD5 6b5c5aea4c814d88b38e363f3edc15a3
BLAKE2b-256 958db613af57e7fbbc9429233a71a27fec3b454c4a764341362322708310d461

See more details on using hashes here.

Provenance

The following attestation bundles were made for illusion_agent-0.3.4.tar.gz:

Publisher: publish.yml on YunTaiHua/illusion-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file illusion_agent-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: illusion_agent-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for illusion_agent-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ebaa1bfa707a6517df05e6810f2879ecd7eeceb84153b2c43748d1946a3771ec
MD5 903813d26681f2752bff6044908c6096
BLAKE2b-256 cc73b1f1db9f0d8c54bfd2b1776b1feea206d3852245896f4af80727fcd78661

See more details on using hashes here.

Provenance

The following attestation bundles were made for illusion_agent-0.3.4-py3-none-any.whl:

Publisher: publish.yml on YunTaiHua/illusion-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.14

2 files

0.4.13

2 files

0.4.12

2 files

0.4.11

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.5

2 files

This release

0.3.4 This release

2 files

0.3.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page