Connect Anthropic Usage to Cloptima
Point your Anthropic client at Cloptima
Set the Anthropic base URL to https://api.cloptima.ai (the client appends /v1/messages) and pass your Cloptima virtual key as the API key — it's sent as x-api-key. Add x-cloptima-* headers for attribution.
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.cloptima.ai", # client calls /v1/messages
api_key="clop_vk_dPXO67p…", # sent as x-api-key
)
msg = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=512,
messages=[{"role": "user", "content": "..."}],
extra_headers={"x-cloptima-team": "platform", "x-cloptima-app": "assistant"},
)The same endpoint also fronts non-Anthropic models
Because Cloptima translates between protocols, the Anthropic surface isn't limited to Claude. Any tool that speaks the Anthropic Messages API can reach OpenAI, Gemini, or Bedrock models through the same governed key — see the Claude Code guide for a developer-friendly example.
Centralize access with BYOK
Use Cloptima BYOK and encrypted credential controls to keep your Anthropic key protected while developers use governed virtual keys bound to policy.
Set policy boundaries
Control model families, development limits, production budgets, and high-context usage for teams that depend on Anthropic models.
Review spend trends
Use model spend analytics to compare Anthropic cost against other providers, apps, and agent workflows in one view.