Personal AI Operating System โ built on Claude Code Max
A self-hosted, multi-channel personal AI that knows you deeply, learns autonomously, and runs 24/7 โ all without per-message API costs.
๐ง Claude Opus 4.7 (1M context) via Claude Code Max โ $0 per message
๐ค Knows you deeply 600+ word personality profile, auto-extracted
๐ญ Self-improving Reflexion loop nightly โ learns from mistakes
๐๏ธ 8-perspective Council Multi-angle deliberation in 1 LLM call
๐ก Multi-channel Telegram + Web + CLI (voice next)
๐ MCP-native Custom + official MCP servers
๐ก๏ธ Trust gates 4-level safety (auto / approve / confirm / block)
๐ 24/7 daemon systemd auto-restart + watchdog self-heal
๐ Pattern detection Insight Layer finds behaviors you don't notice
๐ฏ Goal tracking Long-term life goals with progress
๐ Persistent memory SQLite + auto fact-extraction + dedup
INTERFACE Telegram | Web UI | CLI | (Voice future)
โ
HARNESS Tier 0/1 prompts ยท Smart routing ยท Importance gate
โ
BRAIN โ
claude -p subprocess (Max plan, $0 extra)
โ
MEMORY SQLite + FTS5 search ยท Personality profile ยท Goals ยท Reflexion lessons
โ
ACTION MCP servers (filesystem ยท memory ยท time ยท custom)
โ
DEFENSE Watchdog ยท Trust gates ยท Auto-restart ยท Audit trails
myjarvis/
โโโ ๐ง brain/ (16 modules โ 2,500+ lines)
โ โโโ spawn_claude.py subprocess wrapper for claude -p
โ โโโ personality.py dynamic system prompt + facts
โ โโโ importance_gate.py Haiku-based 1-5 scoring
โ โโโ router.py tier classification
โ โโโ agent.py pipeline orchestrator
โ โโโ council.py 8-perspective deliberation
โ โโโ reflection.py Reflexion self-critique
โ โโโ insights.py pattern detection
โ โโโ trust.py 4-level safety gates
โ โโโ status.py dashboard
โ โโโ routines.py scheduled tasks
โ โโโ scheduler.py cron-style runner
โ โโโ watchdog.py self-healing health checks
โ โโโ rate_limiter.py Max plan budget tracker
โ โโโ goals.py long-term goals
โ โโโ onboarding.py deep introspection
โ
โโโ ๐พ memory/
โ โโโ store.py SQLite (conversations, facts, sessions)
โ โโโ search.py FTS5 full-text search
โ โโโ export_import.py backup/restore JSON
โ
โโโ ๐ก channels/
โ โโโ cli_chat.py terminal interface
โ โโโ telegram_bot.py Telegram (aiogram)
โ โโโ web_ui.py FastAPI + admin dashboard
โ
โโโ ๐ mcp_servers/
โ โโโ example/ template for custom MCPs
โ โโโ kruai/ business integration (DB-ready)
โ โโโ shopdesc/ SaaS integration (DB-ready)
โ โโโ jarvis_self/ self-introspection
โ
โโโ ๐ฆ deploy/
โ โโโ jarvis.service systemd unit
โ โโโ cloudflared.service public tunnel
โ โโโ README.md server deployment guide
โ
โโโ main.py master orchestrator
- Python 3.11+
- Claude Code Max subscription (already authenticated via
claudeCLI) - Telegram bot token (from @BotFather, optional)
git clone https://github.com/YINDEEINDY/MYJarvis.git
cd MYJarvis
# Install Python deps
pip install -r requirements.txt
# Copy config template
cp config/.env.example config/.env
# Edit config/.env โ add TELEGRAM_BOT_TOKEN and TELEGRAM_ALLOWED_USER_ID
# Run
python main.pyOpen http://localhost:8000 for chat UI, or http://localhost:8000/admin for dashboard.
python channels/cli_chat.pychat.bat โ CLI chat
web.bat โ Web UI
start.bat โ Full stack (Telegram + Web + Scheduler)
install_autostart.bat โ Auto-start on Windows loginFor 24/7 production deployment on Linux:
# See deploy/README.md for full guide
ssh user@your-server
sudo cp deploy/jarvis.service /etc/systemd/system/
sudo systemctl enable --now jarvisOptional: public URL via Cloudflare Tunnel:
# Quick (random URL)
cloudflared tunnel --url http://localhost:8000
# Permanent (with domain)
cloudflared tunnel login
cloudflared tunnel create myjarvis
cloudflared tunnel route dns myjarvis jarvis.yourdomain.com| Command | Description |
|---|---|
/status |
Dashboard: messages, facts, cost |
/facts |
Show all learned facts |
/council <q> |
8-perspective deliberation |
/reflect |
Self-critique on recent conversations |
/insights |
Detect behavioral patterns |
/trust <action> |
Check action safety level |
/search <q> |
Full-text search memory |
/goals |
List active goals |
/usage |
Rate limit status |
/clear |
Reset session |
/help |
List all commands |
Available across all channels (CLI, Telegram, Web).
Plug MYJarvis into anything. Example template at mcp_servers/example/server.py (~100 lines, no SDK required โ pure Python JSON-RPC over stdio).
Built-in:
- filesystem โ read/write files (sandboxed)
- memory โ Anthropic knowledge graph
- sequential-thinking โ step-by-step reasoning
- time โ date/time queries
User-customizable:
- kruai / shopdesc โ business data integration (mock until you plug in DB)
- jarvis_self โ MYJarvis introspects own state
Personality Profile (auto-built):
- Identity, family, work projects
- Values, decision style, energy patterns
- Boundaries (what NOT to do)
- Goals (short/medium/long term)
- Communication preferences
Reflexion Loop (nightly):
- "What went well today?"
- "What did I miss?"
- Extracts new facts โ saves to memory
- Updates personality based on user corrections
8-Perspective Council:
๐๏ธ CEO (strategic) ๐ผ Business (ROI)
๐ง Engineer (practical) ๐ก๏ธ Risk (paranoid)
๐จ Creator (bold) โค๏ธ Empath (emotional)
โ๏ธ Critic (devil's advocate) ๐ Analyst (data)
All 8 in one LLM call โ synthesized recommendation.
Insight Layer: Detects patterns the user doesn't notice โ communication style, mood signals, recurring topics, blind spots.
Subscription: $0 extra (uses Claude Code Max โ paid as you do)
Server: Self-hosted (any Debian/Ubuntu box)
Marginal: $0 per message (no API charges)
Optional: Cloudflare ($0), domain ($10/yr for permanent URL)
Smart routing keeps Max plan rate limits sustainable:
- Trivial messages โ Haiku (cheap)
- Normal โ default
- Complex โ Opus extended thinking
- Importance gate filters what's worth saving
๐ข FULL_AUTO Routine actions (read email, check status)
๐ก ASK_APPROVE Medium stakes (send email, schedule meeting)
๐ ALWAYS_CONFIRM High stakes (deploy prod, transfer money)
๐ด BLOCKED Hard rules (rm -rf, drop database, leak secrets)
Plus: Trust Levels Drift Detection (weekly review of self-modifications)
Phase 0 โโโโโโโโโโโโโโโโโโโโ Foundation
Phase 1 โโโโโโโโโโโโโโโโโโโโ Personality + Memory
Phase 2 โโโโโโโโโโโโโโโโโโโโ Council + Reflection + Insights
Phase 3 โโโโโโโโโโโโโโโโโโโโ Routines + MCPs + Self-heal
Phase 4 โโโโโโโโโโโโโโโโโโโโ Rate limit + Search + Goals + Telegram
Phase 5 โโโโโโโโโโโโโโโโโโโโ Server 24/7 (systemd)
Phase 6 โโโโโโโโโโโโโโโโโโโโ Public URL (Cloudflare Tunnel)
Phase 7 โโโโโโโโโโโโโโโโโโโโ Custom MCPs + Deep Profile
Future: Voice (wake word + STT + Thai TTS)
Smart Home (Home Assistant)
Permanent URL via owned domain
- microsoft/JARVIS (HuggingGPT)
- Ramsbaby/jarvis (Discord-based personal AI)
- Sid Bharath's Jarvis (Claude Code as life OS)
- Reflexion (verbal self-critique)
- Model Context Protocol
MIT โ See LICENSE
"My Jarvis โ a personal AI that doesn't replace me, but extends me. It remembers what I forget, sees patterns I miss, and works while I rest."