TL;DR
- Kraken CLI is a single-binary open source execution engine built by Kraken that gives AI agents and developers direct, native access to crypto markets. – supporting spot trading, futures, staking, subaccount transfers and WebSocket streaming across 134 orders, all via a dependency-free Rust binary with clean NDJSON output designed for machine consumption.
- Kraken CLI includes a built-in Model Context Protocol (MCP) server, making it the first crypto exchange CLI natively compatible with agent coding tools such as Claude Code, Codex, and Cursor, as well as terminal-native agent environments like OpenCode and OpenClaw. — enabling AI agents to instantly understand and execute trades without custom API wrappers, exception handling, or HMAC signing.
- Kraken CLI comes with a local paper trading engine that allows AI agents to securely test trading logic against live market data, without financial risk. – running a local state engine that tracks simulated balances, executes limit and market orders against the live ticker, and calculates unrealized P&L entirely offline.
Designed for the way AI agents actually work
To accelerate this transition to an agentic future, we are excited to open source the Kraken CLI: a powerful single-binary execution engine purpose-built to give AI models (and developers) secure, native, and instant access to crypto markets.
Whether you are an algorithmic trader, a power terminal user, or a developer creating LLM-based financial tools, the Kraken CLI bridges the gap between raw AI intelligence and live market execution.
Why We Built It: Going Beyond Raw APIs
APIs are designed for systems. But when you ask an AI agent to interact with a raw crypto exchange API, it struggles. He needs to write custom Python scripts, handle cryptographic nonces, handle complex signing of HMAC-SHA512 payloads, and create his own retry logic for rate limits.
This process is very error prone and burns valuable popup tokens.
We built the Kraken CLI to eliminate boilerplate. Written entirely in Rust, it is a dependency-free binary that manages the exchange connectivity infrastructure for you, allowing you (and your agents) to focus solely on business logic.
Key features for developers
Here’s what’s under the hood:
Integrated MCP server
The CLI includes native support for the Model Context Protocol (MCP). By simply running kraken mcpThe CLI transforms into a secure, self-describing plugin for agent coding tools like Claude Code, Codex, and Cursor, as well as native terminal environments like OpenCode and OpenClaw. Your AI agent instantly understands the patterns of the 134 available commands.
Local Paper Trading Engine
Safely test your agent’s trading logic against live market data without risking a cent. The Kraken paper suite runs a local state engine that tracks simulated balances, executes limit/market orders against the live public ticker, and calculates unrealized P&L offline.
Universal case compatibility
If your agent doesn’t support MCP, they can just use the terminal. The CLI ensures clean, machine-readable NDJSON output (-o json) in all commands, making it incredibly easy to transfer data to jq or re-enter it directly into an LLM pop-up window.
Total exchange surface
It is not just a simple price indicator. The CLI supports spot trading, futures trading, staking/earning allocations, subaccount transfers, and even WebSocket streaming.
Enterprise-grade resilience
Built-in spot counter/decay and futures token bucket rate limiting ensure your automated workflows don’t crash when you reach trading limits.
Single line installation
curl --proto '=https' --tlsv1.2 -LsSf | sh
The future is agentic
The Kraken CLI is the direction the industry is heading: a world in which AI agents are first-class players in financial markets, not an afterthought on existing infrastructure. By making this tool open source, we invite developers, algorithmic traders, and AI builders to help shape what that future will look like – and start building it today.
Check out the full documentation, source code, and sample agent prompts on GitHub:
Trading in derivatives and other financial instruments, including leveraged financial instruments, involves significant risks and is not suitable for all investors. See our Risk Disclosure to learn more. Geographic restrictions apply.


