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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axemere_gateway_anthropic-0.2.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axemere_gateway_anthropic-0.2.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file axemere_gateway_anthropic-0.2.1.tar.gz.

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 facc5db02a843d46e1020aacfe24163493d9ca394e88dca63a9cbd8b25a485a2
MD5 0032cbe96b5fd5d2bc32a09dc111d695
BLAKE2b-256 ad35a89428be466dd034848e9bd2a73d9cb9364c2b2cf136aa2a24b140b5484f

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.2.1.tar.gz:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axemere_gateway_anthropic-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 675df5b2adcbf6aef724fd4d1055c5e666ded62fa9b236f74d89f7b025d5f74d
MD5 387db7c7c672008b492632552adb1bb5
BLAKE2b-256 a5fda3aa6ecef09209336c2a364fe9ebea5deba71fa9e44006812c6f2f1daf8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.2.1-py3-none-any.whl:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page