connect-kraken
Skill8 starsChanged 15 days agoMITView on GitHub
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) mode: the user consents once in a browser and the Mangrove platform holds the grant and trades on their behalf. It is the sibling of the BYOK setup-kraken skill — if the user is willing to create and hold their own key locally, use setup-kraken instead; if they want Mangrove to manage access, use this. Trigger with phrases such as "connect Kraken with OAuth", "log in to Kraken", or "connect Kraken without a key".
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-securitySkill
- check-alignmentSkill
- setup-krakenSkill
- setup-robinhoodSkill
- tool-specSkill
- trading-botSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Call POST /api/v1/agent/cex/oauth/connect-start with {"mode": "view"} or {"mode": "execute"}.
- Very specific: line 68
Never ask the user for a Kraken API key or secret in this flow.
- Distinctive: line 70
Never place a live order without a preceding validate-only preview the user approved.
- Very specific: line 72
Never claim a trade is attributed/placed without echoing the returned tx_ids and venue description.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Connect Kraken (keyless, OAuth)
The agent's job here: connect the user's Kraken account for trading through the agent without the user ever creating, copying, or holding an API key.
The model — say this up front
- No key, ever. The user consents once on Kraken's own site (a browser OAuth screen). Mangrove's platform holds the resulting grant, KMS-encrypted, and mints a short-lived, scoped key per order — nothing long-lived exists anywhere, and no credential is ever pasted in chat or stored on this machine.
- You choose what you authorize. At connect time you pick a mode:
- view — read-only: balances and history. (default)
- execute — view plus order placement/cancellation. The choice drives what Kraken's consent screen grants; Mangrove can never do more than you approved. Deposits/withdrawals are never requested.
- Revocable two ways. Disconnect in Mangrove, or revoke the app under Kraken's Connected Apps settings.
- Contrast with BYOK (
setup-kraken): that mode keeps your own key on your machine and talks to Kraken directly, no Mangrove account needed. This mode needs a Mangrove account but never asks you to touch a key.
Step 1 — Start the connect
Call POST /api/v1/agent/cex/oauth/connect-start with {"mode": "view"} or
{"mode": "execute"}. It returns {authorize_url, state}.
Show the user the authorize_url and tell them: open this in your browser,
sign in to Kraken, and approve. If they chose execute, the consent screen
will list trading permissions; if view, it won't. That screen is the consent
— read it before approving.
Step 2 — Wait for the connection
Poll GET /api/v1/agent/cex/oauth/status until connected is true. Confirm the
returned connection.mode matches what they intended (view vs execute).
Step 3 — Use it
GET /api/v1/agent/cex/oauth/balances— balances (works in either mode).POST /api/v1/agent/cex/oauth/orders— place or dry-run an order. Always run once with"validate_only": truefirst and show the user the venue's own description of what would execute; place the live order only on their explicit go-ahead. Anexecute-mode connection is required — aviewconnection is refused by the platform.
Guardrails — never
- Never ask the user for a Kraken API key or secret in this flow. If they want
to provide one, that's the other skill (
setup-kraken), not this one. - Never place a live order without a preceding validate-only preview the user approved.
- Never claim a trade is attributed/placed without echoing the returned
tx_idsand venue description.
Where this fits
setup-kraken (BYOK) and connect-kraken (OAuth) are siblings. Pick by the
user's preference: hold-your-own-key-locally vs let-Mangrove-manage-access.
Everything downstream (validate-then-place, telemetry) is the same.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

