krakenfx/kraken-cli

The first AI-native CLI for trading crypto, stocks, forex, and derivatives.

What it solves

Kraken CLI is an AI-native command-line interface designed to give AI agents and developers programmatic access to the Kraken exchange. It eliminates the need for custom API clients by providing a structured, reliable way to trade crypto, stocks, forex, and derivatives through a single binary.

How it works

The tool acts as a bridge between an AI agent (or human) and the Kraken API. It provides structured JSON output by default, consistent error envelopes for programmatic routing, and a built-in Model Context Protocol (MCP) server that allows LLM-based agents to call Kraken tools directly without subprocess wrappers.

Who it’s for

  • AI Agent Developers: Those building trading bots or financial assistants that need a stable, machine-readable interface to execute trades and fetch market data.
  • Algorithmic Traders: Users who want a lightweight, single-binary tool for market monitoring and execution.
  • Researchers: Traders using the "Autoresearch Lab" to record market data (tapes) and test hypotheses in isolated paper-trading workspaces.

Highlights

  • AI-Native Design: Built specifically for LLMs with structured JSON outputs, predictable exit codes, and a comprehensive tool catalog.
  • Crossover Asset Support: Single interface for crypto spot, tokenized U.S. stocks (xStocks), forex, and perpetual/fixed-date futures.
  • MCP Integration: Native support for the Model Context Protocol, enabling seamless integration with agents like Claude, Cursor, and Gemini.
  • Paper Trading: Full simulation environments for both spot and futures trading to test strategies without financial risk.
  • Market Memory: Ability to record live market streams into local libraries for later replay and research.
  • Comprehensive API Surface: Access to 174 commands covering everything from order placement to staking and subaccount management.

Related

  • Project
  • Project
  • Project
  • Project
  • Project