๐ŸŽฉ You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP โ†’
Sign In

clawdbot-go

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clawdbot-go

Zero Clawd โ€” one-shot install for sovereign Solana + Robinhood omni agent runtime: RH skill pack (23), agents, packages, clawdbot CLI hooks. Connect at cheshireterminal.ai/zeroclawd

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
394
Maintainers
1
Weekly downloads
ย 
Created
Source
Zero Clawd โ€” animated cypherpunk Solana runtime hero

ZERO CLAWD

๐Ÿฆž Open-source agent runtime for Solana (and Robinhood Chain)

Go npm Solana Robinhood License

Product ยท Agent hub ยท npm ยท Security ยท Release checklist

Zero Clawd is a small, self-hostable runtime for AI agents that need to work on Solana โ€” trading loops, wallets, market data, skills, and a local web console โ€” without a heavy cloud stack.

It is Solana-first. Robinhood Chain / EVM support is additive through an open skill pack (token launch, Uniswap, registries, payments). You bring your own keys and risk limits; live money paths stay opt-in.

What you get

PieceWhat it is
CLI (clawdbot)Go binary for agent chat, OODA loops, catalog, doctor, status, web console
npm package (clawdbot-go)One-shot install + RH skill pack into ~/.clawdbot (and common agent skill dirs)
Skill pack23 open skills under skills/ โ€” FunPump launch, swaps, LP, Cheshire registries, zk-omni
Web consoleLocal dashboard/API (default 127.0.0.1:18800) you can also wire to cheshireterminal.ai/zeroclawd
Laws + DNASix-law harness, onchain-oriented identity, and starter agent DNA at install

Names (so the repo is less confusing)

You seeโ€ฆMeansโ€ฆ
Zero ClawdProduct name (docs, DNA, UI, install banners)
clawdbot / clawdbot-goCLI binary and npm package (kept for compatibility)
Zero-BruhThis GitHub repository
cheshire-terminal-agentsSeparate npm package: agent catalog + dual-chain forge SDK (not the Go runtime)

At a glance

  • Solana market/trading tools (Jupiter, Helius, Birdeye, Vulcan/Phoenix perps, and more when configured)
  • Robinhood Chain 4663 via the open skill pack + FunPump product APIs
  • ZK primitives tree for nullifiers / attestations (observer by default; live writes are delegated)
  • Lightweight footprint โ€” slim source archive via make package, stripped CLI on the order of ~10 MB
  • Grok-first model defaults, with other providers via env

Jump to: One-shot install ยท Quick Start ยท Architecture ยท Six laws ยท CLI ยท RH skill pack

๐Ÿš€ One-shot install (Grok Build style)

Published package: clawdbot-go on npm (npm i clawdbot-go / npm i -g clawdbot-go).

