Skip to main content
The Horizon CLI gives you full access to the trading engine, market discovery, wallet analytics, and fund management from your terminal. Every command supports --json for pipeable output.

Installation

After installation, the horizon command is available on your PATH:
Or run without installing using uvx or bunx:

Quick Start

Configuration

The CLI reads configuration from environment variables:

Global Options

Commands

Discovery

Trading

Shows PnL, open orders, active positions, kill switch state, and uptime.

Analytics

Checks if YES + NO prices sum to ~1.0.

Wallet Analytics

All wallet commands are under the wallet subgroup:

Feed Management

All feed commands are under the feed subgroup:

Fund Management

All fund commands are under the fund subgroup:

Account

Database Queries

For offline analysis of persisted strategy data, use the db subgroup:

Scripting with —json

Every command supports --json for structured output. Pipe to jq for powerful scripting:

Architecture

The CLI shares the same tool layer as the MCP servers. All three interfaces delegate to horizon.tools, which wraps the Rust engine via PyO3:
This means the CLI has feature parity with the MCP interface. Same functions, same data, different transport.