Axemere AI Gateway Anthropic SDK wrapper — drop-in Anthropic/AsyncAnthropic subclasses
Project description
axemere-gateway-anthropic
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axemere_gateway_anthropic-0.1.5.tar.gz.
File metadata
- Download URL: axemere_gateway_anthropic-0.1.5.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15c5331102a1559740afc0006cd767fb17cef44c7a12a5cb205f635c6b142b3e
|
|
| MD5 |
c5034c36c18b4d4756a63dd32fa21cf9
|
|
| BLAKE2b-256 |
1a036f636f0e9c2cab88e4b3a022da1c801fc7a5b4a3b3c13c82c85445c72e60
|
Provenance
The following attestation bundles were made for axemere_gateway_anthropic-0.1.5.tar.gz:
Publisher:
publish.yml on Axemere-LLC/axemere-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axemere_gateway_anthropic-0.1.5.tar.gz -
Subject digest:
15c5331102a1559740afc0006cd767fb17cef44c7a12a5cb205f635c6b142b3e - Sigstore transparency entry: 1951342794
- Sigstore integration time:
-
Permalink:
Axemere-LLC/axemere-python@ecfe54d2a0bc3f2b63955215b623b7b58422ffe7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Axemere-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ecfe54d2a0bc3f2b63955215b623b7b58422ffe7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file axemere_gateway_anthropic-0.1.5-py3-none-any.whl.
File metadata
- Download URL: axemere_gateway_anthropic-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2bd23c1df4c48d374eac07be71f306928bb725179a41e785778805e6bf0c827
|
|
| MD5 |
f3e4d3f17a273c8ae09930b882703c07
|
|
| BLAKE2b-256 |
b5b4130d6c66e8102edc1a3dc209a2c45c1f8760f3a5bbc5d26e4485e3628ac9
|
Provenance
The following attestation bundles were made for axemere_gateway_anthropic-0.1.5-py3-none-any.whl:
Publisher:
publish.yml on Axemere-LLC/axemere-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axemere_gateway_anthropic-0.1.5-py3-none-any.whl -
Subject digest:
c2bd23c1df4c48d374eac07be71f306928bb725179a41e785778805e6bf0c827 - Sigstore transparency entry: 1951343018
- Sigstore integration time:
-
Permalink:
Axemere-LLC/axemere-python@ecfe54d2a0bc3f2b63955215b623b7b58422ffe7 -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/Axemere-LLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ecfe54d2a0bc3f2b63955215b623b7b58422ffe7 -
Trigger Event:
push
-
Statement type: