For AI agents and scripts
Claude, Codex or your own bot can read your Hyperliquid account and trade crypto and 24/7 stock perps through Coincess. Your risk limits apply to every order, whoever sends it.
It installs everything, asks you to approve once, sets safe limits and connects itself.
Set up Coincess so you can help me trade on Hyperliquid. 1. Install it: npm i -g https://coincess.com/downloads/coincess-1.2.0.tgz 2. Run: coincess login. It opens coincess.com/cli. Wait while I check the code and approve it in my browser. 3. Set safe limits: coincess config risk 1, then coincess config max-lev 5, then coincess config daily-loss 5 4. Connect yourself to it as an MCP server: claude mcp add coincess -- coincess mcp --allow-trading 5. Show me my account (coincess) and the stocks board (coincess stocks). Rules for trading: always call preview_order first and show me the size, stop-loss, estimated liquidation price and fee. Only place the order after I say yes. If my limits block an order, explain why; never work around them.
Use the install command above (Node 20+). Works on macOS, Linux and Windows.
coincess login opens coincess.com/cli. Approve a trade-only API wallet: it can't withdraw, and the key stays on your computer.
Add coincess mcp to Claude Code, Claude Desktop, Codex or any MCP client. It's read-only unless you add --allow-trading.
claude mcp add coincess -- coincess mcp --allow-trading
codex mcp add coincess -- coincess mcp --allow-trading
{
"mcpServers": {
"coincess": {
"command": "coincess",
"args": ["mcp", "--allow-trading"]
}
}
}Leave out --allow-trading for read-only access. Give a bot its own wallet and tighter limits with a profile: coincess --profile bot login.
Every new position needs a stop-loss, and it has to sit before liquidation.
"Risk 1%" sizes the trade so a hit stop costs 1% of your equity, fees included.
After a 24h loss of 10% (you choose), new positions are blocked. Closing always works.
Every order your agent sends is logged with Hyperliquid's answer.
get_account / get_positionsEquity, margin, positions, liquidation distanceget_quotes / get_stocks_boardCrypto plus 24/7 stock, index and commodity perpspreview_orderSize, margin, fee, est. liquidation, limit check, without sendingplace_orderMarket or limit, with TP/SL and an idempotency key (needs --allow-trading)close_position / set_tpsl / cancel_ordersManage what's open (needs --allow-trading)get_pnl / get_limits / get_fillsPerformance and the rules your agent must follow0.03% per trade on top of Hyperliquid's own fee, the same as trading on the web. You approve it once during login, capped at 0.05%. No subscription.
Trading perpetual futures with leverage is high risk and can lose more than your margin. AI agents make mistakes: keep limits tight and review what they do. Stock perps aren't available to US persons. Nothing here is financial advice. See the docs and terms.