Kalshi for Openclaw

The Kalshi skill for Openclaw Skills enables automated trading and market analysis on the first CFTC-regulated prediction market exchange.

ghsmc
v1.0.0
Feb 14, 2026
7
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install kalshi-trading

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install kalshi-trading using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Kalshi?

The Kalshi skill provides a robust interface for interacting with Kalshi, the premier regulated exchange for trading on the outcome of real-world events. Designed to work seamlessly within the Openclaw Skills ecosystem, this tool allows developers and traders to programmatically manage binary contracts across diverse sectors such as economics, politics, technology, and weather. By abstracting the Kalshi API into a set of actionable CLI commands, it empowers users to perform sophisticated market research and execution with precision.

Utilizing this skill as part of your Openclaw Skills setup ensures that you have real-time access to orderbooks, trending markets, and portfolio management tools. The skill is built to output structured JSON, making it an ideal choice for those looking to build automated trading pipelines or research dashboards that require reliable data from a regulated prediction market.

Kalshi Use Cases

  • Executing buy or sell orders for YES/NO binary contracts based on event predictions.
  • Conducting deep market research by searching for specific tickers and keywords.
  • Monitoring real-time orderbook depth and bid/ask spreads to optimize trading strategies.
  • Tracking portfolio performance and account balances across multiple open positions.
  • Identifying high-opportunity trades by viewing trending markets with the highest 24-hour volume.

How Kalshi Works

  1. The user issues a command via the Openclaw Skills interface, which invokes the kalshi-cli.mjs script.
  2. The system authenticates with the Kalshi API using the provided API Key ID and RSA private key path.
  3. For research requests, the skill fetches data from Kalshi and returns a detailed JSON response for analysis.
  4. For trading requests, the skill calculates the total cost in cents and ensures the side and contract count are valid.
  5. Before any trade is executed, a confirmation prompt is presented to the user through Openclaw Skills to ensure accuracy and risk control.

Kalshi Setup

To integrate this skill into your Openclaw Skills environment, follow these installation steps:

  1. Ensure Node.js is installed on your machine.
  2. Configure your Kalshi API credentials as environment variables:
export KALSHI_API_KEY_ID="your_api_key_uuid"
export KALSHI_PRIVATE_KEY_PATH="/absolute/path/to/your/private_key.pem"
  1. Verify your configuration by checking your account balance:
./scripts/kalshi-cli.mjs balance

Kalshi Data Schema & Taxonomy

The Kalshi skill for Openclaw Skills organizes data into a structured format for easy parsing:

Attribute Description
Ticker The unique identifier for the market (e.g., KXBTCD-26FEB14-B55500).
Side The contract side, either YES or NO.
Price Represented in cents (1-99). A 65 cent price equals a $0.65 cost.
Status Order status such as resting, executed, or canceled.
Balance Account liquidity, including cash and total portfolio value.

All command outputs are returned as standard JSON to maintain compatibility with other Openclaw Skills tools.

Kalshi Advanced Features

  • Combined analysis script that retrieves both market details and orderbook data in a single execution.
  • Advanced order lifecycle management with the ability to filter history by resting, canceled, or executed status.
  • Real-time fill tracking to monitor exactly when and at what price contracts were acquired.
  • Built-in risk management rules that calculate payouts and total costs automatically before user confirmation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*