MEV protection
Batch auctions, off-chain solver competition. Users never lose surplus to frontrunners.
Intent-based, MEV-protected, batch-settled swaps. Describe a trade in natural language; settle in one batch. Built for autonomous agents and the developers who deploy them.
Ophis is solver-driven. A competitive network of solvers races to fill your intent, routing across the deepest on-chain AMMs and professional DEX aggregators on every network we settle. You sign once; they find the best executable price, MEV-protected.
The marks above are liquidity venues, not solvers: a competitive solver layer routes each order across the venues available on its chain, and more solvers can be authorized over time.
Liquidity sourced across 11 EVM chains, with Solana & Bitcoin destinations via NEAR Intents.
An intent, a sell token, a buy token. The Ophis API does the rest: quote, route, MEV protection, settlement. Hit it from JavaScript, Rust, or just curl.
# Parse a natural-language swap intent
curl -X POST https://swap.ophis.fi/api/intent \
-H "Content-Type: application/json" \
-d '{
"text": "swap 100 USDC for ETH on Optimism"
}'
# Successful response is wrapped in { ok, data }:
# {
# "ok": true,
# "data": {
# "intent": "swap",
# "entities": [
# { "type": "amount", "value": "100", "raw": "100", "start": 5, "end": 8 },
# { "type": "sellToken", "value": "USDC", "raw": "USDC", "start": 9, "end": 13 },
# { "type": "buyToken", "value": "ETH", "raw": "ETH", "start": 18, "end": 21 },
# { "type": "chain", "value": "optimism","raw": "Optimism","start": 25, "end": 33 }
# ]
# }
# }Batch auctions, off-chain solver competition. Users never lose surplus to frontrunners.
High-volume agents and DAOs earn fee rebates automatically via the rebate-indexer.
Receiver-pin checks, chain-id validation, partner-fee config: guardrails out of the box.
Correct orderbook hosts, per-chain signing domains, and agent-safety guards: everything an integrator needs to ship without footguns.
import {
getOphisOrderbookUrl,
getOphisOrderDomain,
assertReceiverIsOwner,
} from '@ophis/sdk'
// The correct orderbook host per chain — Optimism is self-hosted,
// not api.cow.fi; the wrong host silently bypasses Ophis.
const orderbook = getOphisOrderbookUrl(/* chainId */ 10)
// The EIP-712 signing domain with the right per-chain verifying
// contract (cow-sdk's default is wrong on the Ophis-operated chains).
const domain = getOphisOrderDomain(10)
// Pin the receiver to the owner before signing — an unpinned
// receiver is the #1 drain vector for an automated signer.
assertReceiverIsOwner(owner, order.receiver) Forked from CoW Protocol's settlement stack. Audited by Trail of Bits. Powered by Aleph Cloud compute. LLM intent parsing via LibertAI. Cross-chain routing via NEAR Intents and Bungee.
Ophis is an intent-based, MEV-protected DEX aggregator built for the agent era. You describe a trade in natural language; Ophis parses the intent, fetches a best-execution quote, and batch-settles it on supported EVM chains, with Solana and Bitcoin destinations via NEAR Intents. It is non-custodial and a CoW Protocol fork.
Ophis applies a flat 0.10% (10 bps) fee on trade volume, with a reduced 0.01% (1 bp) on same-chain stablecoin-to-stablecoin swaps. The fee is on volume only and takes no cut of surplus: 100% of any price improvement a solver finds beyond your signed quote is returned to the trader. The public Intent API and the MCP server are free.
Ophis covers 11 EVM chains, with Optimism as the primary live network, and supports Solana and Bitcoin as destinations via NEAR Intents.
Ophis is a CoW Protocol fork focused on autonomous agents. It runs its own GPv2Settlement contract at a non-canonical address on its operated chains (for example Optimism), exposes a public MCP server and Intent API, ships the @ophis/sdk agent-safety helpers, and applies a flat 0.10% volume fee. Agents must resolve the per-chain settlement domain via the SDK or MCP before signing, because CoW canonical address yields a domain the deployed contract rejects.
Orders settle through CoW Protocol batch auctions, which are designed to protect trades from MEV such as front-running and sandwiching by settling at a uniform clearing price. An order can never be settled below its signed limit price. Batch-auction settlement mitigates MEV by design; it is not an absolute guarantee against all adversarial conditions.
Ophis is non-custodial. Orders are gasless, off-chain, EIP-712-signed intents; the trader or agent signs with its own key and the keys never leave the signer. An agent signs a bounded capability with a hard limit price, not an arbitrary transaction.
The Ophis MCP server at mcp.ophis.fi is a Streamable-HTTP Model Context Protocol server that lets AI agents trade. It exposes tools including parse_intent, get_quote, build_order, submit_order, lookup_tier, and list_chains. It is public, unauthenticated, and keyless: it never holds keys or signs, so the agent signs with its own key.
An agent parses a natural-language intent, gets a best-execution quote, and builds a bounded EIP-712 order with the receiver pinned to the owner using the @ophis/sdk or the MCP build_order tool. It signs the order locally with its own key, then submits the pre-signed order to the Ophis orderbook or via the MCP submit_order tool. The agent can also call the public Intent API at POST /api/intent, rate-limited to 30 requests per minute per IP.