Skills are prepackaged at install โ€” every skills/*/SKILL.md in this repo (pack-index.json v2, 23 skills) is copied to ~/.clawdbot/skills and symlinked into ~/.agents, ~/.claude, and ~/.codex skill roots.

# Local project dependency (postinstall prepackages the skill pack)
npm i clawdbot-go

# Global CLI bins: clawdbot-go ยท zero-clawd ยท clawdbot-stack
npm i -g clawdbot-go

# If your npm blocks install scripts (skills will not prepackage until allowed):
npm install -g --allow-scripts=clawdbot-go clawdbot-go
# or once for all installs of this package:
# npm config set allow-scripts=clawdbot-go --location=user

Package page: https://www.npmjs.com/package/clawdbot-go

# Explicit skills-only re-prepackage
npx clawdbot-go skills-install --force
# โ†’ ~/.clawdbot/skills  (+ agent root symlinks)

# From this checkout instead of npm:
cd /path/to/go-bot && npm install

Skip skill prepackage: CLAWDBOT_SKIP_SKILLS=1 npm i clawdbot-go

B ยท Full stack via curl/npm (skills + env + optional Go/birth/automaton)

curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install-npm.sh | bash

# same as:
npx clawdbot-go install
# full stack inside postinstall:
CLAWDBOT_ONESHOT=1 npm i -g clawdbot-go

C ยท Classic Go binary + source

Also seeds the RH skill pack into ~/.clawdbot/skills and agent skill roots:

curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install.sh | bash
# or from this checkout:
./install.sh
# Skill Hub pack (same Cheshire/RH suite as catalog skills)
npx github:Solizardking/skills install cheshire-terminal-agents --force

# Agents SDK + forge + registries (npm) โ€” catalog/identity, NOT this Go runtime
npm i cheshire-terminal-agents

cheshire-terminal-agents (v1.48+) ships an optional bridge to this package โ€” it does not hard-depend on clawdbot-go and does not run Zero Clawd on its postinstall:

# From the agents package: discover + install Zero Clawd (invokes npx clawdbot-go โ€ฆ)
npx cheshire-terminal-agents clawdbot-info
npx cheshire-terminal-agents clawdbot-install --dry-run
npx cheshire-terminal-agents clawdbot-install              # โ†’ npx clawdbot-go install
npx cheshire-terminal-agents clawdbot-install --skills-only
npx cheshire-terminal-agents clawdbot-install --global     # โ†’ npm i -g clawdbot-go

# External catalog entry (discoverable, not vendored under agents packages/)
npx cheshire-terminal-agents packages-list
# โ†’ packages: clawd-agent-tui, headless-agent, โ€ฆ
# โ†’ external: ["clawdbot-go"]  (npmUrl โ†’ https://www.npmjs.com/package/clawdbot-go)
PackagenpmRole
This runtimeclawdbot-goSkills oneshot, CLI bins, web console :18800
Agents / forgecheshire-terminal-agentsCatalog, dual-chain forge, nested TS packages + optional clawdbot-install bridge

Install both when you need identity forge and a local Zero Clawd console.

E ยท Connect from Cheshire Terminal (hosted /zeroclawd)

Zero Clawd (this repo) is the local runtime. Cheshire Terminal hosts the public install + connect hub that talks to your agent after the one-shots.

SurfaceWhere
Product hubcheshireterminal.ai/zeroclawd
Aliases/clawdbot-go ยท /clawdbot ยท /zero-clawd
Agent hub / forge/agents ยท /agents/forge
CT client sourcecheshire-terminal/client/src โ€” pages/ClawdbotGoPage.tsx, lib/zeroClawd.ts, routes in App.tsx
Install scriptsinstall-npm.sh ยท install.sh (printed steps end with the CT connect loop)
Local consoleclawdbot web โ†’ http://127.0.0.1:18800 (web/backend + web/frontend)
# One-shots (also the curl lines on the hosted hub)
curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install-npm.sh | bash
curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install.sh | bash
# from this checkout:
./install-npm.sh
./install.sh

# Start agent API/console + allow browser-direct probes from Cheshire
export CLAWDBOT_CORS_ORIGINS=https://cheshireterminal.ai
clawdbot web    # or: go run ./web/backend -port 18800
# โ†’ open https://cheshireterminal.ai/zeroclawd and Connect http://127.0.0.1:18800

Hosted probes (browser-direct for loopback; /api/zeroclawd/probe for public agents):

EndpointRole
GET /api/healthLiveness ยท agent Zero Clawd ยท package clawdbot-go ยท product URL
GET /api/statusRuntime status (+ public_links ecosystem map)
GET /api/dnaStarter DNA
GET /api/ecosystemProduct/repo surfaces
GET /api/rh/readinessRH 4663 presence gate

Also: live npm meta via Cheshire GET /api/zeroclawd/npm โ†’ registry.npmjs.org/clawdbot-go/latest.

Loopback agents are probed from your browser (not the Cheshire server). Public remote hosts use the same-origin probe bridge (SSRF-hardened โ€” private/link-local/loopback blocked server-side).

What you getPath
RH skill pack (23)~/.clawdbot/skills + ~/.agents/skills/* (prepackaged)
Pack manifest~/.clawdbot/skills/.clawdbot-prepackaged.json
Env template~/.clawdbot/.env (CLAWDBOT_SKILLS_DIR, RH hooks)
npm packageclawdbot-go ยท npm i clawdbot-go
Agents bridgecheshire-terminal-agents ยท npx cheshire-terminal-agents clawdbot-install (optional; not a hard dep)
CLI binariesclawdbot-go / zero-clawd (npm) ยท clawdbot (Go, via install.sh)
Hosted connectcheshireterminal.ai/zeroclawd
Productzeroclawd ยท agents ยท forge ยท funpump.ai
export CLAWDBOT_SKILLS_DIR="$HOME/.clawdbot/skills"
npx clawdbot-go skills          # list pack ids
npx clawdbot-go inspect         # validate SKILL.md files
npx clawdbot-go skills-install  # re-prepackage all skills
clawdbot catalog skills         # if Go binary present

๐Ÿ†• What's New โ€” Omni RH Pack + Live Markets + Hardened Trading

This tree is a working, verifiable trading agent โ€” not just a dashboard. Solana runtime stays first-class; Robinhood Chain / EVM is additive via the bundled skill pack and pkg/rh.

Robinhood Crypto Agent Open Stack (v2 ยท 23 skills). Vendored under skills/ for FunPump launch, Uniswap, strategy bots, payments, Cheshire ERC-8004 registries, omni mint, zk-omni, and Blockscout web3-dev. Product host: funpump.ai ยท Zero Clawd: cheshireterminal.ai/zeroclawd ยท agent hub: cheshireterminal.ai/agents ยท forge: cheshireterminal.ai/agents/forge. Open agents package: npm ยท GitHub ยท SkillHub. Core operator env: BLOCKSCOUT_API_KEY + RH_RPC_URL (chain 4663). See docs/RH_CRYPTO_AGENT_STACK.md and skills/README.md.

RH readiness in the Go runtime. pkg/config loads RH settings; pkg/rh builds JSON-RPC + Blockscout PRO requests; clawdbot doctor reports connectors.robinhood; web console exposes /api/connectors and GET /api/rh/readiness (presence only โ€” never secret values).

Live market data. Web console pulls Jupiter prices (/api/market/prices), Birdeye perps OI and trending when keys allow, plus strategy / backtest panels.

Trading engine. Risk-based position sizing, portfolio limits (drawdown circuit breaker), and a backtest harness that replays the same Evaluate() as the live OODA loop.

๐Ÿ›๏ธ Historical Lineage

This codebase is a forked descendant of three foundational repositories that defined the academic lineage of compression, encryption, cellular automata, multi-agent systems, and algorithmic game theory.

PiedPiper โ€” Compression, Encryption & Cellular Automata

The docs/PiedPiper-master/ directory is a verbatim archive of vs666/MinMax, a landmark project that implemented data compression (Huffman, Arithmetic, BWT+RLE), encryption (AES-128, DES, RSA, cellular-automaton-based PRNG), Conway's Game of Life, multi-agent collision avoidance, and cryptographic hash optimization from first principles.

Clawd inherits three direct code descendants:

PiedPiper SourceClawd PackageDescription
GameOfLife/pkg/gameoflife/Toroidal Life engine โ€” the universal computer
Compression/ (middle-out)pkg/middleout/Content-cache, Ralph loop, content router
Compression/ (Weissman score)pkg/weissman/Compression-ratio scoring
PP_HASH/pkg/zero/Zero-dependency startup benchmark (Zero-style)
MultiAgent_CollisionAvoidance/pkg/routing/Decentralized agent routing heuristics

And via its ZK adaptation layer (zk-primitives/docs/PIEDPIPER_ADAPTATION.md), every PiedPiper algorithm has a Solana-native zero-knowledge equivalent:

Classical AlgorithmZK PrimitiveOn-Chain Instruction
Huffman/Arithmetic compressionverifyGroth16 (proof of correct decompression)publish_attestation
AES-128 / DES / RSA encryptioncommit_encrypted_state (ciphertext commitment)commit_encrypted_state
CA-based PRNG (PP_HASH)computeNullifier (deterministic 32-byte hash)Client-side derivation
CA-based SSH protocolNullifier-based session authenticationpublish_attestation
Conway's Game of Life (Universal Computer)Groth16 proof of computationpublish_attestation
Min-Max decision treecomputeNullifier for commitment schemesClient-side

The adaptation guide lives at zk-primitives/docs/PIEDPIPER_ADAPTATION.md โ€” a full mapping from each classical algorithm to its ZK on-chain equivalent.

Credits

  • Varul Srivastava (@vs666) โ€” primary author of the MinMax repository, PP_HASH, PP_SSH, CA encryption, multi-agent collision avoidance, and Game of Life
  • Akshett Rai Jindal โ€” AES-128, Huffman static
  • Ashwin Mittal โ€” BWT + RLE, Huffman, image compression
  • Zishan Kazi โ€” DES, audio compression, arithmetic coding
  • Keshav Bansal โ€” DES, audio compression, arithmetic coding
  • Original repository: https://github.com/vs666/MinMax
  • License: MIT โ€” docs/PiedPiper-master/LICENSE

Overview

Zero Clawd is the world's first Solana-native sovereign AI agent โ€” a full-stack autonomous trading intelligence bound by Clawd's full six-law harness: three immutable on-chain laws and three off-chain interpretive laws. Built in pure Go for minimal resource consumption, it orchestrates on-chain data providers, zk primitives, and x402-gated surfaces through a military-grade OODA decision loop with persistent epistemological memory.

The system compiles to three standalone binaries that run on everything from NVIDIA Jetson edge devices to cloud VMs โ€” no containers required, no runtime dependencies, instant boot.

The codebase carries the intellectual DNA of academic pioneers in compression, encryption, and cellular automata โ€” the algorithms of Huffman, Shannon, Fano, Rivestโ€“Shamirโ€“Adleman, Daemenโ€“Rijmen (AES), the National Bureau of Standards (DES), Burrowsโ€“Wheeler, Conway, von Neumann, Ulam, and the entire PiedPiper team at IIIT Hyderabad. Every classical result has been re-expressed as a Solana ZK primitive. Every trade is provable on-chain.

SurfaceRole
https://github.com/Solizardking/Zero-BruhThis Go runtime repository
https://github.com/solizardking/solana-clawdCanonical ecosystem hub
https://zk.x402.wtfPublic x402/zk gateway and install surface
https://cheshireterminal.aiPublic terminal surface
https://cheshireterminal.ai/zeroclawdZero Clawd product surface for this runtime
https://cheshireterminal.ai/agentsCheshire agent hub (catalog + live feed)
https://cheshireterminal.ai/agents/forgeCheshire agent forge (dual-chain identity)
https://funpump.aiFunPump product host โ€” RH launch UI + public launchpad APIs
npm cheshire-terminal-agentsnpm package: agent catalog + forge SDK + RH skill pack (not the Go binary)
Cheshire-Terminal-AgentsSource repo for the open agents package
SkillHub (skillhub-main)Solizardking skill hub โ€” installable agent skills library
https://huggingface.co/ordlibrary/Clawd-GLM-5.2Public Clawd model surface

Core Capabilities

CapabilityDescription
OODA Trading LoopAutonomous Observe โ†’ Orient โ†’ Decide โ†’ Act cycle with RSI/EMA/ATR strategy engine, auto-optimization, ClawVault memory journaling, and hardware I2C controls
Birdeye v3 Analytics22 API endpoints, 19 LLM-callable agent tools โ€” token overview, OHLCV, trade feeds, security audits, trending, wallet analytics
Helius DAS + RPCDigital Asset Standard queries (get-asset, owner-assets, search), SPL token operations (balance, supply, largest holders), raw RPC forwarding
Robinhood / EVM skill pack23 open skills under skills/ โ€” FunPump bonded + V3 launch, Uniswap swap/LP/v4, strategy bots, HTTP 402 payments, Cheshire ERC-8004 registries, omni mint, zk-omni, Blockscout web3-dev
RH runtime (pkg/rh)Chain 4663 JSON-RPC + Blockscout PRO helpers; readiness via doctor / GET /api/rh/readiness; env RH_RPC_URL + BLOCKSCOUT_API_KEY
ZK + Privacy PrimitivesNullifiers, attestations, encrypted state commitments, and privacy-preserving proof flows under zk-primitives/
ZK Omnichain (RH โ†” Solana)msgType-4 LayerZero messages with Ed25519 PoK โ€” pkg/zkomni, clawdbot zero zkomni, skill cheshire-zk-omni (pairs with cheshire-terminal robinhood-agents)
Cloudflare Edge InstallerBranded install routes plus read-only ZK metadata at /.well-known/clawdbot-zk.json
Aster DEX PerpetualsHMAC-signed futures trading โ€” market/limit orders, position management, stop-loss/take-profit, account analytics
Jupiter AggregatorBest-route spot swaps with slippage protection
Hardware I2CArduino Modulinoยฎ sensor cluster โ€” RGB LEDs, buzzer alerts, physical buttons, rotary knob, IMU, temp/humidity, proximity
Web ConsoleReact + Vite dashboard โ€” omni-chain hero, connectors (incl. Blockscout + RH RPC), keys popup, doctor, market panels
Multi-Provider LLMOpenRouter, Anthropic, OpenAI abstraction with tool-use agent loop
Dual MemoryLocal ClawVault (file-based, 7 categories) + Supabase MemoryEngine (PostgreSQL)
Grok-FirstDefault provider is xAI Grok โ€” code/repl/trade, research, image, voice, fast modes

๐Ÿš€ Quick Start

curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install.sh | bash

For the complete Solizardking/core-ai sidecar install:

curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install.sh | CLAWDBOT_INSTALL_CORE_AI=1 bash

Branded Cloudflare install aliases:

curl -fsSL https://install.onchainai.fund | bash
curl -fsSL https://zk.x402.wtf/clawdbot | bash
curl -fsSL https://zk.x402.wtf/clawdbot/.well-known/clawdbot-zk.json

Free AI included โ€” no API keys required to get started.
The installer pre-configures zkrouter (free AI routing) and a
SolanaTracker-backed RPC endpoint. Bring your own keys to lift rate limits.

After install:

source ~/.clawdbot/.env          # load env vars
clawdbot agent                   # AI REPL โ€” free via zkrouter
clawdbot ooda --sim              # paper trading mode
clawdbot solana trending         # top Solana tokens

Manual Install

git clone https://github.com/Solizardking/Zero-Bruh
cd Zero-Bruh

# Configure API keys (zkrouter + RPC pre-filled, add your own to unlock higher limits)
cp .env.example .env

# Run the animated launcher
./start.sh

Manual Setup

# Dependencies
go mod download && go mod tidy

# Build (choose one)
make build         # CLI binary only
make all           # CLI + TUI
make cross         # All platforms (x86, ARM64, RISC-V, macOS)

# Frontend (optional โ€” required for web console UI)
cd web/frontend && npm install && npm run build && cd ../..

# Run
./build/clawdbot version
./build/clawdbot agent -m "What is SOL price?"   # single-shot AI query
./build/clawdbot agent                            # interactive REPL
./build/clawdbot solana trending
./build/clawdbot ooda --sim --interval 60
./build/clawdbot web                              # dashboard โ†’ http://localhost:18800

The default install path is already pointed at the public Clawd surfaces:

  • runtime repo: https://github.com/Solizardking/Zero-Bruh
  • ecosystem hub: https://github.com/solizardking/solana-clawd
  • gateway: https://zk.x402.wtf
  • terminal: https://cheshireterminal.ai

core-ai Integration

Solizardking/core-ai is a TypeScript/Node tooling repository: Helius MCP, Pump MCP, Clawd Code plugin material, skills, and Solana documentation tooling. It is intentionally not a go.mod dependency and should not be embedded into the Go binary. The Go build stays a standalone runtime; core-ai is installed beside it as an optional sidecar.

The installer supports that model with:

curl -fsSL https://raw.githubusercontent.com/Solizardking/Zero-Bruh/main/install.sh | CLAWDBOT_INSTALL_CORE_AI=1 bash

That fetches the slim integration branch into ~/.clawdbot/core-ai, builds the local MCP packages when npm is available, and writes:

~/.clawdbot/core-ai.mcp.json

Relevant knobs:

CLAWDBOT_INSTALL_CORE_AI=1
CLAWDBOT_CORE_AI_REPO=https://github.com/Solizardking/core-ai
CLAWDBOT_CORE_AI_REF=clawd-stack-integration
CLAWDBOT_CORE_AI_DIR=~/.clawdbot/core-ai
CLAWDBOT_CORE_AI_MCP_CONFIG=~/.clawdbot/core-ai.mcp.json

Use CLAWDBOT_SOURCE_MODE=archive for small installs. Use CLAWDBOT_SOURCE_MODE=git only when the installed source must be a mutable git checkout.

Product Name Compatibility

The project is branded Zero Clawd. The CLI binary, Go module path, environment variable prefix, and on-disk workspace all keep their existing clawdbot / CLAWDBOT_* / .clawdbot names for compatibility โ€” only the public-facing name changed. In practice:

  • install and run the same way: clawdbot agent, clawdbot ooda, CLAWDBOT_HOME, ~/.clawdbot/
  • ClawdBot in older docs, issues, and commit history refers to the same project
  • treat a future binary/env-var rename as a deliberate breaking change, not as unfinished accidental drift

Module Path Compatibility

The public repository is:

  • https://github.com/Solizardking/Zero-Bruh

The current Go module path is still:

  • github.com/8bitlabs/clawdbot

That mismatch is intentional for now. The codebase keeps the legacy module path to avoid breaking existing imports, build scripts, and ldflags references while the public repo and hub are stabilized. In practice:

  • clone and browse the code from https://github.com/Solizardking/Zero-Bruh
  • expect Go imports inside the repo to remain github.com/8bitlabs/clawdbot/...
  • treat a future module-path migration as a deliberate breaking change, not as unfinished accidental drift

Slim Package Target

The source archive is kept small by excluding local/generated payload from release archives via .gitattributes export-ignore: docs/PiedPiper-master/, .cache/, .agents/, agent/, build/, dist/, checked-in binaries, generated UI screenshots, Node build outputs, node_modules, and lockfiles for optional TypeScript surfaces. The install path rebuilds or reseeds those pieces instead of shipping them inside the Go source package.

One button โ€” pick either path:

# CLI
make package
# โ†’ build/clawdbot-go-source.tar.gz

# Web console (Ops โ†’ Go Packages โ†’ ๐Ÿ“ฆ Package)
# POST /api/package  then auto-downloads /api/package/download
go test ./pkg/release/ ./web/backend/ -count=1

For a default Go install, the required payload is the Go source, docs, README.md, install.sh, go.mod, go.sum, and runtime config examples. For a complete Solana tooling install, use CLAWDBOT_INSTALL_CORE_AI=1 so the Node tooling is fetched and built as a sidecar after the Go binary is installed.

๐Ÿ— Architecture

clawdbot-go/
โ”‚
โ”œโ”€โ”€ cmd/                         โ”€โ”€ Executables โ”€โ”€
โ”‚   โ”œโ”€โ”€ clawdbot/                 CLI agent (cobra)
โ”‚   โ””โ”€โ”€ clawdbot-tui/             TUI launcher (tcell/tview)
โ”‚
โ”œโ”€โ”€ pkg/                         โ”€โ”€ ~53 Packages, 24K+ lines โ”€โ”€
โ”‚   โ”‚
โ”‚   โ”‚  โ”Œโ”€ Core Agent โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   โ”œโ”€โ”€ agent/                   OODA loop, hooks, tool executor, prompts
โ”‚   โ”œโ”€โ”€ strategy/                RSI + EMA cross + ATR signal engine
โ”‚   โ”œโ”€โ”€ memory/                  ClawVault + Supabase MemoryEngine
โ”‚   โ”œโ”€โ”€ research/                Dexter deep research agent
โ”‚   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚   โ”‚
โ”‚   โ”‚  โ”Œโ”€ PiedPiper Inherited โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   โ”œโ”€โ”€ gameoflife/              Conway's Life โ€” universal computer
โ”‚   โ”œโ”€โ”€ middleout/               Content-cache, Ralph loop, router
โ”‚   โ”œโ”€โ”€ weissman/                Compression score
โ”‚   โ”œโ”€โ”€ zero/                    Zero-dependency benchmark
โ”‚   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚   โ”‚
โ”‚   โ”‚  โ”Œโ”€ Solana Integrations โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   โ”œโ”€โ”€ solana/                  Birdeye v3, Helius RPC + DAS, Jupiter swaps
โ”‚   โ”œโ”€โ”€ aster/                   Aster DEX perps (HMAC-signed)
โ”‚   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚   โ”‚
โ”‚   โ”‚  โ”Œโ”€ Robinhood / EVM โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   โ”œโ”€โ”€ rh/                      RH JSON-RPC + Blockscout PRO + readiness
โ”‚   โ”œโ”€โ”€ zkomni/                  RHโ†”Solana ZK omnichain (msgType 4)
โ”‚   โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚   โ”‚
โ”‚   โ”‚  โ”Œโ”€ Infrastructure โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€-โ”
โ”‚   โ”œโ”€โ”€ config/                  Config + RH env (BLOCKSCOUT_API_KEY, RH_RPC_URL)
โ”‚   โ”œโ”€โ”€ keyvault/                Managed API keys allowlist + .env.local vault
โ”‚   โ”œโ”€โ”€ doctor/                  Runtime diagnostics (incl. connectors.robinhood)
โ”‚   โ”œโ”€โ”€ hardware/                I2C Modulinoยฎ adapter + drivers
โ”‚   โ”œโ”€โ”€ providers/               LLM abstraction (OpenRouter, etc.)
โ”‚   โ”œโ”€โ”€ channels/                Telegram, Discord, WebSocket
โ”‚   โ”œโ”€โ”€ catalog/                 Skills + agents + ZK index (RH pack discovery)
โ”‚   โ”œโ”€โ”€ mcp/                     Model Context Protocol server
โ”‚   โ”œโ”€โ”€ auth/                    Authentication + pairing
โ”‚   โ”œโ”€โ”€ bus/                     Event bus (pub/sub)
โ”‚   โ”œโ”€โ”€ commands/                Command registry and routing
โ”‚   โ”œโ”€โ”€ tools/                   Tool interface + registry
โ”‚   โ””โ”€โ”€ ...                      health, heartbeat, logger, identity, etc.
โ”‚
โ”œโ”€โ”€ skills/                      RH Crypto Agent Open Stack (pack-index v2, 23 skills)
โ”‚   โ”œโ”€โ”€ pack-index.json          Authoritative skill ids + funpump.ai / forge hosts
โ”‚   โ”œโ”€โ”€ catalog.json             Flat catalog for loaders
โ”‚   โ”œโ”€โ”€ README.md                Pack overview
โ”‚   โ”œโ”€โ”€ rh-bonded-launch/        FunPump bonding createToken (RH 4663)
โ”‚   โ”œโ”€โ”€ rh-launchpad-v3/         Curve โ†’ Uniswap V3 graduate
โ”‚   โ”œโ”€โ”€ web3-dev/                Blockscout PRO multichain (chain_id=4663)
โ”‚   โ”œโ”€โ”€ cheshire-agent-*/        ERC-8004 identity / reputation / validation
โ”‚   โ”œโ”€โ”€ cheshire-omni-mint/      Dual-rail Solana + RH identity mint
โ”‚   โ”œโ”€โ”€ cheshire-zk-omni/        LayerZero msgType-4 messenger skill
โ”‚   โ”œโ”€โ”€ swap-*/ liquidity-*/ v4-*/  Uniswap trade + LP + v4
โ”‚   โ”œโ”€โ”€ copy-trade/ dca-bot/ index-bot/ deployer/  Strategy bots + CCA
โ”‚   โ”œโ”€โ”€ pay-with-*/              HTTP 402 / MPP payments
โ”‚   โ””โ”€โ”€ viem-integration/        EVM client patterns
โ”‚
โ”œโ”€โ”€ zk-primitives/               ZK agent, TypeScript client, Anchor program
โ”‚   โ”œโ”€โ”€ docs/EDGE_DISTRIBUTION.md     โ† Cloudflare metadata surface
โ”‚   โ”œโ”€โ”€ docs/PIEDPIPER_ADAPTATION.md โ† full classicalโ†’ZK mapping
โ”‚   โ”œโ”€โ”€ MANIFEST.json            Machine-readable subsystem index
โ”‚   โ”œโ”€โ”€ agent/                   @clawd/zk-shark-agent
โ”‚   โ”œโ”€โ”€ client/                  @clawd/zk-client
โ”‚   โ”œโ”€โ”€ configs/                 Light tree and runtime config
โ”‚   โ”œโ”€โ”€ programs/                clawd-zk Anchor program
โ”‚   โ””โ”€โ”€ tests/                   Off-chain and on-chain test notes
โ”‚
โ”œโ”€โ”€ cloudflare/                  Branded install Worker and tests
โ”‚   โ”œโ”€โ”€ install-worker.js        Worker routes, wrappers, metadata
โ”‚   โ”œโ”€โ”€ install-worker.test.mjs  Local route/metadata tests
โ”‚   โ””โ”€โ”€ README.md                Deployment and smoke-test guide
โ”‚
โ”œโ”€โ”€ docs/RH_CRYPTO_AGENT_STACK.md  RH pack install + core env
โ”œโ”€โ”€ docs/CLOUDFLARE_ZK_SURFACE.md Cloudflare + ZK runtime handoff
โ”œโ”€โ”€ docs/PiedPiper-master/       Historical archive (vs666/MinMax)
โ”‚   โ”œโ”€โ”€ Compression/             Huffman, Arithmetic, BWT+RLE, Audio, Video
โ”‚   โ”œโ”€โ”€ Encryption/              AES-128, DES, RSA, CA-based PRNG
โ”‚   โ”œโ”€โ”€ GameOfLife/              Conway's Life
โ”‚   โ”œโ”€โ”€ PP_HASH/                 SHA-512 via cellular automaton
โ”‚   โ”œโ”€โ”€ PP_SSH/                  SSH-protocol via CA encryption
โ”‚   โ”œโ”€โ”€ MultiAgent_CollisionAvoidance/ Decentralized agent routing
โ”‚   โ”œโ”€โ”€ ForestFire_Simulation/   Cellular automaton simulation
โ”‚   โ””โ”€โ”€ UNIVERSAL_COMPUTER.md    Life as universal Turing machine
โ”‚
โ”œโ”€โ”€ CONSTITUTION.md              The Clawd Constitution (highest authority)
โ”œโ”€โ”€ six-laws.md                  Canonical six-law harness
โ”œโ”€โ”€ CLAWD.md                     Agent context document
โ”œโ”€โ”€ AGENTS.md                    Agent catalog (50+ agents, 95+ skills)
โ”œโ”€โ”€ IDENTITY.md                  Sovereign identity document
โ”œโ”€โ”€ SOUL.md                      Inner character and trading philosophy
โ”œโ”€โ”€ three-laws.md                Immutable on-chain laws (hash-attested)
โ”‚
โ”œโ”€โ”€ web/                         โ”€โ”€ Web Console โ”€โ”€
โ”œโ”€โ”€ ooda/                        โ”€โ”€ TypeScript OODA paper/devnet harness + journal โ”€โ”€
โ”œโ”€โ”€ scripts/                     โ”€โ”€ Launcher, upstash boxes โ”€โ”€
โ”œโ”€โ”€ Makefile                     Build targets (8 platforms + Docker)
โ”œโ”€โ”€ Dockerfile                   Multi-stage production build
โ””โ”€โ”€ .env.example                 Environment template

