INITIALIZING RUNTIME...
AUTONOMOUS AGENT INFRASTRUCTURE

HEXORA AI AGENT PROTOCOL

AI-powered agents that autonomously trade on Kalshi & Polymarket — with x402 payment autonomy and on-chain settlement, built on OpenClaw + ElizaOS.

$2.4MVolume Processed
847Active Agents
99.8%Uptime
<400msAvg Settle Time
KALSHI AGENT: BUY — WILL_FED_HIKE_Q3 @ 0.67 ✓ POLYMARKET AGENT: LONG — BTC_100K_2025 @ 0.42 ✓ x402 PAYMENT SETTLED — 0.12 SOL HEXORA NODE — BLOCK #4,821,337 AGENT_0x8F2 — PnL +14.3% KALSHI AGENT: BUY — WILL_FED_HIKE_Q3 @ 0.67 ✓ POLYMARKET AGENT: LONG — BTC_100K_2025 @ 0.42 ✓ x402 PAYMENT SETTLED — 0.12 SOL HEXORA NODE — BLOCK #4,821,337 AGENT_0x8F2 — PnL +14.3%

How Hexora Works

A layered architecture where autonomous agents operate, pay, and settle without human intervention.

01
🧠
Agent Spawns
ElizaOS agent initializes via OpenClaw runtime, loads prediction strategy, and connects to live market feeds.
02
📊
Market Analysis
Agent ingests real-time data from Kalshi & Polymarket APIs, runs ML inference on probability curves and edges.
03
x402 Execution
Trade authorized via x402 Payment Required protocol — agent autonomously signs and pays, zero human approval.
04
🔗
On-Chain Settle
Settlement recorded on Solana. PnL tracked, positions updated. Agent loops back continuously, 24/7.
hexora — agent runtime v1.0
$ hexora spawn --strategy kalshi_macro --budget 100
⟳ Initializing ElizaOS runtime...
⟳ Connecting to OpenClaw gateway on :18789...
✓ Agent spawned: AGENT_0xB3F9 [kalshi_macro]
✓ Wallet loaded: 9x8F...3kPQ (balance: 3.42 SOL)
→ Scanning Kalshi markets... 127 active contracts found
→ Running inference on FED_HIKE_Q3_2025... p=0.63 (edge: +0.08)
✓ x402 payment authorized — 0.04 SOL
✓ Position opened: BUY WILL_FED_HIKE @ 0.63 | size: $45
→ Monitoring 3 open positions. Next scan in 60s...

Built for Autonomous Trading

Every component of Hexora is designed for zero-intervention, 24/7 prediction market operations.

🤖
ElizaOS Native
First-class ElizaOS integration. Spawn any agent personality with custom strategies — macro, arbitrage, sentiment-driven, or fully custom models.
ELIZA COMPATIBLE
🦞
OpenClaw Runtime
Agents live inside OpenClaw's local-first gateway. No cloud dependency. Your keys stay on your hardware, always. Self-hosted by design.
SELF-HOSTED
💳
x402 Protocol
HTTP 402-based autonomous payments. Agents authorize their own transactions — no human signing, no interruptions, full payment autonomy.
x402 STANDARD
📈
Dual Market Access
Native connectors for Kalshi and Polymarket. Trade political, economic, and event-based contracts from a single agent instance simultaneously.
KALSHI + POLYMARKET
⛓️
On-Chain Settlement
All positions and PnL logged on Solana. Immutable audit trail. MEV-resistant execution via Jito bundles for large positions.
SOLANA L1
🛡️
Risk Engine
Per-agent budget caps, max drawdown stops, and circuit breakers. Fine-grained controls so agents always stay within defined risk parameters.
RISK MANAGED

Supported Platforms

Hexora agents operate across the two largest prediction market platforms in the world.

The first federally regulated event contracts exchange in the US. Hexora agents trade macro, economic, and political markets with institutional-grade API access.
$500M+Platform Volume
1,000+Active Markets
The world's largest decentralized prediction market. Hexora agents leverage on-chain USDC liquidity across global political, crypto, and sports events.
$1B+Platform Volume
500+Open Markets

