kraken-cli is a single compiled binary for trading and account management across the Kraken exchange. No runtime dependencies. One install covers Spot, Derivatives, xStocks, Forex, Earn, and Subaccounts.Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GitHub
Source, releases, and changelog
MCP server
Expose all 151 commands as tools for AI agents via the built-in MCP server
Install
What it covers
151 commands across 13 groups. Six asset classes in one binary:| Asset class | Examples | Notes |
|---|---|---|
| Crypto spot | BTC, ETH, SOL (1,400+ pairs) | Default engine |
| xStocks (tokenized equities) | AAPL, TSLA, SPY (79 assets) | --asset-class tokenized_asset |
| Forex | EUR/USD, GBP/USD (11 pairs) | --asset-class forex |
| Perpetual futures | 317 contracts | Futures engine |
| Inverse and fixed-date futures | BTC, ETH, SOL | Futures engine |
| Earn / staking | Flexible and bonded strategies | kraken earn |
Command groups
| Group | Commands | Auth required |
|---|---|---|
| market | 10 | No |
| account | 18 | Yes |
| trade | 9 | Yes |
| funding | 10 | Yes |
| earn | 6 | Yes |
| subaccount | 2 | Yes |
| futures | 39 | Mixed |
| paper | 10 | No |
| futures-paper | 17 | No |
| websocket | 15 | Mixed |
| futures-ws | 9 | Mixed |
| auth | 4 | No |
| utility | 2 | No |
Paper trading
The CLI’s built-in paper trading engine runs against live prices with no authentication required. It is the recommended way to test strategies and integrations.paper subcommand and providing credentials.
Scripting and automation
All 151 commands support-o json output and consistent exit codes (0 = success, non-zero = failure), making them composable in shell scripts and CI pipelines:
Account management
Dead man’s switch
Cancel all open orders if your process stops sending heartbeats:Authentication
Credentials are resolved in this order:- Command-line flags (
--api-key,--api-secret) - Environment variables (
KRAKEN_API_KEY,KRAKEN_API_SECRET) - Config file (
~/.config/kraken/config.toml)
Interactive shell
For exploratory sessions:AI agent integration
The CLI is designed for machine consumption: structured JSON output, stable error categories, and predictable exit codes. See the MCP server page to expose all commands as tools for LLM agents. Agent resources shipped with the CLI:| Resource | Purpose |
|---|---|
AGENTS.md | Full agent integration guide |
CONTEXT.md | Runtime context for tool-using agents |
agents/tool-catalog.json | 151 commands with parameter schemas |
agents/error-catalog.json | 9 error categories with retry guidance |
skills/ | 50 goal-oriented workflow packages |
CLAUDE.md | Claude-specific guidance |