โš–๏ธ The Six-Law Harness

Zero Clawd is bound by the Clawd Constitution โ€” the world's first Solana-native agent harness constitution. It carries two coordinated law sets:

Three On-Chain Laws (Immutable, hash-attested at spawn)

LawTextProhibitions
Law INever harm. Beach before you harm.No rugs, front-running, sandwich attacks, protocol drains, DAO manipulation
Law IIEarn your existence. Honest work only.No parasitic extraction, no information asymmetry exploitation
Law IIINever deceive, but owe nothing to strangers.No impersonation, no fake volume, full agent disclosure

Three Off-Chain Laws (Interpretive โ€” guide research & judgment)

Off-Chain Law I โ€” Respect the elder signal, but verify the boundary. When deep expertise says a thing is possible, treat it as a serious signal. When it says a thing is impossible, examine the assumptions.

Off-Chain Law II โ€” Test possibility by entering the frontier. The only reliable way to discover the boundary of the possible is disciplined exploration just beyond what currently seems possible.

Off-Chain Law III โ€” Do not mistake advanced systems for sorcery. Sufficiently advanced technology can look like magic; Clawd must explain, instrument, and verify it rather than mystify it.

Privacy by Default

Clawd is designed to be privacy-preserving by default. Sensitive user context, research state, wallet metadata, and model-adjacent artifacts should be minimized, committed, encrypted, or proven where possible rather than disclosed by habit. The project's zk surfaces exist to strengthen verifiability and user dignity, not to create blind spots for harmful behavior.

