Guides
Use the Anthropic SDK
Run Anthropic-compatible message requests through Deeplinq.
Deeplinq implements POST /v1/messages and
POST /v1/messages/count_tokens. Configure the Anthropic SDK to send requests
to your engine.
import Anthropic from "@anthropic-ai/sdk"
const client = new Anthropic({
apiKey: process.env.DEEPLINQ_API_KEY,
baseURL: process.env.DEEPLINQ_BASE_URL,
})
const message = await client.messages.create({
model: "claude-sonnet-4-5",
max_tokens: 512,
messages: [
{
role: "user",
content: "Explain why audit logs should be tamper-evident.",
},
],
})
console.log(message.content)The engine translates the request into its governed provider pipeline while preserving Anthropic response and streaming semantics.
Claude Code
Claude Code can use Deeplinq by changing its API base and carrying an engine credential:
ANTHROPIC_BASE_URL="https://api.example.com" \
ANTHROPIC_API_KEY="$DEEPLINQ_API_KEY" \
claudeModel access, spend authorization, metering, and guardrails continue to apply to these requests.