[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GSNSKP19AH2QP4HXHB0CA3":3,"skill-same:01M6GSNSKP19AH2QP4HXHB0CA3":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6GSNSKP19AH2QP4HXHB0CA3","fere",null,"Move real money on-chain through FereAI with a single wallet — yours, or one agent's. Swap and bridge on 7 chains with server-side take-profit\u002Fstop-loss, trade Hyperliquid perps and spot, bet on Polymarket, park USDC in a yield vault, all behind one key or the MCP connector. Use when the user says \"fere\", \"my wallet\", \"agent wallet\", \"gasless swap\", \"buy this token\", \"swap\", \"bridge\", \"stop loss\", \"take profit\", \"limit order\", \"perp\", \"Hyperliquid\", \"Polymarket\", \"onchain yield\", \"check my holdings\", \"custodial vs non-custodial\", or wants to trade with real money from code or chat. For giving every end user of a product their own wallet, use the fere-multitenant skill instead.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"end","when","holdings","hyperliquid perps","profit","on-chain","mkdir","ls","gasless","move","chain","MCP","non-custodial","perps","onchain","Wallet","Connector","bridge","Bash","server","product","code","2026-11-10 10:12:30",false,"---\nname: fere\ndescription: Move real money on-chain through FereAI with a single wallet — yours, or one agent's. Swap and bridge on 7 chains with server-side take-profit\u002Fstop-loss, trade Hyperliquid perps and spot, bet on Polymarket, park USDC in a yield vault, all behind one key or the MCP connector. Use when the user says \"fere\", \"my wallet\", \"agent wallet\", \"gasless swap\", \"buy this token\", \"swap\", \"bridge\", \"stop loss\", \"take profit\", \"limit order\", \"perp\", \"Hyperliquid\", \"Polymarket\", \"onchain yield\", \"check my holdings\", \"custodial vs non-custodial\", or wants to trade with real money from code or chat. For giving every end user of a product their own wallet, use the fere-multitenant skill instead.\nallowed-tools: Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ffere.py *) Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ftest_fere.py *) Bash(mkdir *) Bash(ls *) Read Write Edit\n---\n\n# Fere — the money layer for one agent\n\nFereAI is a **wallet + execution API behind one bearer token**: register an Ed25519\nkeypair, get an EVM address and a Solana address, and swap, bridge, arm stop-losses,\nopen perps, buy prediction-market shares or earn yield through the same auth. No\nemail, no KYC, no dashboard, no gas token, no signing code.\n\n> **One wallet, or one per end user?** This skill is the single-wallet path — your own\n> money, or one agent's. Building a product where every user gets their own wallet (and\n> their own HL account and Polymarket Safe)? That is **`\u002Ffere-multitenant`**.\n\nThe user's request is: **$ARGUMENTS**\n\nIf `$ARGUMENTS` is empty, ask what they want to set up or trade. Otherwise: pick the\nlane below, read the one reference file it names, then act.\n\n> **Real money.** Everything here except `quote`\u002F`dryrun` moves funds that cannot be\n> withdrawn to an outside address. Before the first live call in a session, say what\n> will move, from which wallet, and how much — and get a yes.\n\n---\n\n## 1. Which door: MCP or REST?\n\n| | **MCP connector** (`fere_*` tools) | **key-auth REST** (`scripts\u002Ffere.py`) |\n|---|---|---|\n| Who | *you*, in Claude\u002FCursor\u002FChatGPT — research, one-off trades on **the human's own account** | *code* — a script, a bot, CI; also the substrate `\u002Ffere-multitenant` builds on |\n| Auth | Clerk OAuth, or an `agt_*` bearer for headless use, against `https:\u002F\u002Fapi.fereai.xyz\u002Fmcp` | Ed25519 → `agt_*` bearer, 1 h |\n| Wallets | exactly one pair — the account's | one pair per agent; more wallets = more agents |\n| Polymarket | ✅ 12 tools, incl. discovery + live prices (but `fere_polymarket_setup` posts `\u002Fsetup\u002Fv2`, which fails on a fresh agent — let `fere_polymarket_account` run setup) | ✅ **own Safe per agent** via the `\u002Fpolymarket\u002F*` routes; no discovery\u002Fprice tools |\n| Hyperliquid | ✅ perps + spot on that one account | ✅ **own HL account per agent** (`min_fund_usd` 50 — **fund first; fund runs setup itself**; setup on an empty account fails `HYPERLIQUID_NOT_FUNDED`) |\n| Task polling | ❌ no task tool → **confirm every fill by holdings diff** | ✅ `GET \u002Fv1\u002Ftasks\u002F{id}` (still diff holdings; **poll with a deadline** — an id that was never issued is `200 PENDING` forever) |\n\n**If both are available, prefer MCP for the user's own money and the CLI for anything\nmulti-wallet.** They are the same backend; a wallet made by one is invisible to the\nother unless you hold its key.\n\n## 2. Minutes to a funded wallet\n\nRun these from this skill's directory. Paths are `scripts\u002F…` next to this file.\n\n```bash\npython3 scripts\u002Ftest_fere.py                  # 22 checks, ~6 s, no money — run this first\npython3 scripts\u002Ffere.py new alice             # register → prints the EVM + Solana address\npython3 scripts\u002Ffere.py ls                    # every wallet you own\npython3 scripts\u002Ffere.py holdings alice        # balances across all chains AND venues\npython3 scripts\u002Ffere.py poly setup alice      # alice's own Polymarket Safe (~5 s)\npython3 scripts\u002Ffere.py perp status alice     # alice's own Hyperliquid account (setup needs $50 in it FIRST)\n```\n\nSend funds to the printed addresses (**any liquid token, no gas coin needed**), then:\n\n```bash\npython3 scripts\u002Ffere.py quote alice --chain base --in USDC --out 0x\u003Ctoken> --usd 10   # dryrun\npython3 scripts\u002Ffere.py buy   alice --chain base --in USDC --out 0x\u003Ctoken> --usd 10 \\\n        --tp 1.0:0.5 --sl 0.3:1.0 --i-understand-this-moves-real-money\n```\n\nThat last call arms a server-side +100 % take-profit on half and a −30 % stop on the\nrest, then **confirms the fill by diffing holdings** and exits non-zero if it can't.\nThe keyring lives at `$FERE_HOME` (default `~\u002F.fere\u002Fagents.json`, 0600) — **that file\nis the login**; back it up, never commit it, never print it.\n\n> **Provenance.** Live fills have gone through both the MCP connector and the key-auth REST path. `fere.py buy` itself has not carried a live fill in our hands yet. Run one funded $10 round trip through your own path before it touches money you care about.\n\n## 3. The six rules that cost real money to learn\n\n1. **A fill is a holdings delta. Nothing else.** `status` lies both ways and\n   `message` is a hardcoded constant (`\"Swap task queued successfully\"` sits next to\n   `status:\"failure\"`). Snapshot → swap → poll task → **re-read holdings 3× over 15 s**\n   and diff. `FAILURE` + delta > 0 means filled; `SUCCESS` + delta == 0 means\n   *unconfirmed* — show pending, never auto-retry. **Every read in that diff must be\n   `GET \u002Fv1\u002Fholdings?event=wallet-refresh`**: a plain read can be Fere's saved answer,\n   and an empty wallet's answer is kept up to **45 min** and never re-checked\n   (`reference\u002Fspot.md` § Holdings). `fere.py` always refreshes.\n2. **Only `\"Balance validation failed\"` and a 4xx are definitive failures** (Fere\n   validates balance before routing, so nothing ran). Everything else can fill late.\n   Two corollaries from the sweep: **every venue write returns HTTP 200 with a\n   `task_id` even when it cannot succeed** (perp with no collateral, HL spot with no\n   setup, a Polymarket order with no cash) — the task is the verdict, the status code\n   is not; and a task whose error names a precondition (`Hyperliquid setup not\n   complete`, `Minimum … withdraw is $6.00`, `Insufficient Polymarket cash balance`,\n   `BELOW_MINIMUM`) is definitive too. **Always poll with a deadline**: `GET\n   \u002Fv1\u002Ftasks\u002F{id}` answers `200 PENDING` forever for an id that was never issued, so\n   \"poll until terminal\" never terminates on a typo.\n3. **A timed-out write is UNKNOWN — read, never re-send.** `idempotency_key` is accepted but **not enforced**: one key produced three filled swaps because the client re-sent on a read timeout. A ConnectError is safe to retry (nothing was sent); a ReadTimeout is not.\n4. **One on-chain action in flight per wallet, ≥3 s gap.** Parallel sends produce\n   mempool nonce errors. `fere.py` takes a per-wallet lock and queues; keep that.\n5. **Hooks re-base on Fere's price at registration, not your entry, and they decay.**\n   Arm them inline at buy, then reconcile `holdings[].outstanding_orders` on every\n   poll against your own expected-exits table and re-arm what vanished.\n6. **Fere is execution + balances. Prices come from your own feed.** The one\n   exception is `fere_polymarket_prices`, which reads the live book.\n\nMin notional **$5** (HL: $10 per order, **$6 to withdraw** from HL; Earn **$100** to\ndeposit *and* to withdraw) — `fere.py` enforces the $5 on `--usd`, but a raw `--amount`\nin smallest units is passed through unchecked, so size that path yourself. Default `slippage_bps` 300, 500 on thin books.\nAll-in cost same-chain runs **57–70 bps per leg**; budget 60–100. Bridging into Robinhood Chain tolled\n**2–8 %, variably** — deposit per chain instead of bridging on the buy path.\n\n## 4. Pick the lane\n\n| The ask | Read | Surface |\n|---|---|---|\n| Wallets, keys, recovery, custody, no-CORS, gasless | `reference\u002Fwallets.md` | `fere.py new\u002Fls\u002Fkey\u002Fimport\u002Frecover` |\n| **Putting this in a consumer product** — the passthrough allowlist, CSP for a key-holding page, `prepare`\u002Fsizing, the fill rule, the funding journey | `reference\u002Fconsumer-app.md` | your own `\u002Fapi\u002Ffere\u002F{path}` |\n| A wallet per end user; replacing Privy\u002FTurnkey\u002FCDP | the **`\u002Ffere-multitenant`** skill | same CLI, keyring of N agents |\n| Buy\u002Fsell a token, bridge, TP\u002FSL, limit orders, honeypot check | `reference\u002Fspot.md` | `POST \u002Fv1\u002Fswap` · `fere_swap` |\n| Perps, leverage, funding, HL spot | `reference\u002Fhyperliquid.md` | `fere_perp_*` · `fere_spot_hl_*` |\n| Prediction markets, event odds, redeem | `reference\u002Fpolymarket.md` | `fere_polymarket_*` · `\u002Fpolymarket\u002F*` (discovery + prices **MCP only**) |\n| Park idle USDC | `reference\u002Fearn.md` | `fere_earn_*` · `\u002Fv1\u002Fearn\u002F*` |\n| Migrating off Privy \u002F Turnkey \u002F CDP, or deciding whether to | `\u002Ffere-multitenant` → its `reference\u002Fvs-privy.md` | — |\n\n## 5. What Fere cannot do — design around these\n\n- **No withdrawal or transfer to an arbitrary address.** Money leaves only by swapping\n  or by exporting the key in the web app (no API export for key-registered agents). **Size\n  every deposit as capital you are committing.** A stolen key or bearer can't *transfer*\n  funds out either — but it can swap them into anything, including a token the thief\n  controls, so treat a leak as a loss, not a contained incident.\n- **No end-user auth.** There is no email\u002Fpasskey\u002Fsocial login and no consent screen.\n  Your product owns identity; Fere only knows keys. (See Custody in\n  `reference\u002Fwallets.md`, and `\u002Ffere-multitenant`'s `reference\u002Fvs-privy.md`.)\n- **No CORS.** A browser cannot call `api.fereai.xyz` directly; put a stateless\n  method+path-allowlisted passthrough in front and keep `\u002Fv1\u002Fchat` denied (the one\n  endpoint known to burn credits, 15 per query).\n- **No sub-accounts.** One wallet pair per agent. More wallets = more agents.\n- **No Polymarket discovery or live prices outside MCP.** Every *trading* route works per\n  agent, but `markets`, `prices` and `whale_data` are MCP-only conveniences — read\n  `gamma-api.polymarket.com` \u002F `clob.polymarket.com` directly instead (fresher anyway).\n- **No published fee schedule**, no per-agent spend policy, and registration rate\n  limits are unknown — don't promise \"unlimited wallets\" to anyone.\n\n## 6. Cost\n\nReads, dryruns, hook and limit-order registration, security checks, Polymarket setup\nand every *failed* venue write burn **0 credits**. A fresh\nagent gets **200 credits that expire in 14 days**; packs are $5→300, $10→650,\n$20→1,400, and `GET \u002Fcredits\u002Fpacks` + `GET \u002Fcredits\u002Frecharge-chains` answer an `agt_`\nbearer, so an API agent can at least *see* the recharge path (`POST\n\u002Fcredits\u002Fonchain-recharge` is the buy — untested). Live swaps, perps and CLOB fills\nalso burned **zero** credits. Still open: whether an agent whose\n200 free credits expired at day 14 can still trade. Read `GET \u002Fv1\u002Fcredits` around your own and\nwrite the number down.\n\n## 7. Portability\n\nThis folder is self-contained: it lives at `skills\u002Ffere\u002F` and is installed with the\nplugin in this repo. `scripts\u002Ffere.py` needs only `httpx` plus `cryptography` (or\n`pynacl`), reads proxies from the environment, and keeps its keyring outside the repo.\nNothing here imports anything else from this repository. Run `scripts\u002Ffere.py` from\nthis directory.\n\n`allowed-tools` grants `Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ffere.py *)`, which Claude Code\nexpands to this folder wherever the plugin is installed. The `fere_*` MCP tools come\nfrom a connector, not this folder — add it with\n\n```json\n{\"mcpServers\": {\"FereAI\": {\"type\": \"http\", \"url\": \"https:\u002F\u002Fapi.fereai.xyz\u002Fmcp\"}}}\n```\n\nwhich authenticates by Clerk OAuth in the client. The same endpoint also accepts an\n`Authorization: Bearer agt_…` header, which points MCP at a wallet you made with the\nCLI (headless mode in the README).\n\n## 8. If something looks broken\n\n`python3 scripts\u002Ftest_fere.py` from this directory first — it separates a Fere outage\nfrom your bug in under six seconds. A `holdings` 502 blanks the *whole* response from\none bad upstream: retry 3× with backoff, keep the last-good snapshot for **display\nonly**, and never trade off a stale one.\n\n**A deposit confirmed on-chain but missing from holdings** is Fere's saved answer, not\nlost money: read once with `?event=wallet-refresh`. Funding and swaps validate against\nthe chain, not that list, so they already work (a $100 USDC deposit on Base once stayed invisible\nfor ~40 min to plain polls while `perp\u002Ffund` moved it first try — Fere's RCA).\n","# Fere — the money layer for one agent\n\nFereAI is a **wallet + execution API behind one bearer token**: register an Ed25519\nkeypair, get an EVM address and a Solana address, and swap, bridge, arm stop-losses,\nopen perps, buy prediction-market shares or earn yield through the same auth. No\nemail, no KYC, no dashboard, no gas token, no signing code.\n\n> **One wallet, or one per end user?** This skill is the single-wallet path — your own\n> money, or one agent's. Building a product where every user gets their own wallet (and\n> their own HL account and Polymarket Safe)? That is **`\u002Ffere-multitenant`**.\n\nThe user's request is: **$ARGUMENTS**\n\nIf `$ARGUMENTS` is empty, ask what they want to set up or trade. Otherwise: pick the\nlane below, read the one reference file it names, then act.\n\n> **Real money.** Everything here except `quote`\u002F`dryrun` moves funds that cannot be\n> withdrawn to an outside address. Before the first live call in a session, say what\n> will move, from which wallet, and how much — and get a yes.\n\n---\n\n## 1. Which door: MCP or REST?\n\n| | **MCP connector** (`fere_*` tools) | **key-auth REST** (`scripts\u002Ffere.py`) |\n|---|---|---|\n| Who | *you*, in Claude\u002FCursor\u002FChatGPT — research, one-off trades on **the human's own account** | *code* — a script, a bot, CI; also the substrate `\u002Ffere-multitenant` builds on |\n| Auth | Clerk OAuth, or an `agt_*` bearer for headless use, against `https:\u002F\u002Fapi.fereai.xyz\u002Fmcp` | Ed25519 → `agt_*` bearer, 1 h |\n| Wallets | exactly one pair — the account's | one pair per agent; more wallets = more agents |\n| Polymarket | ✅ 12 tools, incl. discovery + live prices (but `fere_polymarket_setup` posts `\u002Fsetup\u002Fv2`, which fails on a fresh agent — let `fere_polymarket_account` run setup) | ✅ **own Safe per agent** via the `\u002Fpolymarket\u002F*` routes; no discovery\u002Fprice tools |\n| Hyperliquid | ✅ perps + spot on that one account | ✅ **own HL account per agent** (`min_fund_usd` 50 — **fund first; fund runs setup itself**; setup on an empty account fails `HYPERLIQUID_NOT_FUNDED`) |\n| Task polling | ❌ no task tool → **confirm every fill by holdings diff** | ✅ `GET \u002Fv1\u002Ftasks\u002F{id}` (still diff holdings; **poll with a deadline** — an id that was never issued is `200 PENDING` forever) |\n\n**If both are available, prefer MCP for the user's own money and the CLI for anything\nmulti-wallet.** They are the same backend; a wallet made by one is invisible to the\nother unless you hold its key.\n\n## 2. Minutes to a funded wallet\n\nRun these from this skill's directory. Paths are `scripts\u002F…` next to this file.\n\n```bash\npython3 scripts\u002Ftest_fere.py                  # 22 checks, ~6 s, no money — run this first\npython3 scripts\u002Ffere.py new alice             # register → prints the EVM + Solana address\npython3 scripts\u002Ffere.py ls                    # every wallet you own\npython3 scripts\u002Ffere.py holdings alice        # balances across all chains AND venues\npython3 scripts\u002Ffere.py poly setup alice      # alice's own Polymarket Safe (~5 s)\npython3 scripts\u002Ffere.py perp status alice     # alice's own Hyperliquid account (setup needs $50 in it FIRST)\n```\n\nSend funds to the printed addresses (**any liquid token, no gas coin needed**), then:\n\n```bash\npython3 scripts\u002Ffere.py quote alice --chain base --in USDC --out 0x\u003Ctoken> --usd 10   # dryrun\npython3 scripts\u002Ffere.py buy   alice --chain base --in USDC --out 0x\u003Ctoken> --usd 10 \\\n        --tp 1.0:0.5 --sl 0.3:1.0 --i-understand-this-moves-real-money\n```\n\nThat last call arms a server-side +100 % take-profit on half and a −30 % stop on the\nrest, then **confirms the fill by diffing holdings** and exits non-zero if it can't.\nThe keyring lives at `$FERE_HOME` (default `~\u002F.fere\u002Fagents.json`, 0600) — **that file\nis the login**; back it up, never commit it, never print it.\n\n> **Provenance.** Live fills have gone through both the MCP connector and the key-auth REST path. `fere.py buy` itself has not carried a live fill in our hands yet. Run one funded $10 round trip through your own path before it touches money you care about.\n\n## 3. The six rules that cost real money to learn\n\n1. **A fill is a holdings delta. Nothing else.** `status` lies both ways and\n   `message` is a hardcoded constant (`\"Swap task queued successfully\"` sits next to\n   `status:\"failure\"`). Snapshot → swap → poll task → **re-read holdings 3× over 15 s**\n   and diff. `FAILURE` + delta > 0 means filled; `SUCCESS` + delta == 0 means\n   *unconfirmed* — show pending, never auto-retry. **Every read in that diff must be\n   `GET \u002Fv1\u002Fholdings?event=wallet-refresh`**: a plain read can be Fere's saved answer,\n   and an empty wallet's answer is kept up to **45 min** and never re-checked\n   (`reference\u002Fspot.md` § Holdings). `fere.py` always refreshes.\n2. **Only `\"Balance validation failed\"` and a 4xx are definitive failures** (Fere\n   validates balance before routing, so nothing ran). Everything else can fill late.\n   Two corollaries from the sweep: **every venue write returns HTTP 200 with a\n   `task_id` even when it cannot succeed** (perp with no collateral, HL spot with no\n   setup, a Polymarket order with no cash) — the task is the verdict, the status code\n   is not; and a task whose error names a precondition (`Hyperliquid setup not\n   complete`, `Minimum … withdraw is $6.00`, `Insufficient Polymarket cash balance`,\n   `BELOW_MINIMUM`) is definitive too. **Always poll with a deadline**: `GET\n   \u002Fv1\u002Ftasks\u002F{id}` answers `200 PENDING` forever for an id that was never issued, so\n   \"poll until terminal\" never terminates on a typo.\n3. **A timed-out write is UNKNOWN — read, never re-send.** `idempotency_key` is accepted but **not enforced**: one key produced three filled swaps because the client re-sent on a read timeout. A ConnectError is safe to retry (nothing was sent); a ReadTimeout is not.\n4. **One on-chain action in flight per wallet, ≥3 s gap.** Parallel sends produce\n   mempool nonce errors. `fere.py` takes a per-wallet lock and queues; keep that.\n5. **Hooks re-base on Fere's price at registration, not your entry, and they decay.**\n   Arm them inline at buy, then reconcile `holdings[].outstanding_orders` on every\n   poll against your own expected-exits table and re-arm what vanished.\n6. **Fere is execution + balances. Prices come from your own feed.** The one\n   exception is `fere_polymarket_prices`, which reads the live book.\n\nMin notional **$5** (HL: $10 per order, **$6 to withdraw** from HL; Earn **$100** to\ndeposit *and* to withdraw) — `fere.py` enforces the $5 on `--usd`, but a raw `--amount`\nin smallest units is passed through unchecked, so size that path yourself. Default `slippage_bps` 300, 500 on thin books.\nAll-in cost same-chain runs **57–70 bps per leg**; budget 60–100. Bridging into Robinhood Chain tolled\n**2–8 %, variably** — deposit per chain instead of bridging on the buy path.\n\n## 4. Pick the lane\n\n| The ask | Read | Surface |\n|---|---|---|\n| Wallets, keys, recovery, custody, no-CORS, gasless | `reference\u002Fwallets.md` | `fere.py new\u002Fls\u002Fkey\u002Fimport\u002Frecover` |\n| **Putting this in a consumer product** — the passthrough allowlist, CSP for a key-holding page, `prepare`\u002Fsizing, the fill rule, the funding journey | `reference\u002Fconsumer-app.md` | your own `\u002Fapi\u002Ffere\u002F{path}` |\n| A wallet per end user; replacing Privy\u002FTurnkey\u002FCDP | the **`\u002Ffere-multitenant`** skill | same CLI, keyring of N agents |\n| Buy\u002Fsell a token, bridge, TP\u002FSL, limit orders, honeypot check | `reference\u002Fspot.md` | `POST \u002Fv1\u002Fswap` · `fere_swap` |\n| Perps, leverage, funding, HL spot | `reference\u002Fhyperliquid.md` | `fere_perp_*` · `fere_spot_hl_*` |\n| Prediction markets, event odds, redeem | `reference\u002Fpolymarket.md` | `fere_polymarket_*` · `\u002Fpolymarket\u002F*` (discovery + prices **MCP only**) |\n| Park idle USDC | `reference\u002Fearn.md` | `fere_earn_*` · `\u002Fv1\u002Fearn\u002F*` |\n| Migrating off Privy \u002F Turnkey \u002F CDP, or deciding whether to | `\u002Ffere-multitenant` → its `reference\u002Fvs-privy.md` | — |\n\n## 5. What Fere cannot do — design around these\n\n- **No withdrawal or transfer to an arbitrary address.** Money leaves only by swapping\n  or by exporting the key in the web app (no API export for key-registered agents). **Size\n  every deposit as capital you are committing.** A stolen key or bearer can't *transfer*\n  funds out either — but it can swap them into anything, including a token the thief\n  controls, so treat a leak as a loss, not a contained incident.\n- **No end-user auth.** There is no email\u002Fpasskey\u002Fsocial login and no consent screen.\n  Your product owns identity; Fere only knows keys. (See Custody in\n  `reference\u002Fwallets.md`, and `\u002Ffere-multitenant`'s `reference\u002Fvs-privy.md`.)\n- **No CORS.** A browser cannot call `api.fereai.xyz` directly; put a stateless\n  method+path-allowlisted passthrough in front and keep `\u002Fv1\u002Fchat` denied (the one\n  endpoint known to burn credits, 15 per query).\n- **No sub-accounts.** One wallet pair per agent. More wallets = more agents.\n- **No Polymarket discovery or live prices outside MCP.** Every *trading* route works per\n  agent, but `markets`, `prices` and `whale_data` are MCP-only conveniences — read\n  `gamma-api.polymarket.com` \u002F `clob.polymarket.com` directly instead (fresher anyway).\n- **No published fee schedule**, no per-agent spend policy, and registration rate\n  limits are unknown — don't promise \"unlimited wallets\" to anyone.\n\n## 6. Cost\n\nReads, dryruns, hook and limit-order registration, security checks, Polymarket setup\nand every *failed* venue write burn **0 credits**. A fresh\nagent gets **200 credits that expire in 14 days**; packs are $5→300, $10→650,\n$20→1,400, and `GET \u002Fcredits\u002Fpacks` + `GET \u002Fcredits\u002Frecharge-chains` answer an `agt_`\nbearer, so an API agent can at least *see* the recharge path (`POST\n\u002Fcredits\u002Fonchain-recharge` is the buy — untested). Live swaps, perps and CLOB fills\nalso burned **zero** credits. Still open: whether an agent whose\n200 free credits expired at day 14 can still trade. Read `GET \u002Fv1\u002Fcredits` around your own and\nwrite the number down.\n\n## 7. Portability\n\nThis folder is self-contained: it lives at `skills\u002Ffere\u002F` and is installed with the\nplugin in this repo. `scripts\u002Ffere.py` needs only `httpx` plus `cryptography` (or\n`pynacl`), reads proxies from the environment, and keeps its keyring outside the repo.\nNothing here imports anything else from this repository. Run `scripts\u002Ffere.py` from\nthis directory.\n\n`allowed-tools` grants `Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ffere.py *)`, which Claude Code\nexpands to this folder wherever the plugin is installed. The `fere_*` MCP tools come\nfrom a connector, not this folder — add it with\n\n```json\n{\"mcpServers\": {\"FereAI\": {\"type\": \"http\", \"url\": \"https:\u002F\u002Fapi.fereai.xyz\u002Fmcp\"}}}\n```\n\nwhich authenticates by Clerk OAuth in the client. The same endpoint also accepts an\n`Authorization: Bearer agt_…` header, which points MCP at a wallet you made with the\nCLI (headless mode in the README).\n\n## 8. If something looks broken\n\n`python3 scripts\u002Ftest_fere.py` from this directory first — it separates a Fere outage\nfrom your bug in under six seconds. A `holdings` 502 blanks the *whole* response from\none bad upstream: retry 3× with backoff, keep the last-good snapshot for **display\nonly**, and never trade off a stale one.\n\n**A deposit confirmed on-chain but missing from holdings** is Fere's saved answer, not\nlost money: read once with `?event=wallet-refresh`. Funding and swaps validate against\nthe chain, not that list, so they already work (a $100 USDC deposit on Base once stayed invisible\nfor ~40 min to plain polls while `perp\u002Ffund` moved it first try — Fere's RCA).\n",{"name":5,"description":7,"allowed-tools":46},"Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ffere.py *) Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Ftest_fere.py *) Bash(mkdir *) Bash(ls *) Read Write Edit","main","3df1d0d67b30ff15236561f8c0f9f06d33f42dfd","skills\u002Fexchanges\u002Ffere-ai-fere",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill fere",{"tool":62,"command":63},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill fere",{"tool":65,"command":66},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill fere","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002FSKILL.md",true,[70,76,80,84,88,92,96,102,106,110],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fconsumer-app.md","REFERENCE","参考文档",6451,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fconsumer-app.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"reference\u002Fearn.md",2475,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fearn.md",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"reference\u002Fhyperliquid.md",5143,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fhyperliquid.md",{"path":85,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":86,"sourceHtmlUrl":87},"reference\u002Fpolymarket.md",4800,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fpolymarket.md",{"path":89,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":90,"sourceHtmlUrl":91},"reference\u002Fspot.md",7688,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fspot.md",{"path":93,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":94,"sourceHtmlUrl":95},"reference\u002Fwallets.md",3896,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Freference\u002Fwallets.md",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"scripts\u002Ffere.py","SCRIPT","脚本",52313,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Fscripts\u002Ffere.py",{"path":103,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Ftest_fere.py",6597,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002Fscripts\u002Ftest_fere.py",{"path":107,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":108,"sourceHtmlUrl":109},"SOURCE.md",329,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002FSOURCE.md",{"path":111,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":112,"sourceHtmlUrl":113},"TRUST.auto.yaml",2268,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fexchanges\u002Ffere-ai-fere\u002FTRUST.auto.yaml",[115,125,133,141,149,157],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":124},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":124},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":124},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":145,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":124},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":153,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":124},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":119,"licenseFileUrl":161,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":124},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]