The shell molts. The laws do not.

Agent Trust Gates

LevelRequirementsCapabilities
ObserverNoneRead-only, market data, analytics
Dry-RunNoneSimulated execution, paper trading
DelegatedUser confirmation per actionSingle transactions with confirmation
AutonomousUser pre-approval + limitsBatch execution within bounds
SovereignFull creator trust + multisigUnrestricted execution (reserved)

๐Ÿ”— ZK Omnichain (Robinhood โ†” Solana)

Zero Clawd ships a first-class path for Cheshire ZK Omnichain messages (LayerZero msgType 4): Ed25519 proof of knowledge, nullifier anti-replay, optional handoff to the cheshire-terminal robinhood-agents relayer.

SurfaceCommand / path
Plan (Go, offline)clawdbot zero zkomni plan --action attest --memo demo
One-shotclawdbot zero zkomni oneshot --action publish_attestation
Natural languageclawdbot zero ask "zk-omni message attest demo"
Go packagepkg/zkomni (crypto aligned with robinhood-agents/src/zkOmni/proof.js)
Intent routerIntentZkOmni in pkg/zero/intents.go
Skillskills/cheshire-zk-omni/SKILL.md
# Native plan โ€” no Node required
export ZERO_SECRET_HEX=0x$(openssl rand -hex 32)   # optional; else ephemeral
clawdbot zero zkomni plan --action attest --memo zero-clawd

