Skip to main content

Local OpenAI-compatible x402-paying proxy for DDG Agent-Payable Services — make DDG your agent runtime's default provider.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddg_router-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ddg_router-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ddg_router-0.1.1.tar.gz.

File metadata

  • Download URL: ddg_router-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for ddg_router-0.1.1.tar.gz
Algorithm Hash digest
SHA256 20c5d618299231d32cc113e398c6dfbe437d18cb758fd5295a9b091aad59993b
MD5 6245fdd642e273f6a55ab1515eb703b6
BLAKE2b-256 ddd92a01d2676108395d59ba3b26abe469c9bb7f4f6fb047532a56ea21532b84

See more details on using hashes here.

File details

Details for the file ddg_router-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ddg_router-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for ddg_router-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e84f282566c594f47fa9fd9476c2d79ad49e32375bafedaa479c74bdf8ed71
MD5 8b9faaef72b1c6d8a3a15c31d08c737d
BLAKE2b-256 1790d700f094ef5614d14ec13a41944fb4d099e62d77576ae60dba1a5f0ab37c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page