# Ophis > Ophis is an intent-based, MEV-protected DEX aggregator for agents and tokenized markets. Trade supported stablecoins, Stock Tokens, tokenized stocks, and other onchain assets, or integrate through MCP, SDK, and API. Ophis batch-settles on supported EVM chains, with Solana, Bitcoin, Monad, Hyperliquid (Hypercore), X Layer, Sui, Tron, Starknet and Zcash as additional NEAR sources and destinations. Ophis is a CoW Protocol fork supporting 14 EVM chains: Ethereum, Arbitrum One, Avalanche, Base, BNB Smart Chain, Gnosis Chain, Ink, Linea, Optimism, Plasma, Polygon, Robinhood Chain, Unichain, and Arc. Standard ERC-20 orders are offchain, wallet-signed intents with solver-paid settlement gas and a hard limit price: an agent signs a *bounded capability*, not an arbitrary transaction, and it can never be settled below its signed limit. On the Ophis-operated networks Optimism (chain 10), Unichain (chain 130), Robinhood Chain (chain 4663), and Arc (chain 5042), settlement uses Ophis's own GPv2Settlement at a non-canonical address (NOT CoW's canonical address). Arc swaps and configured Circle bridge routes are available in the swap app, including mapped expanded assets and a separate Ethereum WBTC → Ethereum cirBTC → Arc cirBTC flow; SDK v0.4.3 and the hosted MCP server also include Arc for ERC-20 orders. On their supported chains, agents MUST resolve the per-chain settlement domain (and orderbook host) via the `@ophis/sdk` helpers or the MCP `list_chains` tool before signing; signing against CoW's canonical address yields a domain the deployed contract rejects. The standalone app supports externally funded NEAR swaps: select the source under You sell and destination under You receive, review the quote and source-chain refund address, then fund the deposit before its deadline with any required memo. Keep the transfer record until delivery or refund. Zcash uses transparent t1/t3 addresses; Hyperliquid means Hypercore spot balances. These flows depend on live assets and executable quotes and are separate from SDK/MCP EVM orders, embedded widgets and Hooks. ## Pricing - Standard Ophis batch-auction pricing (Optimism, Unichain, Robinhood, Arc and ten CoW-hosted networks): 1 bp base plus 80% of reference-quote improvement on volatile pairs (99 bps cap) or 50% on stable pairs (20 bps cap). CoW-hosted chains additionally apply CoW Protocol upstream fees. - Bridge and conversion routes have separate provider costs and wallet gas requirements. NEAR quotes include a 3 bps app fee; do not apply batch-auction pricing to direct Circle routes. - Arc price-improvement policy: the backend applies the same capture to in-market orders as the other operated chains (80%/99 bps for volatile pairs; 50%/20 bps for recognized stablecoin pairs including USDC/EURC), plus the separate 1 bp base. Historical base-only trades retain their original fees. Arc settled trades are indexed for routed volume and referral attribution. For Arc referrals, MCP clients pass `referrerCode` to `build_order`; direct SDK integrations use v0.4.4 or later. See https://docs.ophis.fi/fees#arc-price-improvement-policy. - CoW-hosted pricing: the Ophis base is 1 bp, with CoW Protocol fees applying separately upstream. - Integrator own-fees: onboarded integrators may stack their own ERC-20 fee on top; Ophis takes 0% of that markup. See https://docs.ophis.fi/partners. - Surplus: traders receive the price improvement remaining after the applicable capped protocol capture. - APIs: the public MCP server and the Intent API are free. The Intent API is rate-limited to 30 requests per minute per IP. - Worked example: a $100,000 volatile trade with 20 bps of improvement pays a $10 base plus $160 of captured improvement on Optimism, Unichain, Robinhood Chain or Arc. A stablecoin trade with the same improvement pays $10 plus $100. Intent API example (free, 30 req/min per IP): ``` curl -X POST https://swap.ophis.fi/api/intent \ -H 'Content-Type: application/json' \ -d '{"text": "swap 100 USDC for ETH on Optimism"}' ``` ## Ophis CLI - [Ophis CLI](https://docs.ophis.fi/cli): quote, swap and bridge by typing commands in your terminal. Install or update with `npm install -g @ophis/cli` (Node.js 20 or later), or run once with `npx @ophis/cli help`. - Run `ophis connect` and scan the QR code with your wallet app's own WalletConnect scanner. Your keys stay in your wallet. Try `ophis quote 5 USDC ETH` to see a price without signing, then `ophis swap 5 USDC ETH` to confirm in the terminal and approve in your wallet. - Base is the default chain. Use `on arbitrum` to trade on Arbitrum or `to arbitrum` to receive there. `ophis bridge 25 USDC to arbitrum` moves tokens through Across; bridges start from Ethereum, Arbitrum or Base. Run `ophis chains` for all 15 chains, including the Sepolia testnet. ## For agents - [MCP server](https://mcp.ophis.fi/mcp): a Streamable-HTTP Model Context Protocol server. Tools: `parse_intent` (natural language -> structured swap), `resolve_token` (symbol -> canonical address, fails closed / anti-spoof), `get_quote` (best-execution quote), `build_order` (a bounded, ready-to-sign EIP-712 order with the receiver pinned to the owner), `submit_order` (relay a pre-signed order), `get_integrator_earnings` (routed volume, the Ophis base fee, and the integrator's own fee on CoW-hosted chains, by appCode), `list_chains`, `get_balances` (wallet balances on a chain), `get_portfolio` (cross-chain balances), `get_gas` (chain gas price), `get_token_chart` (OHLCV chart), `expected_surplus` (beat-the-market estimate), `validate_order` (preflight order validation). Public, unauthenticated, and keyless: it never holds keys or signs; the agent signs with its own key. - [Intent API](https://swap.ophis.fi/api/intent): `POST {"text": "swap 100 USDC for ETH on Optimism"}` returns `{ok: true, data: {intent, entities}}` where entities are `{type: sellToken|buyToken|amount|chain, value, raw, start, end}`. Machine-readable spec: [OpenAPI](https://ophis.fi/openapi.json). - Discovery manifests: [`/.well-known/mcp.json`](https://ophis.fi/.well-known/mcp.json) (MCP server + tools), [`/.well-known/ai-plugin.json`](https://ophis.fi/.well-known/ai-plugin.json) (plugin manifest). - [Agent skills](https://ophis.fi/.well-known/agent-skills/index.json): markdown skill family for shell-capable agents (curl/jq/cast), sha256-digested per file: `ophis` (umbrella with a machine-readable per-chain contract-pinning policy: settlement, vault relayer, EIP-712 domains, orderbook hosts, slippage latches) plus `ophis-quote`, `ophis-swap`, `ophis-order-status`, `ophis-cancel`, `ophis-surplus-report`. The published shell skill family covers Optimism, Unichain and Robinhood Chain; use SDK v0.4.3 or hosted MCP for Arc. Umbrella: https://ophis.fi/.well-known/agent-skills/ophis/SKILL.md ## Product - [Swap app](https://swap.ophis.fi/): the trading interface: choose tokens, review the quote and authorize with your wallet. The optional Intent API parses text; it does not execute trades. - [Stablecoin swaps](https://ophis.fi/stablecoin-swaps/): chain-specific routes and execution guidance for Base, Avalanche, Ink, Robinhood Chain, and the other supported networks. - [Tokenized stocks and RWAs](https://ophis.fi/tokenized-stocks-rwa/): the product and legal distinctions between Robinhood Chain Stock Tokens, Coinbase Tokenized Stocks on Base, and other supported real-world assets. - [Robinhood Chain swap](https://ophis.fi/swap/robinhood-chain/): canonical-asset checks, Stock Token context, and a direct path to the live chain market. - [AI agent crypto swap API](https://ophis.fi/ai-agent-crypto-swap-api/): when to use the hosted MCP server, public Intent API, or @ophis/sdk. - [Odos API migration](https://ophis.fi/migrate/odos-api/): the narrow quote-shape compatibility envelope and the SDK path for broader integrations. - [Learn guides](https://ophis.fi/learn/): evergreen explainers on intent-based trading and MEV protection (sandwich attacks, solvers, coincidence of wants, slippage vs signed limits, surplus, MEV blockers vs batch auctions), plus an agent-builder cluster: safe agent swaps, agent custody, the trading MCP server, API keys vs wallet signatures, and EIP-712 typed-data signing. - [Pricing](https://ophis.fi/pricing/): the canonical fee page: rates per path, all-in cost per chain, integrator terms, worked examples. - [Supported chains](https://ophis.fi/supported-chains/): the canonical chain list with chain IDs and the settlement mode per chain. - [Security](https://ophis.fi/security/): custody model, audits, agent-safety rules, vulnerability disclosure, and methodology credits for Pashov skills, ETHSKILLS, Trail of Bits tooling, and Verity Lang. Tool use is not an independent audit or endorsement. - [Docs](https://docs.ophis.fi/): protocol design, Intent API reference, SDK, security audits. - [SDK](https://github.com/ophis-fi/ophis/tree/main/packages/sdk): `@ophis/sdk`: agent-safety helpers for building bounded CoW orders on Ophis (correct per-chain settlement domain, base plus capped improvement fee policy, receiver pinning). - [Networks and assets](https://docs.ophis.fi/networks-assets): Arc venue lanes, Circle and NEAR route boundaries, stock-provider labels (including bStocks on BNB and Reality on Arbitrum), and confidentiality scope. Badges are metadata attribution, not issuer authentication or eligibility. - Confidentiality: keyed NEAR builds request basic confidentiality and verify the quote echo; this is not universal privacy or a public mode selector. Ophis has no public route-wide confidentiality selector or released AML/SHIELD screening service. - Custody: native-token orders and bridges can deposit or burn assets before delivery. Expiry, refund and recovery differ from standard ERC-20 orders. ## Optional - [GitHub](https://github.com/ophis-fi/ophis): full source. - [Full docs text](https://docs.ophis.fi/llms-full.txt): the entire documentation concatenated into one file for LLM context windows. - Fee model: the standard policy charges a 1 bp Ophis base plus capped reference-improvement capture (80% volatile/99 bps cap; 50% stable/20 bps cap); hosted paths additionally pay upstream CoW fees. - Surplus: traders receive the remainder after the applicable capped capture.