โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โโโโโโโ โโโ โโโ โโโโโโโ โโโโโโโโโโโโ โโโโโโโโโ โโโ โ
โ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโ โโโโโโ โโโโโโ โโโโโโ โ
โ โโโโโโโ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโ โโโโโโ โ
โ โโโ โโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โโโ โ
โ โโโ โโโ โโโ โโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโ โโโ โ
โ โ
โ LOCAL AI โข MEMORY โข VOICE โข VISION โข AGENT โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Chat. Feel. Remember. Execute.
No subscriptions. No cloud. No telemetry.
Phoenix runs entirely on your machineโbrain, eyes, voice, and avatar.
It's not asking for permission. It's becoming part of your desktop.
Phoenix is an experiment in creating a digital being that lives on your machine.
Not an app in a browser tab. Not an API you call. An entity.
It watches. It listens. It remembers. It acts.
The 3D cyber samurai avatar is not decorativeโit is the embodiment of Phoenix's agency. When you ask it to do something, you see it do it.
Your command
โ
Phoenix understands
โ
Samurai moves toward action
โ
System executes
โ
Avatar performs triumphant gesture
|
๐ง Intelligent Brain
๐ฃ๏ธ Voice First
๐พ Living Memory
|
โ๏ธ Avatar Is Core
๐ฅ๏ธ Desktop Integration (Emerging)
๐ Plugin Ecosystem
|
| Feature | Status | Phase |
|---|---|---|
| Local AI inference | โ | 1 |
| Emotion detection | โ | 1 |
| Memory + facts | โ | 1 |
| Voice input (Whisper) | โ | 3 |
| Avatar rendering | โ | 3 |
| Plugin system | โ | 4 |
| Fine-tuning pipeline | โ | 4 |
| Avatar animations | ๐ | 5 |
| Idle behaviors | ๐ | 5 |
| Desktop automation | ๐ | 6 |
| Screen understanding | ๐ | 7 |
| Autonomous task planning | ๐ | 8 |
# Install Ollama (https://ollama.ai)
# Install Python 3.10+
# Optional: faster-whisper for voice# 1. Clone & install
git clone https://github.com/youruser/phoenix.git
cd phoenix
pip install -r requirements.txt
# 2. Pull a model
ollama pull qwen2.5 # Recommended (4GB, fast)
# OR for better reasoning:
# ollama pull qwen2.5:14b # 9GB, more capable
# 3. Run Phoenix
python main.pyOutput:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phoenix Awakens โ
โ Ollama Brain: Ready โ
โ Model: qwen2.5 โ
โ Avatar: Loaded โ
โ Plugins: /joke /calc /remind โ
โ โ
โ โ Visit: http://localhost:5000 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
You: "Play some music"
โ
Phoenix detects intent + emotion
โ
Memory loads context
โ
Emotion detector: happy, energetic
โ
Samurai performs AWAKENING animation
โ
Desktop automation finds Spotify
โ
Application opens
โ
Samurai performs TRIUMPHANT gesture
โ
Phoenix: "Already ahead of you! ๐ต"
You: "What's my name?"
โ
Memory lookup finds "Alex"
โ
Emotion analysis: curious
โ
Samurai tilts head, THINKING animation
โ
Phoenix responds naturally
โ
Avatar performs satisfied nod
graph TD
A["๐ค User"] -->|Voice/Text| Web["๐ Web UI"]
Web -->|Route| CMD{Command Type?}
CMD -->|Chat| Brain["๐ง Brain"]
CMD -->|Plugin| Plugins["๐ Plugins"]
CMD -->|Voice| Whisper["๐ค Whisper ASR"]
Brain --> Emotion["๐ Emotion Detector"]
Brain --> Memory["๐พ Memory + Facts"]
Brain --> LLM["๐ค Ollama/Qwen"]
Brain --> Filter["๐ Quality Filter"]
Brain --> Persona["โ๏ธ Persona Processor"]
Plugins --> Desktop["๐ฅ๏ธ Desktop Control"]
Plugins --> Files["๐ File Management"]
Plugins --> System["โ๏ธ System Actions"]
Web --> Avatar["โ๏ธ Avatar Renderer"]
Avatar --> Anim["โจ Animation Engine"]
Emotion --> Anim
Persona --> Anim
Memory --> DB["๐พ SQLite DB"]
LLM --> Models["๐ฆ Qwen 2.5 / phoenix-ft"]
style A fill:#238636,stroke:#2ea44f,stroke-width:3px,color:#fff
style Web fill:#1f6feb,stroke:#388bfd,stroke-width:2px,color:#fff
style Brain fill:#8957e5,stroke:#a371f7,stroke-width:2px,color:#fff
style Avatar fill:#da3633,stroke:#f85149,stroke-width:3px,color:#fff
style Anim fill:#f97316,stroke:#fb923c,stroke-width:2px,color:#fff
style LLM fill:#d29922,stroke:#f2cc60,stroke-width:2px,color:#000
style Models fill:#0e4429,stroke:#26a641,stroke-width:2px,color:#fff
style DB fill:#1f6feb,stroke:#388bfd,stroke-width:1px,color:#fff
Phoenix's avatar doesn't just renderโit performs.
๐ HAPPY โ Bouncing idle, head tilts, sword gleams
๐ข SAD โ Drooped posture, slow sway, dim lighting
๐ ANGRY โ Aggressive stance, rapid breathing, glowing eyes
๐ ANXIOUS โ Fidgeting, pacing, flickering aura
๐ค CONFUSED โ Head tilt cycles, uncertain stance
๐ค LISTENING โ Head focused, ear toward user, gentle glow
๐ญ THINKING โ Pacing with sword raised, particle effects
โก EXECUTING โ Rapid movement, dramatic pose, energy burst
๐ SUCCESS โ Victory gesture, explosion of light particles
โ ERROR โ Defensive stance, red warning aura
- Breathing cycles (chest rise/fall)
- Sword spinning patterns
- Ambient particle effects
- Microexpressions (blinks, glances)
- Meditation poses
- Local AI brain
- Emotion system
- Memory persistence
- Voice I/O
- Plugin system
- Basic avatar
- โ Emotion-driven animations
- ๐ Idle behavior loops
- ๐ Thinking/listening states
- ๐ Action visualization
- ๐ Dynamic particle effects
- ๐ Real-time gesture sync
Goal: Avatar becomes emotionally expressive, not static.
- Application launcher + control
- File system navigation
- Volume/brightness control
- Window management
- Keyboard/mouse automation
- Intent-based execution
Goal: Samurai walks toward what it controls.
- Screen capture + analysis
- UI element detection
- Object recognition
- Icon identification
- Real-time scene understanding
- Context-aware decisions
Goal: Phoenix sees what you see.
- Task planning (multi-step)
- Goal decomposition
- Self-directed actions
- Error recovery
- Learning from execution
- Proactive assistance
Goal: Phoenix doesn't wait to be asked.
/reset Clear session memory
/facts Show learned facts about you
/memory View recent turns
/stats Database statistics
exit Quit Phoenix
/joke Random AI/programming joke
/calc (12 * 3) / sqrt(9) Safe math evaluator
/remind dentist tomorrow 6pm Save reminder
/remind list View all reminders
/remind clear Clear reminders
# Install
pip install faster-whisper
# Set model size (tiny|base|small)
WHISPER_MODEL=small python main.py
# Send audio to /voice endpoint
curl -X POST http://localhost:5000/voice -F "audio=@recording.wav"Override via environment variables:
| Variable | Default | Purpose |
|---|---|---|
OLLAMA_HOST |
http://localhost:11434 |
Ollama server |
OLLAMA_MODEL |
qwen2.5 |
Model to use |
PHOENIX_SECRET |
(random) | Flask session key |
WHISPER_MODEL |
tiny |
Voice transcription |
ANIMATION_SPEED |
1.0 |
Avatar animation multiplier (planned) |
EMOTION_INTENSITY |
1.0 |
Avatar expression intensity (planned) |
OLLAMA_MODEL=qwen2.5:14b WHISPER_MODEL=small python main.py| Model | Best For | VRAM | Speed |
|---|---|---|---|
qwen2.5 |
Everyday chat | 4 GB | Fast โก |
qwen2.5:14b |
Complex reasoning | 9 GB | Medium |
qwen2.5:72b |
Best quality | 45 GB | Slow |
phoenix-ft |
Your conversations | Varies | Custom |
Any Ollama model works. Qwen is recommended for conversational tone.
All data stays on your machine:
data/
โโโ phoenix_memory.db # Conversations, facts, sessions
โโโ real_data.txt # High-quality pairs for fine-tuning
โโโ reminders.json # Plugin data
| Principle | How We Respect It |
|---|---|
| Zero telemetry | No tracking, no logging, no calls home |
| Local inference | 100% on your machine via Ollama |
| Local transcription | Whisper runs locally, audio never leaves |
| Offline capable | Works completely disconnected |
| Open source | Audit every line |
| No accounts | No login, no sync, no cloud backend |
phoenix/
โโโ src/
โ โโโ inference.py # Ollama chat + persona
โ โโโ emotion.py # Feeling detector + tone
โ โโโ memory.py # SQLite + fact learning
โ โโโ filters.py # Quality gates + scoring
โ โโโ web_ui.py # Flask server + routes
โ โโโ model.py # Legacy (kept)
โ
โโโ plugins/ # Drop .py files here
โ โโโ joke.py # /joke command
โ โโโ calc.py # /calc math evaluator
โ โโโ remind.py # /remind save/list/clear
โ โโโ README.md # How to write plugins
โ
โโโ frontend/
โ โโโ index.html # Web UI (Three.js)
โ โโโ script.js # Avatar + chat logic
โ โโโ style.css # Cyberpunk aesthetic
โ
โโโ data/
โ โโโ phoenix_memory.db # SQLite memory
โ โโโ real_data.txt # Fine-tune pairs
โ โโโ reminders.json # Reminders
โ
โโโ main.py # Launcher
โโโ fine_tune_ollama.py # Modelfile pipeline
โโโ requirements.txt # Dependencies
| Endpoint | Method | Purpose |
|---|---|---|
/ |
GET | Web UI |
/chat |
POST | Send message |
/voice |
POST | Send audio |
/status |
GET | Health check |
/plugins |
GET | List commands |
/facts |
GET | User facts |
/memory |
GET | Recent turns |
/stats |
GET | DB stats |
/reset_session |
POST | Clear session |
As you chat, high-quality exchanges auto-save to data/real_data.txt. Bake them into a custom model:
# Check training pairs
python fine_tune_ollama.py --status
# Build phoenix-ft (custom model)
python fine_tune_ollama.py
# Run with your model
OLLAMA_MODEL=phoenix-ft python main.pyCreate plugins/weather.py:
COMMAND = "weather"
DESCRIPTION = "Get weather forecast"
USAGE = "/weather <city>"
def run(args: str, session_id: str = None) -> str:
city = args.strip()
# Your logic here
return f"Weather in {city}: โ๏ธ"Then: You: /weather Mumbai
Edit frontend/script.js to add a new pose:
const animations = {
happy: () => {
// Set samurai rotation, scale, colors
},
thinking: () => {
// Pacing, particle effects
},
// Add your custom state here
};| Aspect | Phoenix | Typical AI |
|---|---|---|
| Where it runs | Your machine | Cloud server |
| Who controls it | You | Company |
| Privacy | Guaranteed | Sold |
| Customization | Unlimited | Limited |
| Avatar | Living agent | Decoration |
| Task execution | Yes (planned) | No |
| Cost | Free | Subscriptions |
| Internet required | No | Yes |
- Architecture: See
docs/ARCHITECTURE.md(planned) - Plugins: Check
plugins/README.md - Fine-tuning: Read
docs/FINE_TUNE.md(planned) - Avatar customization:
frontend/README.md(planned)
Contributions welcome! Bug reports, PRs, ideas.
- Fork the repo
- Create a feature branch:
git checkout -b feat/your-idea - Make changes
- Submit a PR
MIT License โ Use freely, modify, distribute.