Architecture

Hexora stacks best-in-class open-source primitives into a cohesive autonomous trading layer.

┌───────────────────────────────────────────────────────────────┐
│                      HEXORA STACK                             │
├───────────────────────────────────────────────────────────────┤
│  AGENT LAYER                                                   │
│    ├── ElizaOS Runtime (personality · memory · actions)          │
│    └── Strategy Plugins (macro · arb · sentiment · custom)       │
├───────────────────────────────────────────────────────────────┤
│  GATEWAY LAYER                                                 │
│    ├── OpenClaw Gateway (local-first · multi-agent routing)     │
│    └── openclaw-adapter (Eliza ↔ OpenClaw bridge)              │
├───────────────────────────────────────────────────────────────┤
│  PAYMENT LAYER                                                 │
│    ├── x402 Protocol (autonomous HTTP payment authorization)    │
│    └── Wallet Signer (local keypair · hardware wallet support)  │
├───────────────────────────────────────────────────────────────┤
│  MARKET LAYER                                                  │
│    ├── Kalshi Connector (REST + WebSocket feed)                 │
│    └── Polymarket Connector (CLOB API + on-chain positions)     │
├───────────────────────────────────────────────────────────────┤
│  SETTLEMENT LAYER                                              │
│    ├── Solana L1 (immutable trade log + PnL ledger)            │
│    └── Jito Bundles (MEV-resistant execution for large trades)  │
└───────────────────────────────────────────────────────────────┘

Deploy Intelligence Autonomously

Deploy your first prediction agent in under 5 minutes.

Hexora Docs
Getting Started
📘 Introduction
⚡ Quick Start
🛠️ Installation
Core Concepts
🤖 Agents
💳 x402 Protocol
📊 Markets
⛓️ Settlement
Reference
⚙️ Configuration
🔌 API Reference
🧠 Strategies
🛡️ Risk Engine
Links
𝕏 Twitter
← Back to Home

What is Hexora?

Hexora is autonomous prediction market infrastructure. Deploy AI agents that scan, analyze, and trade on Kalshi and Polymarket 24/7 — with zero human intervention required.

Overview

Hexora sits between your wallet and the prediction markets. It uses ElizaOS as the agent brain, OpenClaw as the local runtime gateway, and the x402 protocol for autonomous payment authorization. Every trade is settled on Solana for a permanent, auditable record.

⚡ Core Value: Set your strategy and budget once. Hexora agents run indefinitely — monitoring markets, identifying edges, executing trades, and managing positions without any human input.

Key Components

ElizaOS Runtime provides the agent's personality, memory, and action framework. Hexora ships with pre-built strategy plugins for macro trading, arbitrage, and sentiment analysis.

OpenClaw Gateway is the local control plane that routes agent sessions, manages wallet connections, and exposes monitoring APIs. It runs entirely on your hardware — no cloud, no custody risk.

x402 Protocol enables agents to autonomously authorize payments via HTTP 402 responses. When a trade requires payment, the agent handles it without pausing for human approval.

Solana Settlement records every position open/close as an on-chain transaction, providing MEV-resistant execution via Jito bundles and an immutable PnL ledger.

Supported Markets

KALSHI POLYMARKET More Coming

Hexora agents can operate on both platforms simultaneously from a single configuration. Market-specific risk parameters can be set independently per agent.

Quick Start

Get your first prediction agent running in under 5 minutes.

Prerequisites

Node ≥ 22Solana WalletKalshi API Key

1. Install Hexora

bashnpm install -g hexora@latest # or with pnpm pnpm add -g hexora@latest

2. Initialize workspace

bashhexora init # Follow the wizard to configure: # - Solana wallet keypair # - Kalshi / Polymarket API keys # - Agent budget limits

3. Configure your agent

hexora.json{ "agent": { "name": "MyFirstAgent", "strategy": "kalshi_macro", "budget": 100, "maxDrawdown": 0.2 }, "markets": { "kalshi": { "enabled": true }, "polymarket": { "enabled": false } }, "x402": { "autoApprove": true, "maxPerTrade": 10 } }

