Skip to main content Switch to mobile version dominusnode 2.0.0 Official DominusNode SDK for Python: AI-agent relay network (proxy, nodes, credits, payouts)
pip install dominusnode==2.0.0 Copy PIP instructions
Python client for the DominusNode AI-agent relay network: proxy through relay nodes, register your own nodes, earn credits and withdraw payouts. It implements sdks/SDK_SURFACE.md (15 resources, 71 methods), with the Node SDK as the reference implementation.
Sync DominusNodeClient and asyncio AsyncDominusNodeClient with the same methods
One dependency (httpx), no crypto dependency: you sign through a callback
Python 3.9+, type hints, PEP 561
pip install dominusnode Defaults: API https://api.dominusnode.daedalusdevelopmentgroup.com, relay gateway proxy.dominusnode.daedalusdevelopmentgroup.com (HTTP proxy :8080, SOCKS5 :1080). Both can be overridden in the client configuration.
import os from dominusnode import DominusNodeClient with DominusNodeClient() as dn: dn.connect_with_key(os.environ["DOMINUSNODE_API_KEY"]) # dn_live_... / dn_test_... print(dn.network.pricing()) # live per-GB prices (µUSD); the SDK hardcodes no prices res = dn.proxy.fetch("https://example.com", country="US", ip_class="residential") print(res.status, res.text()[:200]) Async:
from dominusnode import AsyncDominusNodeClient async with AsyncDominusNodeClient() as dn: await dn.connect_with_key(key) stats = await dn.network.stats() Proxy
Routing flags go in the proxy username, the API key in the password:
dn.proxy.build_username(country="DE", session_id="abc123") # "country-DE-session-abc123" url = dn.proxy.build_url(country="US", ip_class="dc") # http://country-US-class-dc: @proxy.dominusnode.daedalusdevelopmentgroup.com:8080 build_url returns a URL that contains your API key: do not log it.
Flags: country (ISO-2; OFAC countries CU IR KP RU SY are refused), ip_class (residential/dc/mobile), session_id (sticky, 1-64 alphanumerics), agentic_wallet_id (UUID, spend from an agentic wallet), allow_http (allowhttp-1). With no flags the username is relay.
proxy.fetch(url, ...) sends GET or HEAD only. Before it opens a connection it checks the URL: http(s) only, ports 80/443, no userinfo, no local or private hosts, including decimal/hex/octal IPv4 forms and IPv6 forms that embed IPv4. It then resolves the hostname and refuses it if any address is private (DNS-rebinding check). https goes through a CONNECT tunnel with full TLS verification; http:// needs allow_http=True. Redirects are returned as they are, not followed, and the body is capped at 10 MB (truncated=True when cut).
Node registration, withdrawals, payout-wallet changes and wallet sign-in need a signature from your wallet. Pass any object with an address and a sign_message(message) -> "0x…" method that performs personal_sign:
from eth_account import Account from eth_account.messages import encode_defunct acct = Account.from_key(private_key) class Signer: address = acct.address def sign_message(self, message: str) -> str: sig = acct.sign_message(encode_defunct(text=message)).signature.hex() return sig if sig.startswith("0x") else "0x" + sig With AsyncDominusNodeClient, sign_message may be async def.
The SDK never signs a server string without checking it. For every signed flow it builds the expected message itself and compares it byte for byte with the server's. If they differ, it raises ProtocolError and the signer is never called.
node = dn.nodes.register(signer, node_pubkey=ed25519_pub_hex, max_streams=8) node_key = node["nodeKey"].reveal() # Secret, shown once dn.payout_wallet.set("0xYourPayoutAddress", signer) # first set dn.payout_wallet.set("0xNew...", signer, old_wallet_signer=old) # change: old wallet co-signs r = dn.credits.withdraw(5_000_000, signer) # µUSD (int or digit string, never float); $5 r["idempotencyKey"] # reuse it to retry safely Money
Server money values are {"musd": " ", "usd": " "}; 1 USD = 1,000,000 µUSD.
µUSD inputs accept an int or a digit string and are sent as decimal strings. Floats, NaN and Infinity are rejected.
*_cents inputs are integers with 0 < x <= 2,147,483,647, checked before any request is sent.
Client members: connect_with_key(api_key) (returns {"mfaRequired": bool, "userId"?}), disconnect() and is_connected. Results are the server's JSON as dicts with camelCase keys.
Not in the SDK: plans, slots, admin, Stripe and PayPal top-ups, email/password and human MFA. Use the dashboard for those.
DominusNodeError (message, status_code, code, details) and its subclasses: ValidationError (HTTP 400, and client-side checks with code="INVALID_ARGUMENT"), AuthenticationError, InsufficientBalanceError, AuthorizationError, NotFoundError, ConflictError, RateLimitError (retry_after_seconds), ServerError, NetworkError, ProtocolError, ProxyError. Error messages are scrubbed of dn_live_/dn_test_/dn_node_/ dn_proxy_ keys and JWTs.
Redirects are never followed. API responses are capped at 10 MB.
On 429 the SDK retries once, waiting min(Retry-After, 10 s) ±10 % (at least 100 ms).
On 401 it refreshes the JWT once. /v1 routes send the raw API key and are not refreshed.
Secret (new API keys, team keys, node keys) prints and serialises as [REDACTED]. Use json.dumps(obj, default=dominusnode.json_default).
disconnect() logs out (best effort), then clears the API key and both tokens.
pip install -e '.[dev]' pytest tests/fixtures/signed_messages.json holds the three signed messages as produced by the Node SDK builders. tests/test_signers.py checks the Python builders against it byte for byte.
MIT View SPDX License List
Release files for dominusnode 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 77.3 kB
Release files / dominusnode-2.0.0.tar.gz
Release files / dominusnode-2.0.0-py3-none-any.whl
Security for dominusnode 2.0.0
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.
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
Nov 15, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




