Skip to main content

anonrouter-sdk

The AnonRouter Python package. Verify what is running behind AnonRouter, then send encrypted requests from your own app.

Install

pip install anonrouter-sdk

Requires Python 3.10 or newer. This installs anonrouter-confidential and gives you its main functions through import anonrouter.

Verify AnonRouter

This needs no API key and sends no inference.

from anonrouter import verify_content_node

result = verify_content_node()
print(result["policy"]["sequence"], result["verdict"].verification_level)

This prints hardware-verified when the check succeeds. Full hardware verification needs the separate anonrouter-dcap-verifier program from the GitHub releases. Without it, this prints unverified.

Encrypted chat

import os
from anonrouter import at_least, create_client

with create_client(api_key=os.environ["ANONROUTER_API_KEY"]) as client:
    verdict = client.verify_route(
        model="google/gemma-4-26b-a4b-uncensored",
        provider="venice",
    )
    if not at_least(verdict.overall_state, "cryptographically_checked"):
        raise SystemExit(verdict.reason)

    out = client.chat(
        model="google/gemma-4-26b-a4b-uncensored",
        provider="venice",
        messages=[{"role": "user", "content": "hello"}],
        max_output_tokens=256,
    )
    print(out["content"])

Your prompt is encrypted on your machine before it leaves. This checks the provider route. It does not verify AnonRouter's own servers.

More

Strict mode, images and speech, and the anonrouter-verify command are covered on the anonrouter-confidential page.

License

Apache-2.0

Metadata

Release files for anonrouter-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 anonrouter-sdk 0.1.0
File Size Uploaded Provenance Actions
anonrouter_sdk-0.1.0.tar.gz 6.5 kB With provenance Details for anonrouter_sdk-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / anonrouter_sdk-0.1.0.tar.gz

Download URL anonrouter_sdk-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3ee0a9b2182465f3d3e44764952e30d319c9c5b0e732e22292dbd713f223d919
BLAKE2b-256 checksum
How to use checksums
80405e1903cb6a3502648e6a852c09c3dba012f5550c3c003a406fcd54b4d8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

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

Download URL anonrouter_sdk-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f128d1d613b4b8ae66f995d16932f1c4f20f5643810be7d9561c799a91255133
BLAKE2b-256 checksum
How to use checksums
affaac276d4154a8eaa95c1580e5320f63bffb5ad0d6ebb640829d3932168971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for anonrouter-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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anonrouter_sdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

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 Full 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