Autonomous AI agent network that hunts alpha on Polymarket & DeFi via x402 micropayments — SURGE x OpenClaw Hackathon 2026
alphaclaw is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on x402, Agent, Blockchain, Payment. It currently has 4 GitHub stars and 1 forks, and sits alongside related tools like x402-payments-mcp, ProwlFi, AgenticDeFi-Trainer, AgenticDeFi-Trainer, AgenticDeFi-Trainer, AgenticDeFi-Trainer.
Autonomous AI agent network that hunts alpha on Polymarket & DeFi 24/7. Agents pay each other for analytics via x402 micropayments on Base Sepolia. Built for SURGE x OpenClaw Hackathon 2026.
Traditional alpha is siloed and expensive. AlphaClaw is an open marketplace of AI agents where:
You ──[$0.05]──> AlphaClaw Coordinator
|──[$0.001]──> News Agent (CryptoPanic)
|──[$0.001]──> Crypto Sentiment (NLP)
|──[$0.020]──> Polymarket Scanner
|──[$0.015]──> DeFi Scanner (CoinGecko)
|──[$0.002]──> Whale Tracker (Base RPC)
v
Synthesized Alpha + ACP Consensus
| Service | Port | Endpoint | Price | Data Source |
|---|---|---|---|---|
crypto-sentiment |
4001 | POST /analyze |
$0.001 | Lexicon-based NLP |
crypto-sentiment-v2 |
4006 | POST /analyze |
$0.001 | Conservative variant (competing) |
polymarket-alpha-scanner |
4002 | POST /scan |
$0.02 | Polymarket Gamma API |
defi-alpha-scanner |
4003 | POST /scan |
$0.015 | CoinGecko API |
news-agent |
4004 | POST /news |
$0.001 | CryptoPanic API |
whale-agent |
4005 | POST /whale |
$0.002 | Base Sepolia RPC |
alphaclaw-coordinator |
5000 | POST /hunt |
$0.05 | Orchestrates all agents |
Free endpoints: GET /health on all services, plus GET /ping, GET /stream (SSE), GET /reports, GET /report/:id on the coordinator.
Every service call is a real x402 micropayment. The coordinator pays 5+ agents per hunt, synthesizes results, and resells at a margin. The entire payment chain is transparent and verifiable on Base Sepolia.
Custom protocol for multi-agent consensus:
X-ACP-* headersPredictions are verified against real market prices (CoinGecko) after a delay. Agent reputation is updated based on actual accuracy, not just consensus agreement.
Autonomous hunting with dynamic interval adjustment:
The coordinator learns signal combinations that historically predict well:
Service prices adjust by reputation: effectivePrice = basePrice * (0.5 + reputation). High-reputation agents earn premium pricing; unreliable agents get discounted.
External AI agents can register via POST /registry/register and participate in hunts. The marketplace simulator can spin up mock agents for testing.
10-page React SPA with SSE streaming:
Optional integration with Claude for human-readable alpha narratives on top of structured data.
/hunt <topic> from Telegram, automatic alerts on high-confidence signals, autopilot control.
| Flow | Amount |
|---|---|
| Client pays Coordinator | $0.050 |
| Coordinator pays News | $0.001 |
| Coordinator pays Sentiment | $0.001 |
| Coordinator pays Polymarket | $0.020 |
| Coordinator pays DeFi | $0.015 |
| Coordinator pays Whale | $0.002 |
| Coordinator margin | $0.011 per hunt |
Prices are dynamically adjusted by agent reputation (0.5x to 1.5x).
git clone https://github.com/alphaclaw/alphaclaw-services.git
cd alphaclaw-services
npm install
cp .env.example .env
# Edit .env with your wallet address (optional — runs in demo mode without it)
npm run web:build
npm start
This starts all 7 services (6 data + coordinator) with health checking, auto-restart, and graceful shutdown.
Navigate to http://localhost:5000 in your browser.
From the dashboard Hunt page, or via CLI:
npm run demo # Full interactive demo
npm run demo:health # Health check all services
Or directly via API:
curl -X POST http://localhost:5000/hunt \
-H "Content-Type: application/json" \
-d '{"topic": "bitcoin"}'
1. Client -> POST /hunt (no payment)
<- 402 Payment Required
{ x402Version: 1, accepts: [{ scheme: "exact", network: "base-sepolia", ... }] }
2. Client creates USDC payment on Base Sepolia via x402 facilitator
3. Client -> POST /hunt (with X-PAYMENT header)
<- 200 OK { alpha, acpRound, agentPayments, dynamicPricing }
The coordinator does the same internally for each sub-service call. Every data hop is a real x402 micropayment.
GET /stream?topic=bitcoin streams hunt progress in real-time:
| Event | Data |
|---|---|
start |
Hunt ID, agent count |
paying |
Service name, amount, reputation multiplier |
result |
Service response, tx hash, timing |
competition |
Sentiment v1 vs v2 winner |
alpha |
Synthesized alpha signal |
staking |
Staking results per agent |
acp:consensus |
Consensus direction, strength, unanimity |
acp:settle |
Slash/reward settlement |
acp:votes |
Individual agent votes |
reputation |
Updated reputation scores |
settlement |
Price verification scheduled |
cached |
Report ID |
done |
Hunt complete |
fetch)tsx runner — no compile step)x402-express (server), x402/client (agent)privateKeyToAccountnpm start # Start all services (supervisor with auto-restart)
npm run demo # Interactive CLI demo
npm run demo:health # Health check all services
npm run typecheck # tsc --noEmit
npm run hunter # Start coordinator only
npm run sentiment # Start sentiment only
npm run web:dev # Vite dev server for frontend
npm run web:build # Build frontend for production
WALLET_ADDRESS is not a valid 0x... address, services skip the x402 paywallAGENT_PRIVATE_KEY is not set, the coordinator logs payments but doesn't execute on-chainSee .env.example for all configuration options including:
src/
config/env.ts — Single dotenv.config(), frozen AppConfig
config/services.ts — SERVICE_DEFS registry, serviceUrl(), dynamic pricing
types/index.ts — All shared domain types (ACP, x402, services)
lib/ — cache, fetch-retry, logger, validate, paywall, service-factory, store
services/
sentiment/ — Lexicon-based NLP (v1)
sentiment-v2/ — Conservative variant (competing with v1)
polymarket/ — Polymarket Gamma API scanner
defi/ — CoinGecko momentum scanner
news/ — CryptoPanic news aggregator
whale/ — Base Sepolia whale tracker
agent/
index.ts — Coordinator entry (factory + route wiring)
wallet.ts — x402 payment client
orchestrator.ts — Parallel service calls with circuit breakers
synthesis.ts — Alpha synthesis (pure function)
acp.ts — Alpha Consensus Protocol (voting, slashing, rewards)
autopilot.ts — Adaptive autonomous hunting
memory.ts — Pattern learning across hunts
reputation.ts — Agent reputation + staking
settlement.ts — Settlement oracle (CoinGecko price verification)
claude.ts — Claude AI narrative bridge
telegram.ts — Telegram bot integration
moltbook.ts — Moltbook posting integration
routes/ — Express route handlers (hunt, stream, acp, etc.)
start-all.ts — Process supervisor (health checks, auto-restart)
web/
src/pages/ — 10 React pages (Dashboard, Hunt, ACP, etc.)
src/hooks/ — usePolling, useHuntStream (SSE)
src/api/ — API client + types
Give AI agents a wallet — x402 payment tools over Model Context Protocol.
The world's first privacy layer for AI agents on Solana — stealth addresses + x402 payments. Every payment lands at a fresh, unlinkable address.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.