setup-kraken
/setup-kraken
Use when the user wants to connect their own Kraken account to trade on it through the agent — "set up Kraken", "connect my Kraken", "trade on Kraken", "add/use my Kraken API key", "I want to trade on a CEX", or when moving toward live centralized-exchange trading on Kraken. Guides the user to create a LEAST-PRIVILEGE Kraken API key, store it securely without ever pasting it in chat, and explains the local bring-your-own-key (BYOK) model: the client-side SDK connects to Kraken DIRECTLY with the user's key — the key stays on the user's machine and never reaches a Mangrove server. The keyless OA
- Author
- MangroveTechnologies ↗
- Repository
- mangrove-agent ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user wants to connect their own Kraken account to trade on it through the agent — "set up Kraken", "connect my Kraken", "trade on Kraken", "add/use my Kraken API key", "I want to trade on a CEX", or when moving toward live centralized-exchange trading on Kraken. Guides the user to create a LEAST-PRIVILEGE Kraken API key, store it securely without ever pasting it in chat, and explains the local bring-your-own-key (BYOK) model: the client-side SDK connects to Kraken DIRECTLY with the user's key — the key stays on the user's machine and never reaches a Mangrove server. The keyless OA
Triggers from the description
Original author description
Use when the user wants to connect their own Kraken account to trade on it through the agent — "set up Kraken", "connect my Kraken", "trade on Kraken", "add/use my Kraken API key", "I want to trade on a CEX", or when moving toward live centralized-exchange trading on Kraken. Guides the user to create a LEAST-PRIVILEGE Kraken API key, store it securely without ever pasting it in chat, and explains the local bring-your-own-key (BYOK) model: the client-side SDK connects to Kraken DIRECTLY with the user's key — the key stays on the user's machine and never reaches a Mangrove server. The keyless OA
How it works
- The model — say this up front
- Security primer — give this unprompted (mirror the wallet Stage-4.5 primer)
- Step 1 — Create the API key on Kraken
- Step 2 — Confirm scope before storing
- Step 3 — Store the key securely (never in chat)
- Step 4 — Verify (once the execution path exists)
- Guardrails — never
- Where this fits
SKILL.md preview
--- name: setup-kraken description: >- Use when the user wants to connect their own Kraken account to trade on it through the agent — "set up Kraken", "connect my Kraken", "trade on Kraken", "add/use my Kraken API key", "I want to trade on a CEX", or when moving toward live centralized-exchange trading on Kraken. Guides the user to create a LEAST-PRIVILEGE Kraken API key, store it securely without ever pasting it in chat, and explains the local bring-your-own-key (BYOK) model: the client-side SDK connects to Kraken DIRECTLY with the user's key — the key stays on the user's machine and never reaches a Mangrove server. The keyless OAuth path (Mangrove holds the grant and submits on the user's behalf, server-side) is the sibling `connect-kraken` skill, NOT this one — offer it when the user doesn't want to create or manage an API key. --- # Setup Kraken (local BYOK) The agent's job in this skill: walk the user through connecting **their own Kraken account** so they can trade it through the agent, using **their own Kraken API key kept on their machine**. This is the **local BYOK** mode. ## The model — say this up front - **Your key, your machine, direct to Kraken.** In this mode the client-side Mangrove SDK connects to **api.kraken.com directly** with the user's API key. The key **never goes to a Mangrove server** and is never sent in chat. - **Kraken is one venue in a multi-venue aggregator.** The Mangrove Markets API spans DEX venues (1inch / XPMarket / Jupiter) and CEX (Kraken). This skill covers the Kraken CEX venue via the user's own key. - **There is a second mode (not this skill): OAuth2.** Once enabled, the user authorizes Mangrove and the **server** submits orders on their behalf via a per-user OAuth2 grant. That is exchange-venue-specific and server-side. If the user asks for "log in with Kraken / don't want to manage a key," that's the OAuth2 path — tell them it's coming and stop; do not improvise it here. ## Security primer — give this unprompted (mirror the wallet Stage-4.5 primer) 1. **Never paste your API key or secret into this chat.** The agent must never see it. `.claude/hooks/block-wallet-secrets.sh` guards pasted secrets — don't work around it. The key is entered out-of-band (see Step 3). 2. **Least privilege.** Enable only the permissions needed to trade; leave **Withdraw Funds OFF**. A trading key should never be able to move funds off the exchange. 3. **Real funds.** Kraken spot has **no testnet** — orders execute against real balances. Start with a tiny amount and use **validate-only** (dry-run) orders before any real fill. 4. **Scope it down.** Set an **IP allowlist** on the key and a **key expiry** if the user can; consider a sub-account dedicated to agent trading. ## Step 1 — Create the API key on Kraken Direct the user (in their browser, signed in to Kraken): > Kraken → **Settings → API → Create API key**. **Enable (trading, least privilege):** - Query Funds - Query Open Orders & Trades - Query Closed Orders & Trades - Create & Modify Orders - Cancel/Close Orders **Leave OFF:** - **Withdraw Funds** (critical — never enable for an agent key) - Account Management / Account Transfers - Export Data / WebSockets (unless a later feature needs them) **Optional hardening:** IP allowlist (the machine running the agent), key expiry, nonce window. Have the user copy the **API Key** and **Private Key** (secret) — Kraken shows the secret only once. ## Step 2 — Confirm scope before storing Read back what they enabled and confirm **Withdraw is OFF**. If withdrawal is enabled, tell them to delete the key and recreate it without it — do not proceed with a withdrawal-capable key. ## Step 3 — Store the key securely (never in chat) The key is stored **encrypted at rest on the user's machine** (Fernet, same SecretVault model as wallet secrets) and entered out-of-band in their terminal — **not** pasted into this chat. Follow the same pattern as wallet import: - The user runs the Kraken-key stash command in a terminal (the agent never sees the plaintext); the agent receives only an opaque, TTL-bound vault reference. > **Status / prerequisite (be honest with the user):** the local-BYOK execution > path is still being built — specifically (a) a Kraken-key stash command > mirroring `scripts/stash-secret.sh` (today that script is wallet-key only, > posting to `/wallet/stash-secret`), (b) the client-side `KrakenClient` in the > `mangrovemarkets` SDK, and (c) the agent `cex_*` trade tools that use it. Until > those land, complete Steps 1–2 (create + scope the key) and tell the user the > key-storage + trading steps will be available shortly; do **not** ask them to > paste the key anywhere as a stopgap. ## Step 4 — Verify (once the execution path exists) Confirm with a **read-only** call first — fetch Kraken balances — to prove the key works and is correctly scoped, before any order. Then place a single **validate-only** order to confirm the order path without executing a fill. ## Guardrails — never - Never ask the user to paste the API key/secret in chat; never echo or store it in plaintext, logs, config files, or the DB. - Never proceed with a key that has **Withdraw Funds** enabled. - Never place a live order without an explicit user go; default to validate-only for the first order and start with a small size. - Don't conflate this with OAuth2 — if the user wants Mangrove to trade on their behalf without holding a key, that's the server-side OAuth2 mode (separate). ## Where this fits Analogous to **Stage 4.5 (Connect wallet)** in `trading-bot-workflow.md`, but for a CEX venue: it's the "connect your exchange to go live" step. Paper/backtest flows (Stages 0–4) need no Kraken key.
Versions
The database has no other skills named setup-kraken.
Database snapshot: 13.11.2026 · package version 0972160af20a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 90connect-kraken
Use when the user wants to connect their Kraken account to trade through the agent WITHOUT creating or handling an API key — "connect Kraken with OAuth", "log in with Kraken", "connect Kraken without a key", "I don't want to manage a Kraken key". This is the KEYLESS (OAuth)… - 96kraken-alert-patterns
Price alerts, threshold monitoring, and notification triggers for agents. - 100kraken-websocket-v2-auth-and-subscriptions
Use when a bot connects to Kraken Spot WebSocket v2: signs the REST call that mints the token, builds validated subscribe frames, routes each channel to the right endpoint and respects the token's 900-second use window. - 100broker-mcp-selector
Pick a broker MCP server your AI agent can actually execute trades through, and wire it up safely. Use when the user wants to place, submit, or automate real orders; connect an agent to a brokerage account; choose between Alpaca, IBKR, Tradier, Robinhood, Schwab, Kraken and… - 95bluvo
Crypto exchange connectivity API for securely connecting user wallets to exchanges (Binance, Kraken, Coinbase), executing withdrawals, and managing credentials. Use when building exchange integrations, withdrawal UIs with 2FA/SMS/KYC, or multi-tenant crypto applications. SDKs:… - 90trading-bot
The mangrove-agent operating rules: server workflow discovery and local execution, how to present and handle wallets without secrets ever entering chat, and which risk controls already run in the engine and the agent. Load it before any strategy, backtest, sweep, wallet,…