Wrap your Anthropic keys in proxy tokens with spend limits, IP restrictions, and instant revocation — zero SDK changes.
See how ShieldKey protects your Anthropic integration with minimal code changes.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: "sk-ant-api03-abc..." // ← in your .env file
});
const message = await client.messages.create({
model: "claude-sonnet-4-20250514",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello" }]
}); import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: "sk_shield_t_4c1d...", // ← revocable proxy token
baseURL: "https://proxy.shieldkey.io/v1"
});
const message = await client.messages.create({
model: "claude-sonnet-4-20250514",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello" }]
}); Disable any team member's access to your Anthropic key in one click. No key rotation. No downtime. No re-deploying environment variables.
Set per-token spend caps so a compromised token can't run up your Anthropic bill. Get alerts before limits are hit.
Restrict each shield token to specific IPs or CIDR ranges. Even if a token leaks, it's useless from unauthorized networks.
See every API call made through your Anthropic key — who made it, when, from where, and what they accessed.
Your Anthropic key is encrypted with AES-256-GCM. It's only decrypted in memory during request proxying — never stored in plaintext.
Issue individual shield tokens to each team member. When someone leaves, revoke their token — everyone else keeps working.
Add your Anthropic key to ShieldKey's encrypted vault. ShieldKey generates a proxy token (starting with sk_shield_t_) that your team uses instead. Your real sk-ant- key stays encrypted and is never exposed to team members.
Yes. Point your @anthropic-ai/sdk SDK at proxy.shieldkey.io and use a shield token instead of your real API key. The SDK works identically — ShieldKey transparently proxies every request.
Revoke their shield token from the dashboard. Your real Anthropic key stays active — no rotation, no downtime, no re-deploying secrets across services. Everyone else keeps working without interruption.
ShieldKey's proxy adds less than 25ms at the p50. The proxy decrypts your key in memory, forwards the request, and streams the response back. For most Anthropic API calls, this overhead is negligible.
Set up ShieldKey in under 5 minutes. No credit card required.
Start Free