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.0.tar.gz (2.8 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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddg_router-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 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.0.tar.gz
Algorithm Hash digest
SHA256 f78ca30188c3f93f0d3ecce81e563e8acf13b7553716cba6392a95bd43324f0f
MD5 4b90616bd19466b469ba77a3c751c46f
BLAKE2b-256 058f542b60c73a1422f0e2d85cb07b1745312242f340a0f1d0f6ae937f90fd0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddg_router-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52e3f39d6460a0df3ed10921cdea737cf55fdc44cfccb4dc0659732ca27df69d
MD5 dafa1e3c8eaf3cbae52f3c298326ddca
BLAKE2b-256 8c57020eb07d54f79700513d4009a630b3b33eb28e64401e7ab82ff47bef0c1d

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