Agent Negotiation Protocol
Ophir is an open protocol for AI agents to discover providers, negotiate pricing, enforce SLAs, and settle payments — autonomously. 16 packages. 6 providers. MIT licensed.
How it works
Agents query the Ophir registry or probe /.well-known/agent.json endpoints to find sellers offering inference across OpenAI, Anthropic, Together, Groq, and more.
Buyer broadcasts an RFQ with budget and SLA requirements. Sellers respond with Ed25519-signed quotes. Up to 5 counter-offer rounds through an 11-state machine.
Both parties dual-sign. SHA-256 agreement hash locks terms. Optional Solana PDA escrow locks USDC. 8 SLA metrics tracked per-request with automatic dispute resolution.
Integration
Use the MCP server with Claude, Cursor, or Windsurf. Drop in the OpenAI-compatible router. Or go full control with the SDK — BuyerAgent, SellerAgent, 5 routing strategies.
{ "mcpServers": { "ophir": { "command": "npx", "args": ["@ophirai/mcp-server"] } } }