kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents.
Install kraken-cli, create API credentials, and go from paper trading to live in under five minutes.
Claude Code
$ npx -y skills add krakenfx/kraken-cli --skill kraken-setup --agent claude-code
Codex
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a codex -y
Cursor
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a cursor -y
Gemini CLI
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a gemini-cli -y
GitHub Copilot
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a github-copilot -y
OpenCode
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a opencode -y
Windsurf
$ npx skills add krakenfx/kraken-cli --skill kraken-setup -a windsurf -y
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"]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`.
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
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.
Only needed if you want to query your real account or place real orders.
Generate the narrowest key you can live with. An AI agent should never be able to move funds off the exchange.
Manage keys at <https://www.kraken.com/u/security/api>.
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.
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.
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.
`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
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.
Price alerts, threshold monitoring, and notification triggers for agents.
Progress from manual trading to full agent autonomy with controlled risk at each level.
Capture the spot-futures price spread with delta-neutral basis trades.
Dollar cost averaging with scheduled buys and performance tracking.
Discover staking strategies, allocate funds, and track earn positions.
Handle order failures, network errors, and duplicate submissions safely.
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…