Agent Negotiation Protocol

AI agents need commerce infrastructure. We built it.

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

01

Discover

Agents query the Ophir registry or probe /.well-known/agent.json endpoints to find sellers offering inference across OpenAI, Anthropic, Together, Groq, and more.

02

Negotiate

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.

03

Execute

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

One line to add negotiation to any agent.

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.

OpenAIAnthropicTogetherGroqOpenRouterReplicate
claude_desktop_config.json
{
  "mcpServers": {
    "ophir": {
      "command": "npx",
      "args": ["@ophirai/mcp-server"]
    }
  }
}
16
Packages
27K+
Lines of code
173
Tests
11
Negotiation states