Kraken CLI

Trade on Kraken from your terminal, or let your AI agent trade for you. One
install covers crypto, tokenized U.S. stocks and ETFs (for non-U.S. customers),
forex, and futures. Every command can answer in JSON. A built-in MCP server
connects the CLI to Claude, Cursor, Codex and other agents, and paper trading
runs on live prices with no account.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/latest/download/kraken-cli-installer.sh | sh
source "$HOME/.cargo/env" # puts kraken on your PATH in this terminal
kraken ticker BTCUSD # live price, no account needed
[!TIP]
New: sign in with OAuth. You no longer have to fumble around for API
keys. kraken auth login opens Kraken in your browser, you approve, and the
CLI saves a restricted Spot API key for you. The key can't withdraw funds,
and it expires on its own. See how it works.
With kraken-cli you can:
- Trade 1,400+ crypto pairs, 170+ tokenized U.S. stocks and ETFs (xStocks), 12
forex pairs and 200+ futures contracts.
What you can trade
- Practice on paper first. Paper orders fill at live prices and need no Kraken
account, and the basic order commands are the same as live.
Paper trading
- Connect Claude, Cursor, Codex, Gemini and other MCP clients through
kraken-mcp, which serves up to 152 MCP tools. On clients that support MCP
elicitation, calls that move money ask you first; the kraken CLI itself
places orders without a prompt. MCP server
- Script it: every command takes
-o json, and a failure comes back as JSON
with a stable error field and a non-zero exit code.
For AI agents
- Record live market data and replay it into paper sessions, then score a
strategy against pass criteria you fixed before the first run.
Workspaces, sessions, and research
- Start from 59 agent skills for DCA, grid trading, rebalancing, futures risk
and more. Agent skills
| You are | Start here |
|---|
| A person at a terminal | Install, then follow the Quick start from sign-in to your first order. |
| An AI agent, or building one | Read For AI agents and AGENTS.md. Ask your human to open a new terminal and run kraken auth login there, then call kraken <command> -o json 2>/dev/null. Orders trade real money with no confirmation prompt, so follow the rules for trading real money. |
| Just looking around | Market data and paper trading need no account. Try steps 1 and 2 of the Quick start. |
Paste one of these prompts into Claude Code, Codex, Cursor, or another AI coding
agent. No agent yet? Install Claude Code
first.
Install kraken-cli (https://github.com/krakenfx/kraken-cli) and tell me how to sign in with OAuth.
Install kraken-cli (https://github.com/krakenfx/kraken-cli) and build me a morning market brief.
With kraken-cli, watch ETH, SOL, and BTC for 30 seconds. What are the pros and cons of buying each right now?