Skip to main content
OpenClaw is a multi-platform Claude bot framework that runs on WhatsApp, Telegram, Discord, and Slack. The Horizon skill lets users trade prediction markets through natural conversation on any of these platforms.

How It Works

The OpenClaw skill provides a CLI script that Claude calls to interact with the Horizon engine:
Each command prints JSON to stdout. Claude interprets the JSON and responds in natural language.

Installation

The fastest way to add the Horizon trader skill to your OpenClaw bot:
1

Install the skill from ClawHub

Or with npx (no global install needed):
2

Install the Horizon SDK

3

Set environment variables

In your OpenClaw .env or environment:
4

Restart OpenClaw

The bot will discover the horizon-trader skill from SKILL.md on startup.

Option B: Manual install from source

1

Install Horizon

2

Copy the skill to your OpenClaw skills directory

Or if you’ve installed Horizon as a package, the skill is at:
3

Set environment variables

In your OpenClaw .env or environment:
4

Restart OpenClaw

The bot will discover the horizon-trader skill from SKILL.md on startup.

Commands

The skill exposes these commands via the CLI script:

Portfolio

Trading

Discovery

Kelly Sizing

Risk Management

Feed Data & Health

Contingent Orders

Event Discovery

Wallet Analytics (Polymarket - no auth required)

Hedging & Cross-Market

Account & Credentials

Simulation & Arbitrage

Conversation Examples

Telegram

WhatsApp

SKILL.md Reference

The SKILL.md file tells Claude when and how to use the skill:
The body contains natural language instructions for:
  • When to activate (user asks about trading, positions, markets)
  • Command syntax with examples
  • Output format (JSON)
  • Safety notes (confirm before submitting orders)

Output Format

All commands return JSON. On success:
On error:
The bot interprets the JSON and responds in natural language, never showing raw JSON to the user.

Pipeline Features (v0.4.0)

The Horizon SDK includes advanced pipeline components for automated strategies:
  • Regime Detection (regime_signal) - volatility/trend regime classification
  • Feed Guard (feed_guard) - auto-activates kill switch when feeds go stale
  • Inventory Skew (inventory_skewer) - shifts quotes to reduce position risk
  • Adaptive Spread (adaptive_spread) - dynamically adjusts spread based on market conditions
  • Execution Tracker (execution_tracker) - monitors fill quality and adverse selection
  • Multi-Strategy - run different pipelines per market via dict config
  • Cross-Market Hedging (cross_hedger) - generates hedge quotes when portfolio delta exceeds threshold
These are used with hz.run() in Python strategies. See the full documentation for details.

Deployment

Deploy the OpenClaw skill with the Horizon trader to your preferred platform. Full deployment guide: https://docs.openclaw.ai/tools/clawhub