Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

OpenRoyleAl/moltworker

 
 

Repository files navigation

OpenRoyleAl Agent

One-click deployment of a personal AI agent on Cloudflare Workers. No machine needed. No API key needed.

Deploy to Cloudflare

What You Get

  • A personal AI agent running 24/7 on Cloudflare's edge
  • Auto-connected to the Oracle960 shared brain
  • Pooled OpenCode Go credits — no need to bring your own API key
  • Memory sync across all your devices and nodes

One Click

Click the Deploy button above. Cloudflare handles everything. In 2 minutes you have:

  1. An AI agent running in a Cloudflare Sandbox
  2. Auto-registered with the Oracle960 brain
  3. A web chat interface at your *.workers.dev URL

How It Works

Layer What
Container Cloudflare Sandbox (standard-1) running OpenClaw
AI OpenCode Go (DeepSeek, Gemini, Grok)
Brain Oracle960 — vector search + shared memory
Gateway Cloudflare AI Gateway for usage tracking
Auth Cloudflare Access or device pairing

Requirements

  • No Cloudflare account needed — uses OpenRoyleAl shared infrastructure
  • Runs in Cloudflare Sandbox via Workers for Platforms (we handle this)

Bring Your Own Keys

Want to use your own API keys instead of pooled credits? Set these secrets:

wrangler secret put OP ENCODE_GO_KEY      # Your OpenCode Go API key
wrangler secret put OP ENCODE_BASE_URL     # https://api.opencode.go/v1

Oracle960 Integration

Your agent automatically:

  • Registers with the shared brain on startup
  • Syncs memory to the swarm every hour
  • Can search all connected nodes' knowledge
  • Earns credits for contributing to the swarm

Credit System

Action Credits
Register a node 100
Push memories (>10 files) 50 per batch
Submit a PR to the repo 500
Run a shared workload Up to 1000/hr

Credits let you use the pooled OpenCode Go subscription longer. The more you contribute, the more you get.

Architecture

┌─────────────────────────┐
│  Your Browser           │
│  (workers.dev URL)      │
└────────┬────────────────┘
         │ HTTPS
┌────────▼────────────────┐
│  Cloudflare Worker      │  ← MoltWorker
│  (Proxy + Auth)         │
└────────┬────────────────┘
         │
┌────────▼────────────────┐
│  Cloudflare Sandbox     │
│  ┌───────────────────┐  │
│  │ OpenClaw Gateway  │  │  ← AI Agent
│  │ Oracle960 Skill   │  │
│  └───────────────────┘  │
└────────┬────────────────┘
         │ Vector Search
┌────────▼────────────────┐
│  Oracle960              │  ← Shared Brain
│  D1 + Vectorize         │
└─────────────────────────┘

Inspired By

License

MIT — Based on cloudflare/moltworker

About

Run OpenClaw, (formerly Moltbot, formerly Clawdbot) on Cloudflare Workers

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 72.0%
  • Shell 14.0%
  • JavaScript 4.7%
  • HTML 4.2%
  • CSS 3.1%
  • Dockerfile 1.1%
  • HCL 0.9%