For AI agents and scripts

Let your AI trade, with guardrails

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.

The fastest way: paste this into Claude Code

It installs everything, asks you to approve once, sets safe limits and connects itself.

Setup prompt
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.
1 Install

Use the install command above (Node 20+). Works on macOS, Linux and Windows.

2 Approve once

coincess login opens coincess.com/cli. Approve a trade-only API wallet: it can't withdraw, and the key stays on your computer.

3 Connect your AI

Add coincess mcp to Claude Code, Claude Desktop, Codex or any MCP client. It's read-only unless you add --allow-trading.

Other clients

Claude Code
claude mcp add coincess -- coincess mcp --allow-trading
Codex
codex mcp add coincess -- coincess mcp --allow-trading
Claude Desktop (claude_desktop_config.json)
{
  "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.

Guardrails your agent can't skip

Stop required

Every new position needs a stop-loss, and it has to sit before liquidation.

Risk sizing

"Risk 1%" sizes the trade so a hit stop costs 1% of your equity, fees included.

Daily-loss switch

After a 24h loss of 10% (you choose), new positions are blocked. Closing always works.

Journal

Every order your agent sends is logged with Hyperliquid's answer.

What your agent can do

get_account / get_positionsEquity, margin, positions, liquidation distance
get_quotes / get_stocks_boardCrypto plus 24/7 stock, index and commodity perps
preview_orderSize, margin, fee, est. liquidation, limit check, without sending
place_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 follow

Fees

0.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.