Skip to main content

ddg-router

A local OpenAI-compatible proxy that auto-pays x402 and forwards to DDG Agent-Payable Services. 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.

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.

Metadata

Release files for ddg-router 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddg-router 0.1.1
File Size Uploaded
ddg_router-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ddg-router 0.1.1
File Interpreter ABI Platform
ddg_router-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / ddg_router-0.1.1.tar.gz

Download URL ddg_router-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
20c5d618299231d32cc113e398c6dfbe437d18cb758fd5295a9b091aad59993b
BLAKE2b-256 checksum
How to use checksums
ddd92a01d2676108395d59ba3b26abe469c9bb7f4f6fb047532a56ea21532b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ddg_router-0.1.1-py3-none-any.whl

Download URL ddg_router-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8e84f282566c594f47fa9fd9476c2d79ad49e32375bafedaa479c74bdf8ed71
BLAKE2b-256 checksum
How to use checksums
1790d700f094ef5614d14ec13a41944fb4d099e62d77576ae60dba1a5f0ab37c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page