Skip to content
Finance
Skill

/kraken-setup

Install kraken-cli, create API credentials, and go from paper trading to live in under five minutes.

From plugin
kraken-cli
81459 skills1 MCP

Claude Code

$ npx -y skills add krakenfx/kraken-cli --skill kraken-setup --agent claude-code

SKILL.md

kraken-setup.SKILL.md
name: kraken-setup
version: 1.1.0
description: "Install kraken-cli, create API credentials, and go from paper trading to live in under five minutes."
metadata:
  openclaw:
    category: "finance"
  requires:
    bins: ["kraken"]

kraken-setup

First-run setup for `kraken-cli`. Covers install, credentials, paper trading, and handing off to an MCP client.

Use this skill when a user says "set up kraken-cli", "install kraken", "get started", or similar. For wiring the running CLI into Claude, Cursor, Codex, or Gemini, hand off to `kraken-mcp-integration`.

1. Install the CLI

The one-liner installs `kraken`, `kraken-mcp` (the MCP server) and `kraken-shell` (an interactive shell) into `~/.cargo/bin`, or `$CARGO_HOME/bin` if `CARGO_HOME` is set:

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

From source (Rust 1.97 or later), the same three binaries:

cargo install --locked --git https://github.com/krakenfx/kraken-cli kraken-cli

Prebuilt archives are on [GitHub Releases](https://github.com/krakenfx/kraken-cli/releases). Move `kraken`, `kraken-mcp` and `kraken-shell` into a directory on `$PATH`.

The installer adds `~/.cargo/bin` (or `$CARGO_HOME/bin`) to PATH for new terminals only. If `kraken` is not found right after install, call it by its full path, `~/.cargo/bin/kraken` or `$CARGO_HOME/bin/kraken`, and tell the user to restart the agent from a new terminal window.

Verify:

kraken --version && kraken-mcp --version

2. Start with paper trading

Paper trading uses live prices with a simulated balance. No API keys required. Start here.

kraken workspace create sandbox --capital 10000 --mode paper -o json
export KRAKEN_WORKSPACE=sandbox
kraken paper buy BTCUSD 0.01 -o json
kraken workspace status -o json

Futures paper trading has one account that no workspace scopes, and it refuses changes while a workspace is selected, so clear it first:

unset KRAKEN_WORKSPACE
kraken futures paper init --balance 10000 -o json
kraken futures paper buy PF_XBTUSD 1 --leverage 10 --type market -o json
kraken futures paper positions -o json

Public market data also needs no credentials:

kraken ticker BTCUSD -o json
kraken orderbook BTCUSD --count 10 -o json

Most agent workflows can do their entire first session on paper and public data.

3. (Optional) Add API credentials for live trading

Only needed if you want to query your real account or place real orders.

Recommended key scope

Generate the narrowest key you can live with. An AI agent should never be able to move funds off the exchange.

  • **Never enable `Withdraw Funds`.** Without this permission, even a prompt-injection or credential-exfiltration attack cannot remove assets from your Kraken account.
  • **Start read-only.** `Query Funds`, `Query Open Orders & Trades`, and `Query Closed Orders & Trades` are safe for a first session.
  • **Add trading scopes only when you need them.** `Create & Modify Orders` and `Cancel/Close Orders` unlock live trading; no other scope is required for spot.
  • **Enable IP allowlisting if the agent runs from a static IP.** Kraken's API settings page lets you lock a key to one or more source IPs.
  • **Rotate on host change.** If you switch machines or re-install the plugin, revoke the old key and generate a new one.

Manage keys at <https://www.kraken.com/u/security/api>.

Provide the key and secret to your agent

The CLI resolves credentials from three tiers, in order: command-line flags (`--api-key` / `--api-secret`), environment variables (`KRAKEN_API_KEY` / `KRAKEN_API_SECRET`), then the active stored key in a secure local config file managed by the CLI (stored with user-only permissions under your OS's standard config directory). The stored key is either the key from `kraken auth set` or `kraken setup`, or the sign-in key from `kraken auth login`; `kraken auth switch` selects which one. When an active sign-in key expires, private commands fail with an `auth` error and a hint to sign in again or switch. The CLI does not fall back to the other key. Pick the path that matches your client.

Claude Code plugin

The `kraken-cli` plugin starts `kraken-mcp -s market,paper,feedback` and asks for no API key: none of those tools needs one. `kraken-mcp` still reads the active stored key from the CLI's local config, so a key saved earlier with `kraken auth set` or `kraken auth login` on the same machine is available to it. To keep the plugin credential-less, run `kraken auth reset` before starting Claude.

Cursor, Codex, Gemini CLI

Like the Claude plugin, these hosts start `kraken-mcp` with no key of their own. Either export credentials in the shell that launches the agent:

export KRAKEN_API_KEY="your-key"
export KRAKEN_API_SECRET="your-secret"

…or rely on the key you stored with `kraken auth set` or `kraken auth login` — the plugin reads the same config file as the standalone CLI, so one stored key serves both, and `kraken auth switch` changes it for both.

For futures, use a Kraken Futures key and set `KRAKEN_FUTURES_API_KEY` and `KRAKEN_FUTURES_API_SECRET` alongside the spot pair, or store both pairs once with `kraken auth set --api-key <spot-key> --api-secret-file <spot-secret-file> --futures-api-key <futures-key> --futures-api-secret-stdin` and let the config file supply them. `auth set` always saves the spot pair too, so `--api-key` is required.

Plain CLI use (not through a plugin)

`kraken auth set` writes credentials to a secure local config file managed by the CLI (stored with user-only permissions in your OS's standard config directory). `kraken auth login` instead signs you in through the browser and stores the Spot API key it creates there: no withdrawal permissions, and an expiry date (90 days unless `--valid-for` says otherwise). It needs a terminal, so a person runs it, never an agent. `kraken auth show` di

Read more
@krakenfx
Ships withkraken-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.

81459 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
814
Star history of krakenfx/kraken-cli on GitHub, a chart by star-history.com

Other skills on kraken-cli.

More skills from other plugins.

ccxt-cli

ccxt-cli

CCXT command-line interface (ccxt-cli) for interacting with 100+ cryptocurrency exchanges directly from the terminal — no code…

ccxt10d45k
@ccxt@ccxtInstall Skill

Questions about kraken-setup.

Which coding agents can use kraken-setup?
kraken-setup installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.