Skip to main content

axemere-gateway-anthropic

License: MIT

Drop-in replacement for the Anthropic Python SDK that routes every request through the Axemere AI Gateway.

Change one import — all existing Anthropic code works unchanged. The gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.

Install

pip install axemere-gateway-anthropic

Usage

# Before
from anthropic import Anthropic

# After — one line change
from axemere.gateway.anthropic import Anthropic

client = Anthropic()  # reads AXEMERE_GATEWAY_URL + AXEMERE_GATEWAY_TOKEN
message = client.messages.create(
    model="claude-sonnet-4-6",
    max_tokens=256,
    messages=[{"role": "user", "content": "Hello"}],
)
print(message.content[0].text)

Streaming and async (AsyncAnthropic) are both supported.

Configuration

Env var Description
AXEMERE_GATEWAY_URL Gateway base URL, e.g. http://localhost:7080
AXEMERE_GATEWAY_TOKEN Bearer token issued by the gateway

Links

License

MIT

Metadata

Release files for axemere-gateway-anthropic 0.2.1

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

Source distribution (sdist)

Source distribution for axemere-gateway-anthropic 0.2.1
File Size Uploaded
axemere_gateway_anthropic-0.2.1.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axemere-gateway-anthropic 0.2.1
File Interpreter ABI Platform
axemere_gateway_anthropic-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / axemere_gateway_anthropic-0.2.1.tar.gz

Download URL axemere_gateway_anthropic-0.2.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
facc5db02a843d46e1020aacfe24163493d9ca394e88dca63a9cbd8b25a485a2
BLAKE2b-256 checksum
How to use checksums
ad35a89428be466dd034848e9bd2a73d9cb9364c2b2cf136aa2a24b140b5484f
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 Aug 12, 2026.

Transparency log

Release files / axemere_gateway_anthropic-0.2.1-py3-none-any.whl

Download URL axemere_gateway_anthropic-0.2.1-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
675df5b2adcbf6aef724fd4d1055c5e666ded62fa9b236f74d89f7b025d5f74d
BLAKE2b-256 checksum
How to use checksums
a5fda3aa6ecef09209336c2a364fe9ebea5deba71fa9e44006812c6f2f1daf8e
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 Aug 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.0

2 release files

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