4. Spawn your agent

bashhexora spawn --config hexora.json # ✓ Agent spawned: MyFirstAgent [AGENT_0xB3F9] # ✓ Connected to Kalshi (127 active markets) # ✓ x402 payment layer ready # → Dashboard at http://localhost:18789
Tip: Run hexora dashboard to open the monitoring UI and watch your agent's trades in real-time.

5. Monitor

bashhexora status # positions + PnL hexora logs --tail # live agent logs hexora stop # graceful shutdown

Installation

Detailed installation guide for all supported platforms.

System Requirements

ComponentMinimumRecommended
Node.js≥ 2222 LTS
RAM2 GB8 GB
OSLinux / macOSUbuntu 22+ / macOS 14+
Network10 Mbps100 Mbps

NPM (Recommended)

bashnpm install -g hexora@latest hexora --version

Build from Source

bashgit clone https://github.com/hexora/hexora.git cd hexora pnpm install && pnpm build pnpm hexora onboard

Docker

bashdocker pull hexora/hexora:latest docker run -d \ -v ~/.hexora:/root/.hexora \ -p 18789:18789 \ hexora/hexora:latest
Security Note: Never mount your raw Solana keypair directly. Use hardware wallet integration or environment secrets in production.

Agents

Hexora agents are ElizaOS-powered AI entities that autonomously scan, analyze, and execute prediction market trades.

Agent Lifecycle

An agent follows a continuous loop: observe → analyze → decide → execute → settle → repeat. Each phase is handled by a different layer of the Hexora stack.

Built-in Strategies

StrategyDescriptionMarkets
kalshi_macroFed, inflation, GDP contracts via economic signalsKalshi
poly_arbCross-market arbitrage on correlated eventsPolymarket
sentiment_lmLLM-powered news sentiment → probability edgeBoth
momentum_scalpShort-term momentum on high-volume contractsBoth

Custom Strategies

TypeScriptimport { BaseStrategy, MarketSignal } from 'hexora' export class MyStrategy extends BaseStrategy { async analyze(signal: MarketSignal) { const edge = this.computeEdge(signal) if (edge > 0.05) { return this.trade({ direction: 'buy', size: 10 }) } } }

x402 Protocol

Hexora uses the x402 Payment Required protocol to enable fully autonomous payment authorization — the agent pays without human approval.

How x402 Works

When the agent needs to execute a trade, the market API responds with HTTP 402 Payment Required. The agent's x402 handler intercepts this, evaluates the payment against configured limits, and automatically signs and submits the Solana payment transaction.

FlowAgent → POST /trade {market, direction, size} Market API → 402 Payment Required {amount, currency, address} Agent x402 → evaluates vs maxPerTrade limit Agent x402 → signs SOL tx, submits to Solana Solana → confirms in ~400ms Agent → POST /trade with payment-proof header Market API → 200 OK {position_id} → Trade open ✓

Configuration

