ghostswap-partners-api

ghostswap-partners-api is a skill for Claude Code from ghostswap1/ghostswap-agents. It costs 162 tokens per session (5,158 once invoked), scanned A, original, MIT.

A guide for connecting an application to the GhostSwap Partners API, a server interface for non-custodial cryptocurrency swaps. Users send one cryptocurrency and receive another in a destination wallet.

In plain words
What is it for?
Use it to build swap forms or widgets, quote exchange rates, accept one token and credit another, or add swaps to wallets, apps, bots, and payment flows.
Why use it?
It explains how to add crypto exchange functionality while keeping the swap credentials and processing on a server.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ghostswap-partners-api plugin — 1 skill, 1 MCP server shipped together

Good fit Use it to build swap forms or widgets, quote exchange rates, accept one token and credit another, or add swaps to wallets, apps, bots, and payment flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ghostswap1/ghostswap-agents/ghostswap-partners-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ghostswap1/ghostswap-agents --skill ghostswap-partners-api
Clone the repo
git clone --depth 1 https://github.com/ghostswap1/ghostswap-agents

Made for: Claude Code.

Or install ghostswap-partners-api, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ghostswap-partners-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/ghostswap1/ghostswap-agents/ghostswap-partners-api.svg)](https://agentmods.dev/skills/ghostswap1/ghostswap-agents/ghostswap-partners-api)
Your own site
<a href="https://agentmods.dev/skills/ghostswap1/ghostswap-agents/ghostswap-partners-api"><img src="https://agentmods.dev/badge/skills/ghostswap1/ghostswap-agents/ghostswap-partners-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00162 $0.05158
Opus 5 $0.00081 $0.02579
Sonnet 5 $0.00032 $0.01032
Haiku 4.5 $0.00016 $0.00516

Measured 8d ago against content hash c835020bd4b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ghostswap-partners-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ghostswap-partners-api/SKILL.md · 411 lines

How it starts

The opening of the file, as written. The whole thing — 411 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GhostSwap Partners API integration

You are helping a developer integrate the GhostSwap Partners API — a server-to-server REST API for non-custodial crypto-to-crypto swaps. The developer's end-users send funds to a deposit address GhostSwap returns; the destination wallet receives the swapped funds. GhostSwap handles all upstream liquidity, signing, and clearing. The partner earns a 0–4 % markup (chosen at application time) on every completed swap, paid out in USDT once balance ≥ $100.

This skill is the single document you need to produce a working end-to-end integration. Read it once, then write code.


When to use this skill

Trigger when the developer's request involves any of:

  • Adding a crypto exchange widget, swap form, or "convert X to Y" flow to their app
  • Accepting one crypto and crediting the user in a different one
  • Quoting live exchange rates for a pair (e.g. BTC → ETH)
  • Earning affiliate commission on referred swaps (the ?ref=<slug> flow on ghostswap.io)
  • Building a Telegram bot, Discord bot, or wallet plugin that does crypto-to-crypto
  • Specifically mentions "GhostSwap", "ghostswap.io", "partners.ghostswap.io", gspk_live_*, or gssk_live_*

Do not trigger for fiat on/off-ramps, custodial trading APIs, or self-custodial DEX SDKs — those are different products.


Architecture, in one sentence

Your server holds the bearer token; your server proxies every call to https://partners-api.ghostswap.io; your browser code talks only to your server.

The bearer must never reach the browser. Browser code calls /api/quote, /api/swap, etc. on the developer's own server; the server adds Authorization: Bearer ${PUBLIC_KEY}:${SECRET} and forwards to GhostSwap.


Step 0 — Get a credential (one-time, by the developer)

The developer (not the agent) must do this once:

  1. Sign in at https://partners.ghostswap.io/sign-up.
  2. Submit the application form (org name, website, expected monthly volume, chosen partner fee 0–4 %).
  3. Wait for admin approval (~24 h). Once status flips to active, an activation email lands in their inbox.
  4. Open /dashboard/api-credentials → click Create live credential → copy both values:
    • GHOSTSWAP_PUBLIC_KEY — looks like gspk_live_<32 hex>, always recoverable from the dashboard.
    • GHOSTSWAP_SECRET — looks like gssk_live_<48 hex>, shown once at creation; can be revealed later via the audit-logged Reveal secret button.
  5. Set both as environment variables on the developer's server. Never paste them into code that ships to the browser.

Read the full file on GitHub · 411 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 411 lines · 162 tokens per session scan A c835020bd4b3

Subscribe to this mod's changes

ghostswap-partners-api is a skill published in the GitHub repository ghostswap1/ghostswap-agents (3 stars, last pushed 3mo ago), licensed MIT. It adds 162 tokens to every session and 5,158 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

0xarchive

Query historical and real-time crypto market data from 0xArchive across two top-level venue APIs: Hyperliquid and Lighter.xyz. HIP-3 builder perps live under the Hyperliquid namespace at /v1/hyperliquid/hip3. HIP-4 outcome markets (binary prediction markets like 'Will BTC be >= X by date Y?') live at…

0xArchiveIO/0xarchive-skill · 310 tokens

coinmarketcap

Expert assistant for CoinMarketCap Pro API — price quotes, listings, historical OHLCV, market metrics, Fear & Greed Index, CMC100/CMC20 indices, exchange data, DEX data, airdrops, trending, community sentiment. Covers 10+ endpoint categories across REST + MCP + x402 pay-per-call modes. Use when the user wants: current…

Vo1ganin/crypto-claude-skills · 183 tokens

nansen

Expert assistant for Nansen API — Smart Money analytics, wallet profiling, token intelligence across 37 blockchains (EVM + Solana + Bitcoin + Hyperliquid + more). Use this skill whenever the user wants to: find what smart money / funds are buying/selling, analyze a wallet's PnL, trade history, or counterparties…

Vo1ganin/crypto-claude-skills · 195 tokens

solana-rpc

Expert assistant for Solana JSON-RPC — works with any provider: QuickNode, Helius, Triton, Ankr, Chainstack, or public endpoints. Standard JSON-RPC methods are identical across providers; only the URL differs. Use whenever the user wants raw Solana data: fetch transactions by signature, read account state, get block…

Vo1ganin/crypto-claude-skills · 195 tokens

dexscreener

Expert assistant for DexScreener API — free, unauthenticated public API for current DEX pair data across 20+ chains (Solana, Ethereum, Base, BSC, TON, etc.). Use when the user wants: current price / volume / liquidity / market cap of any token on any chain, search a token by symbol/name/address, find all trading pairs…

Vo1ganin/crypto-claude-skills · 150 tokens

dune

Expert assistant for querying and analyzing on-chain blockchain data using Dune Analytics. Use whenever the user wants to: analyze blockchain/on-chain data, write SQL for Dune, find wallet activity, track DeFi protocol metrics, analyze NFT trades, monitor token transfers, investigate smart contract events, check token…

Vo1ganin/crypto-claude-skills · 154 tokens