Developers · open source
The SDK, the MCP server and the agent skills behind GDEX, in one place. Spot, perps, outcomes, copy trading and bridging across 11 chains and HyperLiquid, through managed-custody wallets, so your code and your agents never hold a trading key.
Markdown skills that Claude Code, Codex, Cursor and 40+ other agents load on demand. Start with gdex-agent-trading.
npx skills add GemachDAO/gdex-skill --all --agent '*' -gThe full trading surface as Model Context Protocol tools, for any MCP client. Node.js 22 or newer.
npx @gemachdao/gdex-mcp-server init --client claudeTyped methods for every GDEX endpoint, managed-custody encryption and signing, retries and the HyperLiquid client.
npm install @gemachdao/gdex-skillinit merges into an existing config, keeps a .bak of the old file and leaves other servers alone. No API key is needed to start; shared keys are built in.
npx @gemachdao/gdex-mcp-server init --client claude # .mcp.jsonnpx @gemachdao/gdex-mcp-server init --client cursor # .cursor/mcp.jsonnpx @gemachdao/gdex-mcp-server init --client vscode # .vscode/mcp.jsonnpx @gemachdao/gdex-mcp-server init --client codex # .codex/config.tomlnpx @gemachdao/gdex-mcp-server init --client opencode # opencode.json
/plugin marketplace add GemachDAO/gdex-skill # Claude Code/plugin install gdex@gemachdaocodex plugin marketplace add GemachDAO/gdex-skill # Codexcodex plugin add gdex@gemachdaogemini extensions install https://github.com/GemachDAO/gdex-skill # Gemini CLI
Six tools that handle units, account resolution, re-quoting and recovery. Every tool carries read and write annotations, so clients can tell what moves money.
gdex_statusAPI reachability, connected accounts and the one next step.
gdex_connectSign in once from a key file on the user's machine, or create a new wallet. No secrets in chat.
gdex_preview_tradeExact terms before anything is signed: minimum received, size, margin, signed cap. Valid 60 seconds.
gdex_execute_tradeRuns only with the user's approval of that preview, or inside a delegated policy file the user edits.
gdex_operationFollows the trade to filled or failed, including each cross-chain funding step and recovery.
gdex_positionsBalances per chain, HyperLiquid positions, open orders and unfinished operations; exits via gdex_manage_position.
TypeScript, with types for every request and response. The control wallet signs once at sign-in; a session key signs each trade, encrypted with AES-256-CBC.
import { GdexSkill, GDEX_API_KEY_PRIMARY } from '@gemachdao/gdex-skill';const skill = new GdexSkill();skill.loginWithApiKey(GDEX_API_KEY_PRIMARY);// Read-only endpoints need no accountconst trending = await skill.getTrendingTokens({ chain: 'solana', period: '24h', limit: 5 });// Trades use the managed-custody session from sign-inconst trade = await skill.buyToken({chain: 8453, tokenAddress: '0xToken', amount: '0.01', slippage: 1,apiKey: GDEX_API_KEY_PRIMARY, walletAddress: controlAddress, sessionPrivateKey,});
The MCP server exposes 145 execution tools and 9 documentation tools; the SDK covers the same surface as methods.
Buy and sell on Solana, Sui and the EVM chains below, with DEX routing handled by GDEX.
One USDC balance across Ethereum, Optimism, BSC, Sonic, Base, Arbitrum and Solana. Buys fund USDC and gas from other chains automatically.
Market and limit orders, TP/SL, leverage up to each market's cap, builder-DEX markets such as equities, FX and commodities.
HIP-4 outcome markets: discover, pick a side, place limit orders, cancel and exit.
Create, update, cancel and list limit orders with take-profit and stop-loss.
Mirror Solana wallets and HyperLiquid perp traders, with leaderboards, PnL and transaction history.
Quote and execute cross-chain bridges; send native, ERC-20 and SPL tokens from managed wallets.
Cross-chain balances, trade history, token details, trending, OHLCV, top traders, livestreams, xStocks and Zora coins.
Keyless Python feeds that print NDJSON: HyperLiquid market risk, scored anomaly events, a 12-chain token screen and GVault NAV.
React and Next.js patterns for order forms, portfolios, wallet connection, theming and full trading pages.
Chain ids as the SDK’s ChainId enum uses them. The API base is https://trade-api.gemach.io/v1.
| Chain | Chain id | DEXes |
|---|---|---|
| Ethereum | 1 | Uniswap V2/V3, Odos |
| Optimism | 10 | Uniswap V3, Odos |
| BNB Smart Chain | 56 | PancakeSwap, Odos |
| Sonic | 146 | — |
| Fraxtal | 252 | Uniswap V3 |
| Nibiru | 6900 | — |
| Base | 8453 | Uniswap V3, Odos, Arcadia |
| Arbitrum One | 42161 | Uniswap V3, Odos |
| Berachain | 80094 | — |
| Solana | 622112261 | Raydium, Raydium V2, Orca |
| Sui | 1313131213 | Cetus, Bluefin |
| HyperLiquid | perps only | Native perp engine |
gdex_connect reads a key file on the user’s machine and stores it with 0600 permissions. Agents never ask for a private key or seed phrase.Source for the SDK, MCP server and skills.
@gemachdao/gdex-skill
@gemachdao/gdex-mcp-server
io.github.GemachDAO/gdex-mcp-server
Every SDK method, auth, managed custody and error codes.
What is verified live, live-read or offline, per chain and venue.
What changed in each release.
Product docs for GDEX and the rest of Gemach.