Open Claw Hardware Routing & Setup

Whitepaper Callout: Download the Full Architecture PDF Whitepaper


1. Practical Setup: Orchestrating the Hardware Stack

In Part 1: Slashing $200+/mo Subscriptions with a Home Setup, we outlined how to combine a MacBook Pro 64GB M1 Max, an HP i7 Desktop, a Raspberry Pi 5 with Mini Display, and pay-as-you-go API keys into a $0-variable-cost development engine.

Now, let's walk through the exact setup and configuration to bring this factory online with Open Claw and Agent Skills.

                   FACTORY WORKFLOW & TASK DISPATCH
  
   [Developer / Agent Task]
              |
              v
   +-------------------------------------------------------+
   |  MacBook Pro 64GB M1 Max                              |
   |  - Open Claw Orchestrator                             |
   |  - Custom Agent Skills Directory (.agents/skills/)    |
   |  - Ollama: Qwen 2.5 Coder 32B (Local LLM Inference)  |
   +---------------------------+---------------------------+
                               |
               +---------------+---------------+
               |                               |
               v                               v
   +-----------------------+       +-----------------------+
   |  HP i7 Desktop        |       | Raspberry Pi 5 HUD    |
   |  (24GB RAM)           |       | (Mini Display Dashboard|
   |  - Docker Test Runner |       | - Live Token Stream   |
   |  - Vitest / Pytest    |       | - Cost Meter          |
   |  - AST Analyzer       |       | - Task Status         |
   +-----------+-----------+       +-----------------------+
               |
               v (Test Fails?)
   +-------------------------------------------------------+
   |  Cloud API Escalation Layer                           |
   |  - Gemini 1.5 Flash (Bulk context)                    |
   |  - Claude Code / Sonnet (Complex reasoning)          |
   +-------------------------------------------------------+

2. Supercharging Local LLMs with Agent Skills (SKILL.md)

How do smaller, local open-weights models (like Qwen 2.5 Coder 32B running on your Mac) achieve senior-developer quality without burning money on cloud frontier APIs?

The answer lies in Agent Skills—modular, context-rich instruction bundles stored in .agents/skills/<skill-name>/SKILL.md.

                         THE AGENT SKILL STRUCTURE
  
  .agents/
  └── skills/
      ├── unit-testing/
      │   ├── SKILL.md            <-- YAML Frontmatter + Procedural Rules
      │   └── references/         <-- Schema definitions & past examples
      ├── database-migration/
      │   └── SKILL.md
      └── git-workflow/
          └── SKILL.md

Why Agent Skills Drive Down Costs

  1. Eliminates General Reasoning Overhead: Instead of expecting a model to guess your team's specific coding style, AST preferences, or deployment pipeline, the SKILL.md file provides explicit procedural constraints.
  2. Leveling Up Local Models: A 32B local model reading a targeted SKILL.md instruction file will outperform an unguided 1-trillion parameter model on specialized tasks—costing £0.00.
  3. Zero Token Waste: Skills are lazily loaded into agent context only when relevant triggers are detected in a task, preserving context windows and keeping token costs at zero.

Example SKILL.md Definition

---
name: unit-testing-suite
description: Best practices for writing Vitest unit tests for Next.js and TypeScript APIs
---

# Unit Testing Skill Instructions

1. Always use AAA pattern (Arrange, Act, Assert).
2. Mock external database calls using `vi.mock("@/lib/firebase")`.
3. Ensure 100% boundary check coverage for null and undefined inputs.

3. Step-by-Step Hardware & Open Claw Configuration

Step 1: Configure MacBook Pro 64GB M1 Max (Primary LLM Engine)

Install Ollama and pull the 32B parameter coding model. With 64GB of unified memory, allocating ~20GB to GPU VRAM allows full 32B 4-bit quantized execution at zero lag:

# Pull 32B coding model optimized for Apple Silicon 64GB
ollama pull qwen2.5-coder:32b

# Verify GPU unified memory execution
ollama run qwen2.5-coder:32b "Implement a resilient retry handler in TypeScript"

Step 2: Configure HP i7 Desktop (Build & Testing Node)

On your HP Desktop (running Ubuntu/Debian Linux with 24GB RAM), launch the local test execution server:

# Clone project repository and spin up Docker runner worker
git clone https://github.com/your-username/software-factory-worker.git
cd software-factory-worker

# Run automated build & test listener on HP desktop
npm run start:test-worker -- --port=9090

Step 3: Configure Raspberry Pi 5 Mini Display HUD

On the Pi 5 connected to its mini HDMI display, run the lightweight status dashboard:

# Launch physical telemetry dashboard on Pi 5
python3 telemetry_hud.py --mac-host=192.168.1.150 --display=mini

4. Configuring Open Claw Routing & Escalation

In your Open Claw config (claw.config.json), configure your local Mac LLM as primary, the HP desktop for test validation, and cloud APIs for fallbacks:

{
  "hardware": {
    "primary_llm_node": "http://localhost:11434",
    "test_runner_node": "http://hp-desktop.local:9090",
    "telemetry_hud_node": "http://pi5-display.local:8080"
  },
  "skills_directory": ".agents/skills",
  "routing": {
    "tier0_local": {
      "provider": "ollama",
      "model": "qwen2.5-coder:32b",
      "cost_per_1m": 0.00
    },
    "tier1_flash": {
      "provider": "gemini",
      "model": "gemini-1.5-flash",
      "cost_per_1m": 0.075,
      "api_key": "${GEMINI_API_KEY}"
    },
    "tier2_frontier": {
      "provider": "anthropic",
      "model": "claude-3-5-sonnet-20241022",
      "cost_per_1m": 3.00,
      "api_key": "${ANTHROPIC_API_KEY}"
    }
  }
}

5. Interactive Cost Calculator

Simulate how shifting 80%+ of your agent workload to your MacBook Pro 64GB M1 Max slashes your monthly spend compared to $200+/month SaaS subscriptions:

<InteractiveLLMRouter />

6. The Hardware Quality Loop

                       HARDWARE QUALITY VERIFICATION LOOP
  
  1. Prompt + Skill -> MacBook Pro 64GB (Qwen 2.5 Coder 32B generates code)
                            |
                            v
  2. Payload -> Sent over local LAN to HP i7 Desktop
                            |
                            +---> Runs Vitest / ESLint in isolated Docker container
                            |
                            +---> (Pass?) ---> ✅ Commit & Send Telemetry signal to Pi 5 HUD
                            |
                            +---> (Fail x2?) ---> Escalate to Gemini Flash / Claude Code

7. Conclusion & PDF Download

By orchestrating a MacBook Pro 64GB M1 Max, an HP i7 Desktop, a Raspberry Pi 5, custom Agent Skills, and pay-as-you-go API keys, you create a self-contained AI Software Factory running for under $15/month.

Whitepaper Callout: Download the Full Architecture PDF Whitepaper

🧠

Dynamic LLM Router & Cost Simulator

£20/Month AI Software Factory Tiered Intelligence Benchmark
INTERACTIVE CALCULATOR

📊 Workload Parameters

100 tasks/day
10 / day250 / day500 / day
8.0k tokens
1k25k50k tokens
5 seats
1 seat10 seats20 seats
Monthly Total Volume:3,000 tasks / 24.00M tokens

🔀 Tier Allocation Ratios

Auto-normalized to 100%
60%
30%
10%

💳 Monthly Cost Comparison

Raw Frontier APIUnrouted
£112.50/ mo ($144.00)

100% of tasks routed directly to Claude 3.5 Sonnet ($3.00/1M in, $15.00/1M out).

Cost per task: $0.0480
Enterprise SaaSPer Seat
£156.25/ mo ($200.00)

Fixed license fee of $40/seat/month across 5 developer seats.

Fixed team cost regardless of task volume
£20/mo Tiered FactoryRECOMMENDED
£24.99/ mo ($31.98)
⚡ Saves £87.51 / mo (77.8% vs Raw API)

£13.00 Local VPS + £0.74 Flash API + £11.25 Sonnet API

Cost per task: £0.0083

📈 Relative Monthly Cost Visual Chart

Raw Sonnet 3.5 API£112.50
Enterprise SaaS (5 Seats)£156.25
£20/mo Hybrid Tiered Factory£24.99

🧪 Prompt Test Preset Selector

Click a preset below or type a custom prompt to test how the dynamic LLM router evaluates complexity and routes prompts across Intelligence Tiers.

ROUTED TO: TIER 0 (LOCAL VPS)Target: Qwen 2.5 Coder 14B (Local VPS)
Complexity Score: 14 / 100
"Fix indentation, missing trailing commas, and flexbox alignment classes in navbar.tsx according to project ESLint rules."
Router Logic & Heuristics
High structural certainty. Repetitive formatting task requiring low reasoning capacity. Zero variable API cost on Local VPS.
Execution Metrics
Est Tokens: 1,200
Est Latency: 420ms
Prompt Execution Cost
Unrouted Sonnet: $0.0072
Routed Tier: $0.0000 (£0 VPS)