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.0.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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 03366517a06bce045a56fdb4283bdb6476ee771a7d992ba25a7afadef719b506
MD5 49f6bcc58802682d194ff3e8dbb9ab63
BLAKE2b-256 0680397af5b424ea55d32607d1ebeb5a4f0aa915819990d70c0557077d0edf0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.2.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_anthropic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f56cecedc4b11371354cfbaee99f9181bb145e873f09b563bc3a9d4fdb2b1fa6
MD5 7b9d7eaf75aabc9bbe0e4f79cf9805e3
BLAKE2b-256 2eb3b6329eec182080732ad088fabc99abf53d9b8fca01168a3608c5c0aac143

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_anthropic-0.2.0-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