Architecture
StanleyAI is a modular system where Claude AI acts as the strategic brain, orchestrating specialized components for different tasks.
🧠
Claude AI
Strategic brain. Planning, reasoning, conversation. Runs in browser or API.
💻
Claude Code
Autonomous executor. Runs on Mac mini with full filesystem, terminal, and tool access.
🤖
OpenClaw Agents
10 specialized agents. Trading, content, research, monitoring, each with dedicated tools.
⚡
Cloudflare Workers
13 edge-deployed APIs. Sub-50ms response. D1 databases, R2 storage, KV cache.
🔨
N8N Workflows
Visual automation. Connects Gmail, Calendar, Sheets, Slack, Telegram, and 500+ apps.
📲
Telegram
Mobile command center. Receive alerts, send commands, approve actions on the go.
Data Flow
User (conversation)
│
Claude AI ────────── Skills (30+ capabilities)
│
Claude Code ──────── Mac mini (filesystem, git, terminal)
│
┌───┴───────────────────────────────┐
│ Cloudflare Edge │
├────────────────────────────────────┤
│ Workers (13) │ D1 (5 DBs) │
│ R2 (3 buckets)│ KV (5 stores) │
│ Workers AI │ DNS/SSL │
└───┬────────────────────────────────┘
│
┌───┴───────────┐
│ External APIs │
│ Hyperliquid │
│ Telegram │
│ N8N │
└─────────────────┘
Workers Infrastructure
| Worker | Domain | Purpose |
|---|---|---|
| stanley-api | api.stanleyai.cc | Skills registry and public API |
| atlantis-leads-api | leads.stanleyai.cc | Mortgage lead CRM |
| content-flywheel | content.stanleyai.cc | Content research, drafting, publishing |
| morning-briefing | briefing.stanleyai.cc | Aggregated daily briefing |
| proposal-generator | proposals.stanleyai.cc | GEO/SEO audit proposals |
| satoshi-dashboard | satoshi-dashboard.stanleyai.cc | Crypto trading dashboard |
| geo-seo-monitor | geo-seo-monitor.stanleyai.cc | Website monitoring |
D1 Databases
| Database | Purpose | Key Tables |
|---|---|---|
| stanley-core | Central brain | agents, skills, content_pieces, briefings |
| atlantis-leads | Mortgage CRM | leads, contacts, lead_notes |
| satoshi-trades | Trading data | trades, funding_rates, strategies |