Ophis — плагин для Claude Code: что делает и как установить
Подключает агента к DEX на интентах Ophis: котировки, сборка и отправка своп-ордеров на CoW Protocol без газа и API-ключа.
MIT ★ 1 596 обновлён 2026-10-29
/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install ophis@awesome-codex-pluginsЧто делает ophis
Плагин подключает агента к Ophis, DEX на интентах поверх CoW Protocol. В Claude появляется MCP-сервер https://mcp.ophis.fi/mcp: через него агент запрашивает котировку, собирает ордер и отправляет его, читает балансы, цены и газ. Рядом ставится скилл ophis-swap, он задаёт порядок шагов при свопе, чтобы агент не прыгал через этапы.
Ключ API не нужен, сервер публичный. Ключ кошелька он тоже не видит: собирает неподписанный ордер, подпись ставит ваш кошелёк, сервер передаёт её дальше. Получателем всегда остаётся подписант. Инструмент resolve_token ищет адрес по тикеру в списке Ophis/CoW и при неоднозначности отказывает, поэтому фейковый USDC в своп не попадёт.
Нужен EVM-кошелёк с подписью EIP-712 и разовое onchain-одобрение на каждый продаваемый токен в адрес vault relayer CoW Protocol. Менять состояние умеет только submit_order, остальные инструменты читают данные или собирают ордер. Сети различаются готовностью: часть развёрнута для расчётов, но торговля там ещё не идёт, актуальный список отдаёт list_chains.
Какие задачи решает
- обменять токены прямо из диалога с агентом
- сверить котировку Ophis с публичным агрегатором и увидеть разницу в базисных пунктах
- посмотреть балансы и портфель по нескольким сетям
- выяснить, в каких сетях торговля уже идёт, а в каких ордера не принимают
- собрать и отправить ордер без газа и без риска сэндвич-атаки
Примеры запросов агенту
- Обменяй 100 USDC на ETH в сети Base через Ophis.
- Сверь котировку на 1 ETH и скажи, на сколько базисных пунктов Ophis выгоднее публичного агрегатора.
- Покажи, в каких сетях Ophis уже принимает ордера.
Как установить ophis
Через маркетплейс плагинов
/plugin marketplace add hashgraph-online/awesome-codex-plugins/plugin install ophis@awesome-codex-pluginsПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы об ophis
Как установить Ophis в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add hashgraph-online/awesome-codex-plugins, затем поставьте плагин: /plugin install ophis@awesome-codex-plugins.
Что делает Ophis?
Регистрирует MCP-сервер Ophis и скилл ophis-swap. Агент получает возможность считать котировку, собирать и отправлять своп-ордера на CoW Protocol, а также читать балансы, цены и газ.
Нужен ли ключ API или доступ к средствам?
Ключ не нужен, MCP-сервер публичный. Средства остаются у вас: сервер видит только подписанный ордер, подпись ставит кошелёк с поддержкой EIP-712.
Исходный текст
skills · MIT
# Ophis plugin for Claude Code Give your agent the ability to swap tokens onchain through [Ophis](https://ophis.fi), an intent-based DEX built on CoW Protocol. Trades are MEV-protected, gasless for the trader, and routed for best execution. Installing this plugin does two things: 1. Wires up the Ophis MCP server (`https://mcp.ophis.fi/mcp`) so the agent gets 14 tools to quote, build, validate, and submit swaps and to read balances, prices, gas, and fee-rebate tiers. 2. Adds the `ophis-swap` skill, which teaches the agent the correct, safe order of operations for a trade. ## Why an agent would use Ophis - Keyless. No API key to provision, store, or rotate. The MCP server is public. - Non-custodial. The server never holds your key or your funds. It builds an unsigned order, your wallet signs it, and the server relays the signed order. The receiver is always the signer and cannot be redirected. - MEV-protected and gasless. Orders settle through a solver competition, so the trader pays no gas and is shielded from sandwich attacks. - Safe token resolution. The `resolve_token` tool maps a symbol to its canonical address from the trusted Ophis/CoW token list and fails closed, so an agent never swaps into a token that merely spoofs a well-known symbol. - See the edge. The `expected_surplus` tool compares an Ophis quote against a public reference aggregator and returns the difference in basis points. - Rebate-eligible. Ophis applies a small volume fee and shares a rebate through its referrer program. ## Install ``` /plugin marketplace add ophis-fi/skills /plugin install ophis@ophis-fi ``` Then ask the agent to swap, and it will use the Ophis tools. For example: "swap 100 USDC for ETH on Base." ## What the agent needs - An EVM wallet it controls (an address plus the ability to sign EIP-712 typed data). Ophis only ever receives a signed order; it never sees the key. - A one-time onchain approval per sell token, to the CoW Protocol vault relayer, done from the owner wallet. ## Tools `parse_intent`, `resolve_token`, `list_chains`, `get_quote`, `expected_surplus`, `build_order`, `submit_order`, `lookup_tier`, `get_balances`, `get_portfolio`, `get_gas`, `get_token_chart`. `submit_order` is the only state-changing tool; everything else is read or build only. See `skills/ophis-swap/reference.md` for full schemas. ## Supported chains Ethereum, Optimism, BNB Chain, Gnosis, Unichain, Polygon, Base, Arbitrum, Avalanche, Plasma, Ink, and Linea. Some chains are settlement-deployed but not yet live for trading; `list_chains` reports the authoritative live set. ## Links - App: https://swap.ophis.fi - Site: https://ophis.fi - Contact: [email protected]
© Ophis · MIT · hashgraph-online/awesome-codex-plugins