Works with every MCP client
APIs were built for systems.
Kraken CLI for agents.
Most trading agent projects die in the API docs. Kraken CLI skips all of that.
151 commands. Native MCP.
No wrappers, no auth headaches. Every command returns valid JSON with stable error categories. Your agent routes on data, not parsed sentences.

Every market, one install.
Spot, futures, xStocks, forex, derivatives, staking and WebSocket streaming. Zero runtime dependencies.

Paper trade first. Go live when ready.
Test against live Kraken prices — no API keys, no real money. When your strategy works, one word changes. Nothing else does.

Open source, MIT licensed.
Built by Kraken. Fully auditable, fully extensible. 50 pre-built Agent Skills included.

What you can build right now
Paste any of these into Claude Code, Cursor, or Codex. The agent handles the rest.
INSTALL KRAKEN CLI
Install kraken-cli and build me a morning market brief for BTC, ETH, and SOL.
ANALYZE CRYPTO
Watch ETH, SOL, and BTC for 30 seconds. Show me the price movement, volume, and volatility for each.
PAPER TRADING SESSION
Initialize a paper trading session with $10,000. Buy and sell BTC using a simple momentum strategy for 1 minute. Show me the trade log and P&L.
AUTOMATICALLY BUY ON DROP
Set up a paper trading simulation: buy $100 of BTC every time the price drops 1% from the last fill. Start with $1,000. Run it for 2 minutes against live prices and return the trade log.
REBALANCE PORTFOLIO
Check my Kraken balance. Calculate what trades would be needed to bring BTC from its current portfolio weight to 50%. Show me the proposed trades — don’t execute yet.
PRICE ALERT AGENT
Monitor BTC and ETH every 60 seconds. Alert me if either moves more than 2% in either direction from the price at the start of the session. Show a summary of all triggered alerts when done.
The repo ships 50 Agent Skills — pre-built SKILL.md workflow packages covering these use cases and more. These are starting points, not ceilings.


How it works
Step 1
Install
One curl command. Detects your OS and architecture. macOS and Linux supported. No runtime dependencies.
$
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/krakenfx/kraken-cli/releases/latest/download/kraken-cli-installer.sh sh
Step 2
Connect your agent
Run kraken mcp -s all to expose all commands via MCP, or call kraken <command> -o json from any agent or script. Public market data needs no API keys.

Step 3
Paper trade, then go live
Test against live prices, no credentials required. When ready, kraken paper buy becomes kraken order buy. That’s it.
$
kraken paper buy
Built to be safe to build with
Kraken CLI can execute real trades. Here’s how we’ve designed it to keep you in control.
Start with paper trading
Validate strategy logic and catch edge cases against live prices — before a single real order is placed. No credentials needed, no financial risk.
Dead man’s switch
Run kraken order cancel-after 60 to automatically cancel all open orders if your process goes silent. Essential for any agent operating a live account.
Least-privilege API keys
Scope API keys to exactly the permissions your workflow requires. Read-only monitoring needs no trading access at all.