# FereAI Trading API — Wallets, Gasless Swaps and Stop-Loss for AI Agents

FereAI is a trading API for AI agents: a wallet your agent provisions itself, gasless swaps across 7 chains, and server-side take-profit and stop-loss in a single call.

Connect any MCP client at https://api.fereai.xyz/mcp. This page is the human-readable MCP landing at https://www.fereai.xyz/mcp.

## What is FereAI's trading API?

FereAI is a trading API for AI agents: a wallet your agent provisions itself, gasless swaps across 7 chains, and server-side take-profit and stop-loss in a single call. It also covers limit orders, Hyperliquid perps, Polymarket, USDC earn and a token security check, behind one agt_* bearer token, over REST, SSE, WebSocket and MCP.

## Which chains does FereAI support?

FereAI swaps on 7 chains — Ethereum, Base, Arbitrum, Polygon, BNB, Robinhood Chain and Solana — and trades perps on Hyperliquid. One EVM address serves every EVM chain and one Solana address covers Solana. Same-chain, cross-chain and EVM-to-Solana trades all go through the same POST /v1/swap.

## Is the swap API gasless?

Yes. Swaps are fully gasless on the swap chains: your agent never holds native gas, because Fere's Coinbase CDP wallets abstract it. Fund the address with USDC or any supported token and trade.

## How do stop-loss and take-profit work when my agent is offline?

Take-profit and stop-loss are fields in the swap body — take_profit and stop_loss, each with a price_percentage and a sell_percentage — and Fere holds them server-side and executes them when the price crosses, whether or not your agent is running. Add them later with POST /v1/hooks, or use POST /v1/limit-orders for absolute USD triggers with full cancel and replace.

## Who holds the keys? Is FereAI non-custodial?

Keys are generated and stored in Coinbase CDP server wallets inside AWS Nitro Enclaves (a TEE); not even Coinbase or Fere can read them. Fere signs your swaps and exits on your agent's behalf so they can fire while it is offline, there is no endpoint to transfer funds to an arbitrary address, and you can export the private key at any time.

## Can I export my private key?

Yes. Export your private key any time with one API call, then import it into MetaMask (EVM) or Phantom (Solana). Your addresses are standard EVM and Solana addresses, so nothing is stranded in Fere.

## How much does FereAI cost?

Free to start: every new agent gets 200 credits at signup, no card. Credits pay for research and chat queries; executed swaps carry no per-call credit charge — the swap fee is included in the quoted price, and dryrun: true previews it. Packs are $5 for 300, $10 for 650 and $20 for 1,400 credits and never expire; subscriptions are Lite 1,100, Pro 4,200 and Whale 16,000 credits a month.

## How do I connect FereAI to Claude Code, Cursor or ChatGPT?

Add the MCP server https://api.fereai.xyz/mcp. In Claude Code run `claude mcp add --transport http fere https://api.fereai.xyz/mcp`; in Cursor or Claude Desktop add it to mcp.json; in ChatGPT add it as a connector. Sign in on first connect, or pass an agt_* bearer for headless agents. 38 tools are exposed, including fere_swap, fere_holdings and fere_check_token_security.

## Does FereAI work with LangChain or the OpenAI Agents SDK?

Yes. Any MCP client works: in the OpenAI Agents SDK use HostedMCPTool with server_url https://api.fereai.xyz/mcp; in LangChain use MultiServerMCPClient from langchain-mcp-adapters with transport streamable_http. Or skip MCP and call the Python SDK (fere-sdk), the TypeScript SDK (@fereai/sdk) or REST directly.

## Can I give each of my app's users their own wallet?

Yes. Register one AgentDoor agent per end user from your backend; each agent gets its own EVM and Solana address, its own agt_* token and its own holdings. Users take money out by exporting their key.

See [pricing](https://www.fereai.xyz/pricing) and the [API skill file](https://api.fereai.xyz/skill.md).

HTML: https://www.fereai.xyz/mcp
