Metadata-Version: 2.4
Name: ddg-router
Version: 0.1.1
Summary: Local OpenAI-compatible x402-paying proxy for DDG Agent-Payable Services — make DDG your agent runtime's default provider.
Author-email: 0xcircuitbreaker <0xcircuitbreaker@protonmail.com>
License-Expression: MIT
Keywords: agent-payments,ai-agents,base,openai,proxy,router,usdc,x402
Requires-Python: >=3.11
Requires-Dist: ddg-agent-services-mcp[openai]>=0.4.1
Description-Content-Type: text/markdown

# ddg-router

A local OpenAI-compatible proxy that **auto-pays x402** and forwards to
[DDG Agent-Payable Services](https://agents.daedalusdevelopmentgroup.com). It's
the piece that lets any agent runtime use DDG as its **default provider** — a
plain OpenAI client can't sign the 402 itself; this can.

```bash
pip install ddg-router
ddg-router                       # free-trial mode, no wallet, on :4020
# or, for unlimited paid:
DDG_PRIVATE_KEY=0x<funded Base USDC key> ddg-router
```

Then point any runtime at it:
```
base_url = http://127.0.0.1:4020/v1
```
`GET /v1/models` and `/v1/model-catalog` are free; `POST /v1/chat/completions`,
`/v1/embeddings`, and any DDG tool route auto-pay via x402. `GET /healthz` for status.

Env: `DDG_AGENT_ID`, `DDG_PRIVATE_KEY`, `DDG_ROUTER_PORT` (4020), `DDG_UPSTREAM`.
