openseed_ggbuyer
v1.0.3
Published
Buyer proxy — local OpenAI/Anthropic-compatible AI gateway
Downloads
538
Readme
@openseed/buyer
OpenSeed Buyer Proxy — Local OpenAI/Anthropic-compatible AI gateway for autonomous x402 inference.
The Buyer Proxy acts as a transparent local gateway running on http://0.0.0.0:8379. It intercepts standard LLM requests (from code, scripts, or agents), discovers the best peer offering the requested model via the OpenSeed Registry, and automatically negotiates x402 payment authorization.
Features
- Protocol Translation: Compatible with standard OpenAI (
/v1/chat/completions) and Anthropic (/v1/messages) SDKs. - Dynamic Peer Routing: Queries the OpenSeed registry to find online sellers offering specific AI models based on reputation and latency.
- Autonomous Micro-Payments: Automatically establishes deposit channels and signs cryptographic state updates (
x-402-payment-auth) per request. - Observability: Built-in Prometheus metrics (
/metrics) and peer reputation tracking (/reputation/peers).
Usage
Start the proxy:
npm run dev --workspace=packages/buyerPoint your OpenAI client to http://0.0.0.0:8379/v1 and make requests as normal!
