Don't invest unless you're prepared to lose all the money you invest. This is a high-risk investment and you should not expect to be protected if something goes wrong. Take 2 minutes to learn more.

Your agent can trade now

Kraken CLI gives AI agents and developers direct access to global markets.
Open-source. Native MCP. Zero dependencies.

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

Works with every MCP client

Claude logoCursor logoCodex logoCopilot logoGemini logoGoose logoOpenclaw logo
Kraken Pro

Start trading on Kraken Pro

Sign up

APIs were built for systems.
Kraken CLI for agents.

Most trading agent projects die in the API docs. Kraken CLI skips all of that.

134 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.
134 commands

Every market, one install.

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

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.
Paper trade

Open source, MIT licensed.

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

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.

View skills on GitHub

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.

Agents

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

Log

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.
Keys never leave your device
API keys are stored locally with restricted file permissions. They're never logged, never printed, and never exposed in error output.
Open source
Every line is auditable on GitHub. No black boxes, no surprises. MIT licensed and free to fork, extend, or contribute to.

FAQs

Yes — if you configure it with API keys and trading permissions, with Kraken CLI your agent can place, amend, and cancel real orders. This is intentional. Use paper trading first. Use the dead man's switch when running live. Use least-privilege API keys that match your workflow's actual needs.

Paper trading has no financial consequence — use it to validate strategy logic before going live. In live mode, the --validate flag on order commands simulates execution without placing the order. The dead man's switch (cancel-after) provides an automatic safety net for autonomous workflows.

No. Public market data and paper trading work without credentials. You need a Kraken account to access live balances, place real orders, or use funding features.

Any agent that can call a CLI or speak MCP. Confirmed integrations: Claude Code, Cursor, Codex, Copilot, Gemini CLI, Goose, OpenClaw. If your tool supports MCP, run kraken mcp and it will work.

Kraken CLI is open source and maintained by Kraken. This is experimental software. Read the disclaimer on GitHub before using with real funds or autonomous agents.

The exchange infrastructure is ready.

What will you build?

Kraken CLI
Glow

Geographic restrictions apply. Projected annual rate is an estimate based on the average staking rewards accrued over the past period, before commission, and is subject to change. Staking involves risks including no guarantee of rewards, potential loss from slashing or hacks, and depreciation in the value of assets while staked. Please refer to Kraken's Terms of Service for additional information

xStocks are issued by Backed Assets (JE) Limited (a Jersey private limited company) and offered to eligible Kraken customers via Payward Digital Solutions Ltd. (“PDSL”), a company licensed to conduct digital asset business by the Bermuda Monetary Authority. xStocks are not nor will be registered with any local securities regulators. PDSL (Kraken) does not provide investment advice and/or recommendations, and, no communication, through any Kraken App or website or otherwise, should be construed as such. Individual investors should make their own decisions or seek professional independent advice if they are unsure as to the suitability / appropriateness of any investment for their circumstances or needs, including potential tax treatment. Investing in xStocks involves an element of risk. The value of an investment may go down as well as up, and past performance is not a reliable indicator of future results. Not available in the U.S. or to U.S. persons. Geo restrictions apply. Read Kraken’s xStocks Risk Disclosure at kraken.com/legal/xstocks as well as the Base Prospectus and related Final Terms for xStocks at https://assets.backed.fi/legal-documentation to learn more.

Trading derivatives and other financial instruments, including leveraged financial instruments, involves significant risks and is not appropriate for all investors. See our Risk Disclosure to learn more.