TL;DR
- Kraken CLI is an open-source, single-binary execution engine constructed by Kraken that offers AI brokers and builders direct, native entry to crypto markets — supporting spot buying and selling, futures, staking, subaccount transfers, and WebSocket streaming throughout 134 instructions, all through a zero-dependency Rust binary with clear NDJSON output designed for machine consumption.
- Kraken CLI features a built-in MCP (Mannequin Context Protocol) server, making it the primary crypto trade CLI natively suitable with agentic coding instruments like Claude Code, Codex, and Cursor, in addition to terminal-native agent environments like OpenCode and OpenClaw — enabling AI brokers to immediately perceive and execute trade operations with out customized API wrappers, nonce administration, or HMAC signing.
- Kraken CLI ships with a neighborhood paper buying and selling engine that lets AI brokers safely check buying and selling logic towards reside market knowledge with no monetary threat — operating a neighborhood state engine that tracks simulated balances, executes restrict and market orders towards the reside ticker, and calculates unrealized P&L completely offline.
Constructed for the best way AI brokers really work
To speed up this transition to an agentic future, we’re thrilled to open-source the Kraken CLI: a robust, single-binary execution engine purpose-built to present AI fashions (and builders) protected, native, and immediate entry to crypto markets.
Whether or not you’re an algorithmic dealer, a terminal energy consumer, or a developer constructing LLM-powered monetary instruments, the Kraken CLI bridges the hole between uncooked AI intelligence and reside market execution.
Why we constructed it: shifting past uncooked APIs
APIs are designed for techniques. However once you ask an AI agent to work together with a uncooked crypto trade API, it struggles. It has to write down customized Python scripts, handle cryptographic nonces, deal with complicated HMAC-SHA512 payload signing, and construct its personal retry logic for price limits.
This course of is very error-prone and burns by way of priceless context window tokens.
We constructed the Kraken CLI to summary away the boilerplate. Written completely in Rust, it’s a zero-dependency binary that handles the infrastructure of trade connectivity for you, permitting you (and your brokers) to focus purely on buying and selling logic.
Key options for builders
Right here’s what’s below the hood:
Constructed-in MCP server
The CLI contains native assist for the Mannequin Context Protocol (MCP). By merely operating kraken mcp, the CLI transforms right into a safe, self-describing plugin for agentic coding instruments like Claude Code, Codex, and Cursor, in addition to terminal-native environments like OpenCode and OpenClaw. Your AI agent immediately understands the schemas for all 134 accessible instructions.
Native paper buying and selling engine
Safely check your agent’s buying and selling logic towards reside market knowledge with out risking a cent. The Kraken paper suite runs a neighborhood state engine that tracks simulated balances, executes restrict/market orders towards the reside public ticker, and calculates unrealized P&L offline.
Common shell compatibility
In case your agent doesn’t assist MCP, it could possibly merely use the terminal. The CLI ensures clear, machine-readable NDJSON output (-o json) throughout all instructions, making it extremely straightforward to pipe knowledge into jq or feed it immediately again into an LLM’s context window.
Full trade floor space
This isn’t only a fundamental worth ticker. The CLI helps spot buying and selling, futures buying and selling, staking/earn allocations, subaccount transfers, and even WebSocket streaming.
Enterprise-grade resilience
Constructed-in spot counter/decay and futures token-bucket price limiting guarantee your automated workflows don’t crash when hitting trade limits.
One-line set up
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/newest/obtain/kraken-cli-installer.sh | sh
The longer term is agentic
The Kraken CLI is the place the trade is heading: a world the place AI brokers are first-class individuals in monetary markets, not an afterthought bolted onto legacy infrastructure. By open-sourcing this instrument, we’re inviting builders, algorithmic merchants, and AI builders to assist form what that future appears to be like like – and to begin constructing it right now.
Try the complete documentation, supply code, and agent immediate examples on GitHub:
Buying and selling derivatives and different monetary devices, together with leveraged monetary devices, includes vital dangers and isn’t acceptable for all traders. See our Threat Disclosure to study extra. Geographic restrictions apply.
