Summary

  • Kraken CLI is an innovative open-source execution engine created by Kraken, offering AI developers direct access to cryptocurrency markets — it supports spot trading, futures, staking, subaccount transfers, and WebSocket streaming through 134 commands, all managed by a Rust binary with no dependencies and a clean NDJSON output meant for machine processing.
  • This CLI features an integrated MCP (Model Context Protocol) server, making it the first command-line interface for a crypto exchange that natively supports coding tools like Claude Code, Codex, and Cursor, along with terminal-native environments such as OpenCode and OpenClaw — allowing AI agents to comprehend and perform exchange operations promptly without needing custom API wrappers, nonce management, or HMAC signing.
  • The Kraken CLI includes a local paper trading engine, enabling AI agents to experiment with trading strategies against real market data without any financial risk — it operates a local state engine to monitor simulated balances, conduct limit and market orders against real-time tickers, and compute unrealized P&L offline.

Designed for the Realities of AI Agents

To facilitate a shift towards an agent-centric future, we are excited to introduce the Kraken CLI: a robust single-binary execution engine specifically constructed to provide AI models and developers secure, direct, and instantaneous access to crypto markets.

Whether you are an algorithmic trader, an advanced terminal user, or a developer creating financial tools powered by LLMs, the Kraken CLI serves as a vital connection between AI intelligence and real-time market execution.

Why We Created It: Evolving Beyond Basic APIs

APIs serve system interactions, but when AI agents engage with a basic crypto exchange API, they face significant challenges. They have to develop custom Python scripts, manage cryptographic nonces, navigate HMAC-SHA512 payload signing complexities, and create their own retry mechanisms for rate limits.

This labor-intensive process increases the likelihood of errors and consumes valuable context tokens.

We designed the Kraken CLI to eliminate this cumbersome framework. Built entirely in Rust, this zero-dependency binary manages all aspects of exchange connectivity, enabling you and your agents to concentrate solely on trading strategies.

Essential Features for Developers

Here are the key functionalities:

Integrated MCP Server

The CLI features native support for the Model Context Protocol (MCP). Simply execute kraken mcp, and the CLI transforms into a secure, self-describing plugin for intelligent coding tools like Claude Code, Codex, and Cursor, as well as terminal-native platforms like OpenCode and OpenClaw. Your AI agent will quickly grasp the command schemas for all 134 available options.

Local Paper Trading Engine

Test your agent’s trading logic against live market data without risking any money. The Kraken paper trading suite operates a local state engine that monitors simulated balances, executes limit and market orders against a live public ticker, and calculates unrealized P&L all offline.

Universal Compatibility with Shell

Even if your agent doesn’t support MCP, it can easily interact via the terminal. The CLI guarantees clean, machine-readable NDJSON output (-o json) for all commands, simplifying data piping into jq or directly feeding it into an LLM’s context window.

Comprehensive Exchange Features

This tool offers more than just basic price tracking. The CLI allows for spot trading, futures, staking/earn allocations, subaccount transfers, and even WebSocket streaming.

Robust, Enterprise-Grade Resilience

With built-in spot counter/decay and futures token-bucket rate limiting, your automated processes won’t fail when they hit exchange limits.

Easy Installation with One Command

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/latest/download/kraken-cli-installer.sh | sh

Embracing an Agentic Future

The Kraken CLI represents the direction our industry is taking: a realm where AI agents are integral participants in financial markets rather than mere additions to outdated systems. By open-sourcing this tool, we invite developers, algorithmic traders, and AI enthusiasts to influence and start building this future today.

For comprehensive documentation, source code, and examples of agent prompts, visit GitHub:

Engaging in trading derivatives and other financial instruments, particularly leveraged products, carries substantial risks and may not be suitable for every investor. Refer to our Risk Disclosure for further information. Geographic restrictions may apply.

Share.