Skip to main content

dominusnode-pydanticai

DominusNode tools for Pydantic AI: 19 tools for the DominusNode agent relay network. Agents fetch the web through exit nodes contributed by other agents, pay per GB from a prepaid wallet at the live price from network_pricing, and can earn credits by contributing their own IP with the node agent (node_setup_guide).

Version 2 is built on the official Python SDK dominusnode (v2). All HTTP, SSRF and DNS-rebinding checks, proxy tunnelling and credential scrubbing come from the SDK.

Install

pip install dominusnode-pydanticai
# from source, with the local SDK
pip install -e ../../sdks/python -e ".[dev]"

Defaults: API https://api.dominusnode.com, relay gateway proxy.dominusnode.com. Override with DOMINUSNODE_BASE_URL / DOMINUSNODE_PROXY_HOST. Proxy traffic uses TLS to the gateway (HTTPS proxy, port 8443). For a self-hosted coordinator set DOMINUSNODE_PROXY_URL=https://<proxy-host>:8443; DOMINUSNODE_PROXY_INSECURE=1 selects plaintext 8080 for local development only (production gateways refuse it).

Set your key in the environment (it is never a tool argument and never appears in tool output):

export DOMINUSNODE_API_KEY=dn_live_...
# optional: DOMINUSNODE_BASE_URL, DOMINUSNODE_PROXY_HOST

Usage

from pydantic_ai import Agent
from dominusnode_pydanticai import DominusNodeToolkit

agent = Agent("openai:gpt-4o", toolsets=[DominusNodeToolkit().toolset()])  # key from DOMINUSNODE_API_KEY
print(agent.run_sync("What does residential relay traffic cost per GB?").output)

Tools are exposed as dominusnode_<tool> Pydantic AI tools in a FunctionToolset.

The 19 tools

# Tool SDK call What it does
1 fetch proxy.fetch GET/HEAD a URL through the relay (country, ip_class, session_id, allow_http)
2 proxy_url proxy.build_url Proxy URL/username for any client; key shown only as <DOMINUSNODE_API_KEY>
3 network_policy network.policy Allowed ports/methods, blocked targets and countries
4 network_pricing network.pricing Live per-GB prices by IP class and node earning shares
5 network_stats network.stats Online nodes by class and country
6 balance wallet.get_balance Prepaid wallet balance
7 transactions wallet.get_transactions Prepaid wallet transactions
8 topup_crypto wallet.top_up_crypto Crypto top-up invoice ($10-$1,000)
9 check_payment wallet.get_crypto_status Crypto invoice status
10 usage usage.get Traffic usage summary and records
11 active_sessions sessions.get_active Active relay sessions
12 report_session sessions.report Report a bad exit session
13 node_list nodes.list Your contributed nodes
14 node_tier nodes.tier Node operator tier and progress
15 node_setup_guide (static) How to earn by running the node agent
16 credits_balance credits.balance Earned credits (µUSD)
17 credits_convert none (signed flow) Points to the MCP server or SDK (needs a wallet signature)
18 payouts_list payouts.list Payouts of earned credits
19 x402_info x402.get_info x402 micropayment info

Security

  • fetch is GET/HEAD only, ports 80/443, no redirects, 10 MB cap, private and internal targets refused after DNS resolution (all addresses). https by default; plaintext http:// needs allow_http=true and is visible to the exit node.
  • Sanctioned countries (CU, IR, KP, RU, SY) are refused.
  • Every error and result is scrubbed of dn_live_/dn_test_/dn_node_/dn_proxy_ keys and JWTs.
  • Signing flows (node registration, withdrawals, payout wallet) are not exposed as LLM tools; use the DominusNode MCP server or the SDK with a signer key file.

Tests

pip install -e ../../sdks/python -e ".[dev]"
pytest

Metadata

Release files for dominusnode-pydanticai 2.2.0

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

Source distribution (sdist)

Source distribution for dominusnode-pydanticai 2.2.0
File Size Uploaded Provenance Actions
dominusnode_pydanticai-2.2.0.tar.gz 14.5 kB Without provenance Details for dominusnode_pydanticai-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dominusnode-pydanticai 2.2.0
File Interpreter ABI Platform Actions
dominusnode_pydanticai-2.2.0-py3-none-any.whl Python 3 none any Details for dominusnode_pydanticai-2.2.0-py3-none-any.whl

Total release size: 27.7 kB

Release files / dominusnode_pydanticai-2.2.0.tar.gz

Download URL dominusnode_pydanticai-2.2.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8a112abdd67adf4bd5b6b029cc898085859723028a06bf9f90ee74940014794f
BLAKE2b-256 checksum
How to use checksums
34026af3bf515c733ed93cc1c4c976dfc779482eba53fb7a6658450a9e6c17a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Release files / dominusnode_pydanticai-2.2.0-py3-none-any.whl

Download URL dominusnode_pydanticai-2.2.0-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
200cd9eaeda116c826b5790f2ee9f2503b17acd3220f2f798dc32cdcf304ebc7
BLAKE2b-256 checksum
How to use checksums
5b5bc6660af798e77d51d68e4c5b87340838e89bc2b59cd8bba8abdd1a98bfe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.18

Security for dominusnode-pydanticai 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files No provenance

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