AI-powered Python project and code generation assistant for multiple platform terminals.
Project description
ILLUSION: Agentic Programming Assistant
ILLUSION is a CLI-based agentic programming assistant is meant to mainly help Termux users expericence no hands programmming to create and manage projects using AI-powered code generation via OpenRouter.
Features
- Flexible model support: Use any model available on OpenRouter
- Project-based workflow: Create and manage multiple projects
- Full project context awareness: LLM sees current file contents for precise updates
- Memory management: Tracks project history without hallucinations
- Cross-platform: Works on Termux, Linux, and Windows
- Git integration: Automatic version control for projects
- Sensible file organization: Projects created in current directory
Installation
Fast (Recommended):
- Run
pip install illusionto install Illusion as a python pacakge
OR (WHEN source files get released on my official github page)
- Clone or download this repository
- Install dependencies:
pip install openai rich - Create
config.pywith your OpenRouter API key and preferred model
Configuration
For Fast Method (Recomended):
- Run
illusion configin your terminal - Paste your OpenRouter API key
- Paste your choise of modle e.g. "anthropic/claude-3-haiku"
- Leave Provider as OpenRouter
OR (WHEN source files get released on my official github page)
Create a config.py file in the same directory as illusion.py:
# ILLUSION Configuration File
# Paste your OpenRouter API key here
OPENROUTER_API_KEY = "your-api-key-here"
# Choose the model you want to use (e.g., "deepseek/deepseek-r1:free", "anthropic/claude-3-haiku", etc.)
MODEL = "deepseek/deepseek-r1:free"
# LLM Provider (currently only openrouter is supported)
LLM_PROVIDER = "openrouter"
Usage
For Fast Method (Recomended):
- Run
illusionin your terminal - ensure configuration file is set
OR (WHEN source files get released on my official github page):
Run the application:
python illusion.py
Commands
np <project_name> e.g. np my_project: Create a new projectop <project_name>: Open an existing projectconfig OR illusion config: View current configurationillusion: Enter chat interface for the active projecthelp: Show help menuexit: Exit the application
In Chat Interface
Describe what you want to build, and ILLUSION will generate the code. For example:
- "Create a simple HTML page with a button"
- "Add a Python script to calculate fibonacci numbers"
- "Make the button change color when clicked"
ILLUSION will create files in the src/ directory and can execute Python and shell scripts with user approval ofcourse.
Project Structure
Projects are created in the current working directory:
my_project/
├── .illusion/
│ ├── chat_history.json
│ └── vector.db
├── src/
│ └── (generated files)
├── README.md
├── .gitignore
└── .git/
Cross-Platform Notes
- On Windows, projects are saved in
Users/<user_name>/Illusionspath - On Linux or Termux, projects are saved in
~Illusionsat home directory
OR (WHEN source files get released on my official github page)
- On Windows, uses
pythoninstead ofpython3 - On Windows, shell scripts use
cmdinstead ofbash - Logs are written to
%TEMP%\illusion.logon Windows,/tmp/illusion.logon Unix-like systems
Requirements
- Python 3.6+
- OpenRouter API key
- Git (optional, for version control)
- Termux
proot-distroif you are using Termuxlogin debianor any other distro of your choise (Recommeneded to allow quick and easy installation of PC native pacakages like OpenAI wrapper) - Internet connection for API calls
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file illusion_cli-1.0.0.tar.gz.
File metadata
- Download URL: illusion_cli-1.0.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
119fbf6f19fc1f90c28210d8dc15d619a387ddb577ad290f164cff3fdcc19da6
|
|
| MD5 |
e8119c53c3a7b5252ebe229c452b50dd
|
|
| BLAKE2b-256 |
b723396f31ed22ae4659a5cc713f4ef2826375cb9c133663e4e3d03778290d0b
|
File details
Details for the file illusion_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: illusion_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdbb1db408fbb25cf11541f4b02ae0454fd0809f36f8fc0688b718771e7f9eda
|
|
| MD5 |
f85282300cc7c4850b9dd2b2b2208051
|
|
| BLAKE2b-256 |
843bf40d04645148c799678c9d3c06b8ae6bfeb2197ee58a35731fb6082f6236
|