Skip to main content

aegis-sdk

Privacy-routed HTTP requests for AI agents and developers. Route any request through a residential exit node and pay per-request in USDC on Solana.

Install

pip install aegis-sdk

Quick start

from aegis import Aegis

aegis = Aegis(api_key="aegis_your_key_here")

# GET — routed through a US residential IP
res = aegis.get("https://httpbin.org/ip")
print(res.json())
# {"origin": "12.34.56.78"}  ← a residential US IP, not yours

# POST with a specific exit country
res = aegis.post(
    "https://api.example.com/data",
    body={"query": "hello"},
    country="JP",
    ip_class="residential",
)
print(res.json())

API

Aegis(api_key, *, base_url?, default_country?, default_ip_class?)

Param Default Description
api_key required API key from aegisprivacy.org/agent
default_country "US" Default exit country
default_ip_class "residential" Default IP class
base_url production Override for local dev

aegis.fetch(url, *, method, country, ip_class, headers, body) → AegisResponse

Full request method. All keyword args are optional.

aegis.get(url, *, country?, ip_class?, headers?) → AegisResponse

aegis.post(url, body, *, country?, ip_class?, headers?) → AegisResponse

aegis.balance() → dict

Returns {"usdc": "1.23"} — remaining balance for this API key.

AegisResponse

res.status   # int
res.ok       # bool
res.headers  # dict
res.text()   # str
res.json()   # any

Errors

from aegis.errors import AegisAuthError, AegisBalanceError, AegisNodeError

try:
    res = aegis.get("https://example.com", country="JP")
except AegisBalanceError:
    pass  # top up at aegisprivacy.org/dashboard
except AegisNodeError:
    pass  # no nodes available in that country
except AegisAuthError:
    pass  # invalid API key

Pricing

Cost
Per request $0.001 USDC
Residential exit +$0.0005 USDC
Bandwidth $0.005 USDC / MB

Get an API key at aegisprivacy.org/agent.

Metadata

Release files for aegisprivacy-sdk 0.1.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 aegisprivacy-sdk 0.1.0
File Size Uploaded Provenance
aegisprivacy_sdk-0.1.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aegisprivacy-sdk 0.1.0
File Interpreter ABI Platform
aegisprivacy_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / aegisprivacy_sdk-0.1.0.tar.gz

Download URL aegisprivacy_sdk-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
25c461ef9e70bb119b51c40ac39bee2d6f32b1583603566779217f474d935e42
BLAKE2b-256 checksum
How to use checksums
c93ec336e3ad9e68b7650fb6a213de114d00d5e0d6cd34dccba37a785c7dd140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / aegisprivacy_sdk-0.1.0-py3-none-any.whl

Download URL aegisprivacy_sdk-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b435fd70119e78809ef580bb2664c81fe27587eb61d460021609383d3467460a
BLAKE2b-256 checksum
How to use checksums
a93ac13f687cf6421cafc1a5ee544ccba64d67b003866b0661f5f4ae51a1ebd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for aegisprivacy-sdk 0.1.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

0.1.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