Unlimited-domain multi-agent AI swarm platform
Project description
HyperClaw
Your personal AI that actually gets things done.
HyperClaw is a personal AI assistant that works across your entire life. Not just chat — it connects to your email, calendar, tasks, documents, and more. It remembers everything, learns your preferences, and coordinates 44 specialized AI agents to help you with anything.
What Can It Do?
- Manage your communications — Email, Telegram, Slack, Discord, WhatsApp, Teams
- Organize your work — Calendar, tasks, projects, documents
- Handle your data — Notion, Airtable, Google Sheets, Salesforce, HubSpot
- Support your business — Invoicing, customer tracking, sales pipelines
- Research anything — Web search, document analysis, data synthesis
- Remember everything — Your preferences, history, context across all sessions
- Optimize costs — Smart model routing uses cheap models for simple tasks
One AI. Every platform. All working together.
Architecture
Cost-Optimized Model Router
HyperClaw intelligently routes tasks to the most cost-effective model:
| Model | Use Case | Cost |
|---|---|---|
| ChatJimmy (Llama 3.1 8B) | Simple queries, classification, quick lookups | ~$0.00001/1k tokens |
| Claude Haiku | Moderate tasks, basic analysis | ~$0.001/1k tokens |
| Claude Sonnet | Complex tasks, coding, writing | ~$0.003/1k tokens |
| Claude Opus | Deep reasoning, research, planning | ~$0.015/1k tokens |
Simple "what time is it?" goes to ChatJimmy. Complex "analyze this report and create a strategy" goes to Claude.
Multi-Agent Coordination
44 specialized agents organized by domain:
- Business (11): Strategos, Herald, Pipeline, Ledger, Counsel, Talent, Nexus, Ops, Revenue, Sovereign, Venture
- Personal (6): Atlas, Midas, Vitals, Nourish, Navigator, Hearth
- Scientific (5): Medicus, Cosmos, Gaia, Oracle, Scribe
- Communications (5): Echo, Envoy, Pulse, Cipher, Herald
- Talent (4): Scout, Deal, Stage, Roster
- Trading (3): Prediction Strategist, Polymarket Trader, Global Prediction Engine
- Technology (3): Aegis, Bridge, Forge
- Recursive (3): Scout, Alchemist, Calibrator
- Intelligence (2): Sentinel, Arbiter
- Creative (2): Author, Lens
Tasks are automatically routed to the best agent based on domain and complexity.
Persistent Memory
Memory persists across sessions:
- Working Memory — Current context and active tasks
- Episodic Memory — Conversation history and decisions
- Semantic Memory — Facts and knowledge
- Instincts — Learned behavioral patterns
Getting Started
Option 1: Quick Start (5 minutes)
macOS:
brew install pipx
pipx install hyperclaw
hyperclaw init
Linux/Windows:
pip install hyperclaw
hyperclaw init
The init command runs an interactive setup that will:
- Ask for your name and what to call your AI
- Guide you through API key setup (Anthropic)
- Optionally set up database for persistent memory
- Launch the chat interface
Then use interactive chat:
hyperclaw start
Or run the TUI:
hyperclaw-tui
Option 2: Self-Host with Docker
# Clone the repo
git clone https://github.com/mentatalbans/hyperclaw.git
cd hyperclaw
# Copy the example config
cp .env.example .env
# Edit .env and add your Anthropic API key
# ANTHROPIC_API_KEY=sk-ant-your-key
# Optional: Add ChatJimmy for cheap simple tasks
# CHATJIMMY_API_KEY=your-taalas-key
# Start
docker-compose up
Open http://localhost:8001 in your browser.
Option 3: Production Setup
# Clone and setup
git clone https://github.com/mentatalbans/hyperclaw.git
cd hyperclaw
pip install -r requirements.txt
# Initialize workspace and config
python -m hyperclaw setup
# Initialize database (requires DATABASE_URL in .env)
python -m hyperclaw setup --init-db
# Start server
python -m hyperclaw server --port 8001
Configuration
Required
- ANTHROPIC_API_KEY — Powers the AI brain
- Get one at console.anthropic.com
Recommended
-
DATABASE_URL — PostgreSQL with pgvector for memory
- Easiest: Supabase (free tier works)
- Run
schema/init.sqlto create tables
-
CHATJIMMY_API_KEY — Cheap model for simple tasks
- Get one at taalas.ai
- Reduces costs by 90%+ for simple queries
Optional Integrations
Messaging:
TELEGRAM_BOT_TOKEN=your-bot-token
SLACK_BOT_TOKEN=xoxb-your-token
Email:
GMAIL_CLIENT_ID=...
GMAIL_CLIENT_SECRET=...
GMAIL_REFRESH_TOKEN=...
See .env.example for all available integrations.
API Endpoints
Chat
# Simple chat
curl -X POST http://localhost:8001/chat \
-H "Content-Type: application/json" \
-d '{"message": "What can you help me with?"}'
# Streaming chat
curl -X POST http://localhost:8001/chat/stream \
-H "Content-Type: application/json" \
-d '{"message": "Explain quantum computing", "stream": true}'
Tasks
# Create a task
curl -X POST http://localhost:8001/api/tasks \
-H "Content-Type: application/json" \
-d '{"goal": "Research competitors in AI space", "domain": "business"}'
# Get task status
curl http://localhost:8001/api/tasks/abc123
# List all tasks
curl http://localhost:8001/api/tasks
Multi-Agent Coordination
# Coordinate complex goal across multiple agents
curl -X POST http://localhost:8001/api/coordinate \
-H "Content-Type: application/json" \
-d '{"goal": "Create a complete marketing strategy for product launch"}'
Memory
# Store a memory
curl -X POST http://localhost:8001/api/memory/remember \
-H "Content-Type: application/json" \
-d '{"content": "User prefers concise responses", "importance": 0.8}'
# Recall memories
curl -X POST http://localhost:8001/api/memory/recall \
-H "Content-Type: application/json" \
-d '{"query": "user preferences"}'
Cost Management
# Get current costs
curl http://localhost:8001/api/costs
# Set daily budget
curl -X POST "http://localhost:8001/api/costs/budget?budget_usd=5.0"
# List available models
curl http://localhost:8001/api/models
System
# Health check
curl http://localhost:8001/health
# Full status
curl http://localhost:8001/status
# List agents
curl http://localhost:8001/api/agents
# List integrations
curl http://localhost:8001/api/integrations
CLI Commands
# Setup workspace and configuration
hyperclaw setup
hyperclaw setup --init-db # Also initialize database
# Start the server
hyperclaw server
hyperclaw server --port 8080
# Interactive chat
hyperclaw chat
# Check status
hyperclaw status
# Memory operations
hyperclaw memory list
hyperclaw memory recall "user preferences"
hyperclaw memory remember "Important note"
# Version
hyperclaw version
Workspace Structure
After setup, HyperClaw creates:
~/.hyperclaw/
├── workspace/
│ ├── SOUL.md # AI personality
│ ├── IDENTITY.md # AI configuration
│ ├── USER.md # Your profile
│ ├── MEMORY.md # Working memory
│ └── secrets/
│ └── .env # API keys
├── memory/
│ ├── instincts.md # Learned behaviors
│ ├── core-episodes.md # Key memories
│ └── daily/ # Daily logs
├── config/
│ └── hyperclaw.yaml # System config
└── logs/
Edit these files to customize your assistant's behavior.
Cost Optimization Tips
-
Use ChatJimmy — Add
CHATJIMMY_API_KEYto route simple tasks to a model that costs 100x less -
Set a budget —
hyperclawrespectsDAILY_BUDGET_USDand falls back to cheaper models when exceeded -
Enable prefer_cheap — Set
PREFER_CHEAP_MODELS=trueto always prefer the cheapest capable model -
Monitor usage — Check
/api/coststo see spend by model
Database Setup (Optional but Recommended)
For persistent memory across sessions, set up PostgreSQL with pgvector:
- Create a Supabase project (free) or use any PostgreSQL
- Enable the
vectorextension - Run
schema/init.sqlto create tables - Add
DATABASE_URLto your.env
# Initialize database
python -m hyperclaw setup --init-db
Privacy & Security
- Your data stays yours — Self-host means nothing leaves your machine
- No tracking — We don't collect anything
- Open source — Audit the code yourself
- Per-agent permissions — Control what each agent can access
Troubleshooting
"API key not working"
- Make sure it starts with
sk-ant- - Check for extra spaces when pasting
"Database connection failed"
- Verify your DATABASE_URL is correct
- For Supabase, use the "Transaction pooler" connection string
"Integration not connecting"
- Run
hyperclaw integrations test <name>to diagnose - Check that API keys are in your
.envfile
Need help?
- Run
hyperclaw statusto check system health - Open an issue on GitHub
Contributing
MIT licensed. Contributions welcome.
git clone https://github.com/mentatalbans/hyperclaw.git
cd hyperclaw
pip install -e ".[dev]"
python -m pytest tests/ -v
See CONTRIBUTING.md for guidelines.
License
MIT — use it, modify it, build on it.
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 hyperclaw-1.0.9.tar.gz.
File metadata
- Download URL: hyperclaw-1.0.9.tar.gz
- Upload date:
- Size: 350.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6890ba2692e9a2e6eabf96679cf585a05667846cf58875e58c105ac0ec4b9b2
|
|
| MD5 |
4571f026006904e6f6d92cf3b3107881
|
|
| BLAKE2b-256 |
d9b41b5c09a7a333dadd9b37477689ddfbb7c1bbb2ce42773449aac9acb0e33c
|
File details
Details for the file hyperclaw-1.0.9-py3-none-any.whl.
File metadata
- Download URL: hyperclaw-1.0.9-py3-none-any.whl
- Upload date:
- Size: 478.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e460562a5bf9c0cdb43c763f96b370af3628e31760f9afb63287076fc41518f0
|
|
| MD5 |
f6f7351b5a41538266abe1a2aede6818
|
|
| BLAKE2b-256 |
7c6afcd13e6a709704f6d2238b026f2a940ab1f52cd8d2d9b9e0fd0ee071ac50
|