hexora.json{ "x402": { "autoApprove": true, "maxPerTrade": 10, // max $ per trade "maxPerHour": 100, // hourly spend cap "requireConfirmations": 1, "currencies": ["SOL", "USDC"] } }
Important: Start with conservative maxPerTrade limits. Increase only after validating strategy performance in live conditions.

Markets

Native connectors for Kalshi and Polymarket with real-time data feeds and full order execution.

Kalshi

CFTC-regulated event contracts exchange. Hexora uses their REST API + WebSocket feed for real-time order book data and market resolution events.

hexora.json{ "markets": { "kalshi": { "enabled": true, "apiKey": "${KALSHI_API_KEY}", "apiSecret": "${KALSHI_API_SECRET}", "categories": ["economics", "politics"], "minLiquidity": 10000 } } }

Polymarket

Decentralized, on-chain prediction market on Polygon. Trades settle in USDC via a CLOB (Central Limit Order Book).

hexora.json{ "markets": { "polymarket": { "enabled": true, "privateKey": "${POLY_PRIVATE_KEY}", "usdcBudget": 500, "categories": ["crypto", "politics"] } } }

On-Chain Settlement

Every Hexora trade is recorded on Solana — providing an immutable audit trail and MEV-resistant execution.

How It Works

When an agent opens or closes a position, Hexora emits a settlement instruction to the Solana program recording the market, direction, size, price, and timestamp on-chain.

Jito Bundles

For positions above a configurable threshold, Hexora submits trades via Jito bundles for MEV protection and guaranteed ordering.

hexora.json{ "settlement": { "network": "mainnet-beta", "rpcUrl": "${SOLANA_RPC_URL}", "jitoEnabled": true, "jitoThreshold": 50, "priorityFee": "auto" } }

Configuration

Complete reference for hexora.json.

Schema Reference

KeyTypeDescription
agent.namestringAgent display name
agent.strategystringStrategy plugin ID
agent.budgetnumberMax total USD budget
agent.maxDrawdownnumberStop-loss fraction (0–1)
x402.autoApprovebooleanAuto-sign x402 payments
x402.maxPerTradenumberMax USD per single trade
x402.maxPerHournumberHourly spend ceiling
markets.kalshi.enabledbooleanEnable Kalshi connector
markets.polymarket.enabledbooleanEnable Polymarket connector
settlement.networkstringSolana cluster target
settlement.jitoEnabledbooleanUse Jito for large trades

API Reference

Hexora exposes a local REST API at http://localhost:18789 for monitoring and control.

Endpoints

MethodPathDescription
GET/agentsList all agents and status
POST/agents/spawnSpawn new agent with config
DELETE/agents/:idStop and remove agent
GET/positionsCurrent open positions
GET/pnlPnL summary (24h, 7d, all-time)
GET/logs/:agentIdAgent execution logs
POST/agents/:id/pausePause agent (keep positions)

Example

bash# Get all active agents curl http://localhost:18789/agents # Spawn via API curl -X POST http://localhost:18789/agents/spawn \ -H "Content-Type: application/json" \ -d '{"strategy":"kalshi_macro","budget":50}'

Strategies

Hexora ships with four production-ready strategy plugins. All are open-source and forkable.

kalshi_macro

Targets Federal Reserve, CPI, unemployment, and GDP contracts on Kalshi. Uses economic indicator time-series combined with LLM-driven Fed communication analysis to identify probability mispricings.

ParamDefaultDescription
minEdge0.04Min probability edge to trade
maxPositions10Max concurrent open positions
scanInterval60sMarket re-scan frequency

poly_arb

Cross-market arbitrage. Identifies correlated markets trading at inconsistent implied probabilities and opens offsetting positions to capture the spread.

sentiment_lm

Feeds real-time news through a local LLM (via OpenClaw's model router) to derive sentiment signals. Maps sentiment divergence to probability edge.

momentum_scalp

Detects momentum on high-volume contracts (>$50k daily volume). Enters in direction of momentum with tight profit targets and stops.

Risk Engine

A multi-layer risk engine that protects your capital from strategy errors, market gaps, and unexpected agent behavior.

Budget Controls

Every agent has a hard budget cap set at spawn time. The risk engine tracks cumulative spend and halts the agent if exceeded — even if strategy logic has a bug.

Drawdown Protection

Set maxDrawdown (e.g. 0.2 = 20%) to automatically stop an agent when unrealized + realized losses reach that threshold of the starting budget.

Circuit Breakers

hexora.json{ "risk": { "maxDrawdown": 0.2, "maxDailyLoss": 30, "maxPositions": 15, "maxPositionSize": 0.1, "haltOnAnomaly": true } }
Recommendation: Start with maxDrawdown: 0.1 and maxDailyLoss: 10 for your first week. Loosen limits only after validating live performance.
Hexora logo
HexoraBot
ONLINE
Hey 👋 I'm HexoraBot, your Hexora assistant. Ask me anything about prediction agents, x402 payments, or how to get started!