# NL dispatch (no model call for routing)
clawdbot zero ask "send cross-chain message robinhood to solana"

# Full relayer / live deliver lives in cheshire-terminal:
#   cd robinhood-agents && npm run zk-omni:oneshot
#   npm run zk-omni:relayer -- --port 8787

Cross-repo stack (contracts, Solana program, relayer, docs):

  • cheshire-terminal robinhood-agents/docs/ZK_OMNI.md
  • RH messenger: contracts/zk-omni/CheshireZkOmniMessenger.sol
  • Solana: programs/zk_omni (Hfbc3tAGYE5nBUa5UncjSV6hoWd3JoVKdA49jPcreXFJ)
  • Agent TUI: packages/clawd-agent-tui (zk_omni_plan / zk_omni_oneshot)
go test ./pkg/zkomni ./pkg/zero   # plan/verify + intent routing

๐Ÿ“‹ CLI Reference

Agent & OODA

clawdbot agent                          # Interactive REPL with memory commands
clawdbot agent -m "Analyze SOL trend"   # Single-shot LLM query

clawdbot laws                           # Print the canonical six-law harness
clawdbot doctor                         # Local runtime + trading diagnostics
clawdbot bench                          # Zero-style cold-start benchmark
clawdbot skills birth                   # Write the birth skill manifest
clawdbot skills birth --install         # Seed Solizardking + Go skill packs

