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

WorkerDomainPurpose
stanley-apiapi.stanleyai.ccSkills registry and public API
atlantis-leads-apileads.stanleyai.ccMortgage lead CRM
content-flywheelcontent.stanleyai.ccContent research, drafting, publishing
morning-briefingbriefing.stanleyai.ccAggregated daily briefing
proposal-generatorproposals.stanleyai.ccGEO/SEO audit proposals
satoshi-dashboardsatoshi-dashboard.stanleyai.ccCrypto trading dashboard
geo-seo-monitorgeo-seo-monitor.stanleyai.ccWebsite monitoring

D1 Databases

DatabasePurposeKey Tables
stanley-coreCentral brainagents, skills, content_pieces, briefings
atlantis-leadsMortgage CRMleads, contacts, lead_notes
satoshi-tradesTrading datatrades, funding_rates, strategies