@axemere/gateway-anthropic
v0.1.10
Published
Axemere AI Gateway SDK — Anthropic drop-in wrapper
Readme
@axemere/gateway-anthropic
Drop-in Anthropic client factory for the Axemere AI Gateway.
Returns a standard Anthropic instance pre-configured to route through the gateway. All existing Anthropic code works unchanged — the gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.
Install
npm install @axemere/gateway-anthropicUsage
import { anthropicClient } from "@axemere/gateway-anthropic";
const client = anthropicClient(); // reads AXEMERE_GATEWAY_URL + AXEMERE_GATEWAY_TOKEN
const message = await client.messages.create({
model: "claude-sonnet-4-6",
max_tokens: 256,
messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content[0].text);Streaming works exactly as it does with the standard @anthropic-ai/sdk package.
Configuration
| Env var | Description |
|---------|-------------|
| AXEMERE_GATEWAY_URL | Gateway base URL, e.g. http://localhost:7080 |
| AXEMERE_GATEWAY_TOKEN | Gateway token issued by the gateway |
Links
License
MIT