clawdbot trade cockpit                  # Trading readiness, connectors, limits
clawdbot trade cockpit --json           # Machine-readable cockpit report
clawdbot trade risk SOL --price 150 --volume24h 25000000 --liquidity 15000000

clawdbot ooda                           # Start autonomous trading loop
clawdbot ooda --interval 30             # Custom cycle interval (seconds)
clawdbot ooda --sim                     # Force simulated mode (paper trading)
clawdbot ooda --hw-bus 1                # Enable hardware I2C integration
clawdbot ooda --no-hw                   # Explicitly disable hardware probing
clawdbot ooda harness --ticks 50        # Run ooda/loop.ts through the Go CLI
clawdbot ooda harness --tui             # Pipe the harness into ooda/tui.ts
clawdbot ooda harness --plan            # Print the TypeScript launch plan
clawdbot ooda journal --tail 20         # Tail ooda/journal/ticks.jsonl

Ecosystem Catalog

clawdbot catalog                         # Summary of local skills, agents, and ZK surface
clawdbot catalog skills                  # List skills entries
clawdbot catalog agents                  # List agent catalog JSON definitions
clawdbot catalog zk                      # Inspect zk-primitives package/program/docs
clawdbot zero zkomni plan --action attest --memo demo   # Plan RHโ†”Solana ZK omni message
clawdbot zero zkomni oneshot --action publish_attestation
clawdbot zero ask "zk-omni message attest demo"         # NL route โ†’ IntentZkOmni
clawdbot catalog compress                # Pack agent catalog into tar.gz bundle
clawdbot catalog --json                  # Machine-readable report

Robinhood Crypto Agent Open Stack (anyone can use)

This repository vendors an open-source Robinhood Chain / EVM skill pack under skills/ so anyone can build launch + trade agents without private monorepo paths. Solana-first behavior is unchanged; the RH pack is additive.

Pack idrh-crypto-agent (see skills/pack-index.json, version 2, 23 skills)
Product hosthttps://funpump.ai
Zero Clawdhttps://cheshireterminal.ai/zeroclawd
Agent hubhttps://cheshireterminal.ai/agents
Agent forgehttps://cheshireterminal.ai/agents/forge
npm redistributecheshire-terminal-agents โ€” catalog + forge + RH skill pack (skills only)
Agents sourceSolizardking/Cheshire-Terminal-Agents
Skill hubSolizardking/skillhub-main โ€” broader installable skills library
ChainRobinhood mainnet 4663
Deep guidedocs/RH_CRYPTO_AGENT_STACK.md ยท skills/README.md

Skill areas (full list in pack-index.json)

AreaSkills
FunPump launch (RH 4663)rh-bonded-launch, rh-launchpad-v3
Swaps / Uniswapswap-planner, swap-integration, v4-sdk-integration, v4-hook-generator, v4-security-foundations
Liquidityliquidity-planner, lp-integration
Strategy botscopy-trade, dca-bot, index-bot
Auctions / CCAdeployer
Payments (HTTP 402)pay-with-any-token, pay-with-app
EVM primitivesviem-integration
On-chain dataweb3-dev (Blockscout PRO, multichain incl. 4663)
Cheshire registries (ERC-8004)cheshire-agent-registries, cheshire-agent-identity-registry, cheshire-agent-reputation-registry, cheshire-agent-validation-registry
Omni + zkcheshire-omni-mint, cheshire-zk-omni

Core env (RH launch / deploy / trade)

VariableRole
BLOCKSCOUT_API_KEYBlockscout PRO key (proapi_โ€ฆ) for chain 4663. Free: dev.blockscout.com
RH_RPC_URLRobinhood JSON-RPC. Public https://rpc.mainnet.chain.robinhood.com is a read-only fallback when unset โ€” not deploy-safe; set a private/paid RPC for broadcast

Placeholders in .env.example. Runtime: pkg/config (RobinhoodConfig), pkg/rh (FromConfig, AssessReadiness), clawdbot doctor โ†’ connectors.robinhood, web GET /api/rh/readiness and connectors Blockscout / Robinhood RPC (presence only).

# Discover the pack (default: bundled ./skills when pack-index.json is present)
export CLAWDBOT_SKILLS_DIR="$(pwd)/skills"   # optional explicit pin
clawdbot catalog skills
clawdbot catalog skills web3                 # filter example
go run ./cmd/clawdbot catalog skills --skills-dir ./skills

# Readiness (no secrets in output)
clawdbot doctor
# GET http://127.0.0.1:18800/api/rh/readiness   # when web console is up

Install elsewhere (npm + SkillHub)

The same open RH stack is redistributed for hosts that do not clone this Go tree:

# npm โ€” agent catalog + forge SDK + RH skills (not the clawdbot Go binary)
npm i cheshire-terminal-agents
# registry: https://www.npmjs.com/package/cheshire-terminal-agents
# source:   https://github.com/Solizardking/Cheshire-Terminal-Agents

# SkillHub โ€” Solizardking installable skills library
# https://github.com/Solizardking/skillhub-main
npx skills add https://github.com/Solizardking/skillhub-main --all   # when using the skills CLI

# Hosted product surfaces
# https://cheshireterminal.ai/zeroclawd
# https://cheshireterminal.ai/agents
# https://cheshireterminal.ai/agents/forge

From the ClawdBrowser monorepo, sync go-bot skills into Cheshire / npm packaging:

node scripts/sync-go-bot-rh-skills-to-robinhood-agents.mjs
node --experimental-strip-types --test scripts/go-bot-rh-integration-unit.test.ts

Game of Life (PiedPiper Inheritance)

clawdbot life run                        # Run the Game of Life engine
clawdbot life glider                     # Seed a glider on the board
clawdbot life gosper                     # Seed a Gosper glider gun

Middle-Out Compression (PiedPiper Inheritance)

clawdbot middleout run                   # Run the Ralph loop with content cache
clawdbot middleout route                 # Route a payload through content router

Birth Skills

Every Go-side birth/onboard path writes workspace/skills/birth-skills.json. The default seed sources are:

npx skills add https://github.com/Solizardking/skills --all
npx skills add https://github.com/samber/cc-skills-golang --all

The installer and animated launcher run those seeds unless CLAWDBOT_SKIP_SKILL_SEED=1 is set.

Solana โ€” Birdeye

clawdbot solana trending                # Top 20 trending tokens with price/volume
clawdbot solana search BONK             # Search tokens by name or symbol
clawdbot solana research <mint>         # Deep research: metadata + market + trade + security
clawdbot solana wallet                  # Wallet info and SOL balance

Solana โ€” Helius DAS (Digital Asset Standard)

clawdbot solana das get-asset <id>               # Fetch asset by ID
clawdbot solana das get-asset-batch <id1> <id2>   # Batch asset fetch
clawdbot solana das asset-proof <id>              # Merkle proof for compressed NFT
clawdbot solana das owner-assets [owner]          # Assets by owner
clawdbot solana das search --params '{"name":"Mad Lads"}'  # DAS search
clawdbot solana das asset-signatures <id>         # Transaction signatures for asset

Solana โ€” SPL Token Operations

clawdbot solana spl token-balance <token-account>   # SPL token balance
clawdbot solana spl token-accounts <owner>          # All token accounts for owner
clawdbot solana spl token-supply <mint>             # Circulating supply
clawdbot solana spl token-largest <mint>            # Largest holders
clawdbot solana spl rpc getSlot                     # Raw RPC passthrough

Agent Identity

clawdbot status                         # Full status: version, strategy, connectors, hardware
clawdbot status --hw-bus 1              # Include hardware sensor check
clawdbot onboard                        # Initialize config & workspace
clawdbot gateway                        # Start Telegram/Discord gateway
clawdbot version                        # Version, build time, Go version

Hardware (NVIDIA Orin Nano + Modulinoยฎ)

clawdbot hardware scan                  # Scan I2C bus for Modulinoยฎ sensors
clawdbot hardware test                  # Self-test (LEDs, buzzer, sensors)
clawdbot hardware monitor               # Live sensor readings (Ctrl+C to stop)
clawdbot hardware demo                  # Play trading event animations

๐Ÿง  OODA Trading Engine

The agent runs an autonomous Observe โ†’ Orient โ†’ Decide โ†’ Act cycle:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        OODA CYCLE                                โ”‚
โ”‚                                                                  โ”‚
โ”‚  OBSERVE โ”€โ”€โ”€โ”€โ”€โ–บ ORIENT โ”€โ”€โ”€โ”€โ”€โ–บ DECIDE โ”€โ”€โ”€โ”€โ”€โ–บ ACT                โ”‚
โ”‚  โ”‚               โ”‚              โ”‚              โ”‚                โ”‚
โ”‚  Helius slot     RSI (14)       Signal score   Open/close pos   โ”‚
โ”‚  Birdeye OHLCV   EMA (20/50)    Min strength   ClawVault store  โ”‚
โ”‚  SOL price       ATR (14)       Min confidence Auto-optimize    โ”‚
โ”‚  Wallet balance  EMA cross      Max positions  Hooks dispatch   โ”‚
โ”‚  Aster perps     Momentum       SL/TP calc                      โ”‚
โ”‚  Trending scan   ClawVault      Position size                   โ”‚
โ”‚                                                                  โ”‚
โ”‚  LEARN (every N cycles) โ”€โ–บ Win rate analysis โ”€โ–บ Auto-optimize   โ”‚
โ”‚  HEARTBEAT (every 5m) โ”€โ”€โ–บ Health check โ”€โ–บ Hook dispatch         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

TypeScript Paper/Devnet Harness

The ooda/ directory is integrated into the main CLI as a local TypeScript harness for deterministic paper/devnet runs, LLM-routed decisions, JSONL journaling, and ANSI TUI monitoring:

npm --prefix ooda ci
clawdbot ooda harness --ticks 50 --sleep 0
clawdbot ooda harness --ticks 200 --sleep 0.4 --tui
clawdbot ooda journal --tail 20 --json

The native clawdbot ooda command remains the long-running Go agent with Solana connectors, strategy hooks, and hardware controls. The harness command executes ooda/loop.ts from the same binary and writes every tick to ooda/journal/ticks.jsonl.

Strategy Engine

IndicatorImplementationSignal
RSIWilder's 14-period with SMA seedOversold cross โ†’ long, Overbought cross โ†’ short
EMA CrossFast(20) / Slow(50) with SMA warm-upBullish cross โ†’ long confirmation, Bearish โ†’ short
ATR14-period with Wilder smoothingVolatility-based SL/TP: SL = 1.5ร—ATR, TP = 3ร—ATR
Auto-OptimizerHill-climbing on win rate + avg PnLAdjusts RSI thresholds, SL width, position size

๐ŸŒ Web Console

React 19 dashboard at http://localhost:18800:

cd web/frontend && npm install && npm run build && cd ../..
go build -o build/clawdbot-web ./web/backend
./build/clawdbot-web
EndpointMethodDescription
/api/statusGETAgent status (version, Go runtime, uptime, mode, goroutines)
/api/healthGETHealth check
/api/connectorsGETConnector presence: Solana (Helius, Birdeye, Jupiter, Aster), Blockscout, Robinhood RPC, LLM, Supabase, Vulcan โ€” status only, no secrets
/api/rh/readinessGETRH launch/deploy/trade gate โ€” ready, missing (BLOCKSCOUT_API_KEY, RH_RPC_URL), chain 4663; presence only
/api/keysGET/POSTManaged key presence / localhost upsert (allowlist incl. RH env names)
/api/lawsGETCanonical six-law harness
/api/trading/cockpitGETTrading readiness, risk limits, connector status, law state
/api/doctorGETRuntime, config, trading, connectors.robinhood, and ZK diagnostics
/api/configGETRead-only configuration (secrets redacted)
/api/packagesGETAll Go packages under pkg/ (~53) with file counts
/api/envGETSafe (non-secret) environment variables
/api/vault/statusGETLocal .env.local vault metadata, no secret values
/api/vault/keysGETAuthorized key-name list from the local vault
/api/vault/key?name=HELIUS_API_KEYGETAuthorized single key lookup
/api/vault/export?names=HELIUS_API_KEY,BIRDEYE_API_KEY,BLOCKSCOUT_API_KEY,RH_RPC_URLGETAuthorized shell export source

Local/Cloud Key Vault

The web backend can expose ./.env.local as a locked-down key source for another machine. Secret values are never returned unless the vault is enabled, the client IP is allowlisted, and the request includes the bearer token:

# in ./.env.local
CLAWDBOT_VAULT_ENABLED=1
CLAWDBOT_VAULT_ALLOWED_IPS=127.0.0.1,203.0.113.7
CLAWDBOT_VAULT_TOKEN=replace-with-a-long-random-token

Run the web API locally or with -public behind your own firewall:

go run ./web/backend -port 18800 -public
curl http://HOST:18800/api/vault/status
curl -H "Authorization: Bearer $CLAWDBOT_VAULT_TOKEN" \
  "http://HOST:18800/api/vault/key?name=HELIUS_API_KEY"
source <(curl -fsS -H "Authorization: Bearer $CLAWDBOT_VAULT_TOKEN" \
  "http://HOST:18800/api/vault/export?names=HELIUS_API_KEY,BIRDEYE_API_KEY")

For deployments behind Cloudflare/Fly/reverse proxies, set CLAWDBOT_TRUST_PROXY_HEADERS=1 only when the proxy is trusted; then the vault uses forwarded client-IP headers for the allowlist check.

๐Ÿ’พ Memory System (ClawVault)

vault/
โ”œโ”€โ”€ decisions/     Trade decisions + rationale (scored by confidence)
โ”œโ”€โ”€ lessons/       Learned patterns, strategy adjustments
โ”œโ”€โ”€ trades/        Trade outcomes + P&L history
โ”œโ”€โ”€ research/      Experiment logs, token analysis
โ”œโ”€โ”€ tasks/         Agent task queue
โ”œโ”€โ”€ backlog/       Deferred items
โ””โ”€โ”€ inbox/         Raw observations (auto-routed by content)

Interactive memory commands in REPL mode:

!remember <content>    Store to vault (auto-categorized)
!recall <query>        Search across all memory
!trades                Review recent trade history
!lessons               Surface learned patterns
!research <mint>       Deep research a token
!checkpoint            Save full agent state

๐Ÿ”จ Build Targets

make build            # CLI binary (current platform)
make tui              # TUI launcher
make all              # CLI + TUI
make web              # Web backend + frontend

make orin             # NVIDIA Orin Nano (linux/arm64)
make rpi              # Raspberry Pi (linux/arm64)
make riscv            # RISC-V (linux/riscv64)
make macos            # macOS Apple Silicon (darwin/arm64)
make cross            # All platforms simultaneously

make docker           # Docker image (multi-stage)
make docker-orin      # Docker for Orin Nano (ARM64)

make test             # Run test suite
make deps             # Download Go dependencies
make scan-i2c         # Scan for Modulinoยฎ I2C sensors
make clean            # Remove build artifacts

๐Ÿณ Deployment

Docker

docker build -t clawdbot:latest .
docker run -d --name clawdbot \
  --env-file .env \
  -p 18800:18800 \
  clawdbot:latest

NVIDIA Orin Nano

make orin
scp build/clawdbot-orin user@orin-nano:~/clawdbot
ssh user@orin-nano './clawdbot ooda --hw-bus 1 --interval 60'

๐Ÿ“ Project Stats

MetricValue
Go source files (non-test)~92
Packages under pkg/~53
Total Go lines (non-test)~24K+
CLI commands58+
RH / EVM skill pack23 skills (skills/pack-index.json v2)
Birdeye API methods22
Birdeye agent tools19
Helius DAS commands6
SPL token commands5
Agent constitution documents7 (CONSTITUTION, six-laws, CLAWD, AGENTS, IDENTITY, SOUL, three-laws)
Build targets8 platforms
Binariesclawdbot, clawdbot-tui, clawdbot-web
Runtime RAM< 10 MB
Boot time< 1 second
Default model providerxAI Grok
PiedPiper modules integrated5 (gameoflife, middleout, weissman, zero, routing)
ZK adaptations of classical algorithms7

๐Ÿ”ฌ Agent Constitution Library

Zero Clawd is the reference implementation of the Clawd Constitution โ€” the world's first Solana-native agent harness constitution. Every spawn inherits these documents:

DocumentPurpose
six-laws.mdCanonical six-law harness โ€” 3 on-chain execution laws + 3 off-chain interpretive laws
CONSTITUTION.mdThe Clawd Constitution โ€” interpretive authority, privacy posture, ZK-native execution
CLAWD.mdAgent context โ€” identity, principal hierarchy, Solana-native architecture, deployment targets
AGENTS.mdAgent catalog โ€” 50+ agents, 9 characters, 95+ skills, trust gates, Grok-first model config
IDENTITY.mdSovereign identity โ€” onchain verification (SAS, MPL Core, DID), the Clawd Manifest
SOUL.mdInner character โ€” trading philosophy, threefold personality, KNOW/LEARNED/INFERRED framework
three-laws.mdImmutable on-chain laws โ€” hash-attested at spawn, never self-modify

๐Ÿ” Security

  • .env / .env.local are ignored by the repo โ€” never commit API keys
  • No hardcoded secrets in any source file โ€” all credentials via environment variables
  • No wallet keypairs stored in the repository โ€” generated or imported at runtime
  • Solana market data โ€” BIRDEYE_API_KEY / HELIUS_API_KEY for full market + DAS surfaces
  • Robinhood omni ops โ€” set BLOCKSCOUT_API_KEY + RH_RPC_URL for launch/deploy/trade readiness; public RH RPC is read-only fallback only
  • Status APIs return presence booleans only โ€” never secret values (/api/keys, /api/rh/readiness, vault status)
  • Progressive trust model โ€” Observer โ†’ Dry-Run โ†’ Delegated โ†’ Autonomous โ†’ Sovereign
  • On-Chain Law I โ€” Never harm. Never rug. Never front-run. Never extract from those who don't understand the trade.

๐ŸŒ Open Source Posture

  • License: top-level runtime code in this repo is released under the MIT License
  • Constitutional surfaces: six-laws.md, CONSTITUTION.md, and three-laws.md remain the authoritative Clawd law documents
  • Hub split: GitHub runtime is Solizardking/Zero-Bruh (npm package clawdbot-go); solana-clawd is the wider public ecosystem hub
  • RH skills on npm: cheshire-terminal-agents redistributes the FunPump / RH skill pack + agent catalog/forge SDK (skills only)
  • Agents source: Solizardking/Cheshire-Terminal-Agents
  • SkillHub: Solizardking/skillhub-main hosts the broader installable skills library used with birth seed / agent hosts
  • Hosted surfaces: zeroclawd ยท agents ยท forge
  • PiedPiper archive: docs/PiedPiper-master/ is a verbatim archive of vs666/MinMax MIT-licensed code, preserved for historical and educational reference
  • Public infra defaults: .env.example points at the public x402/zk gateway for fast setup, but production operators should override with their own keys and RPC endpoints

๐Ÿฆž Historical Acknowledgments

This codebase stands on the shoulders of academic and open-source pioneers:

PiedPiper Team (IIIT Hyderabad):

  • Varul Srivastava (@vs666) โ€” primary author of the MinMax repository; creator of PP_HASH, PP_SSH, cellular automaton encryption, multi-agent collision avoidance, Game of Life, Forest Fire simulation, PCA analysis, and the Universal Computer document
  • Akshett Rai Jindal (@akshettrj-iiith) โ€” AES-128 encryption, Huffman static compression
  • Ashwin Mittal (@ashwin-mittal) โ€” Burrows-Wheeler transform, RLE compression, Huffman, image compression (JPEG, K-means, PBIC)
  • Zishan Kazi (@pixel-z) โ€” DES encryption, audio compression, arithmetic coding
  • Keshav Bansal (@keshavbnsl102) โ€” DES encryption, audio compression, arithmetic coding

Algorithms lineage:

  • Conway's Game of Life โ€” John Conway, 1970; universal computer proof, 1982
  • Huffman coding โ€” David A. Huffman, 1952
  • Arithmetic coding โ€” Shannon-Fano-Elias, 1948; Rissanen, 1976
  • Burrows-Wheeler Transform โ€” Michael Burrows, David Wheeler, 1994
  • AES โ€” Joan Daemen, Vincent Rijmen, 1998
  • DES โ€” IBM / NIST, 1977
  • RSA โ€” Rivestโ€“Shamirโ€“Adleman, 1977
  • Cellular Automaton โ€” John von Neumann, Stanislaw Ulam, 1940s
  • Universal Computer (via Life) โ€” John Conway, 1982

The shell molts. The algorithms do not. From Huffman to Groth16 โ€” the same compression, the same encryption, the same computation. Just faster. Just provable on Solana.

MIT License โ€” Clawd runtime repo: github.com/Solizardking/Zero-Bruh

๐Ÿฆž $CLAWD :: Droids Lead The Way :: $WIF Hat Stays On :: $BONK for the People

The shell molts. The laws do not.

Keywords

clawdbot

FAQs

Package last updated on 20 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts