Installation
Install the Anthropic xLink integration:
# npm npm install @private.me/anthropic-xlink # pnpm pnpm add @private.me/anthropic-xlink # yarn yarn add @private.me/anthropic-xlink
Quick Start
Replace your API key-based Claude setup with xLink in 3 lines:
import { createAnthropicClient } from '@private.me/anthropic-xlink'; // Connect to Claude with xLink (no API key needed) const client = await createAnthropicClient({ identity: 'my-ai-agent', // That's it - xLink handles authentication }); // Use Claude exactly as before const response = await client.messages.create({ model: 'claude-opus-4-6', max_tokens: 1024, messages: [ { role: 'user', content: 'Explain quantum computing' } ] }); console.log(response.content[0].text);
Why xLink for Claude?
No Exposed Credentials
API keys in environment variables are still vulnerable. xLink eliminates credentials entirely with identity-based authentication.
Prevent Cascading Failures
One expired API key can restart 500 agents simultaneously. xLink's identity model makes cascades impossible.
Zero Maintenance
No rotation schedules. No expiry monitoring. No emergency restarts. Identity-based auth never expires.
Audit-Ready
Every Claude interaction is cryptographically signed with agent identity. Perfect for compliance and debugging.
603× Faster Recovery
xLink recovers from failures in 91ms vs 54,853ms for OAuth token refresh. Keep your Claude agents responsive.
Drop-In Replacement
Compatible with official Anthropic SDK. Same API, same methods, zero learning curve.
Performance at Scale
(91ms vs 54,853ms)
(2,147ms vs 8,064ms)
(vs 5-50ms OAuth)
(100% elimination)
Advanced Configuration
Custom Trust Registry
Control which agents can access Claude in your infrastructure:
import { createAnthropicClient, FileTrustRegistry } from '@private.me/anthropic-xlink'; const registry = new FileTrustRegistry('./trust-registry.json'); const client = await createAnthropicClient({ identity: 'my-ai-agent', trustRegistry: registry }); // Only agents in trust-registry.json can authenticate
Distributed Architecture
Deploy Claude across multiple regions without credential distribution:
// Region 1 (US-East) const clientUSEast = await createAnthropicClient({ identity: 'claude-us-east', trustRegistry: sharedRegistry // Same registry, different identity }); // Region 2 (EU-West) const clientEUWest = await createAnthropicClient({ identity: 'claude-eu-west', trustRegistry: sharedRegistry // No credential sync needed }); // Each region authenticates independently, no shared secrets
Multi-Agent Coordination
Coordinate multiple Claude agents without credential management:
const agents = await Promise.all([ createAnthropicClient({ identity: 'analyzer' }), createAnthropicClient({ identity: 'summarizer' }), createAnthropicClient({ identity: 'translator' }) ]); // 3 agents, 3 unique identities, 0 API keys to manage const results = await Promise.all( agents.map((client, i) => client.messages.create({ /* ... */ }) ) );
Migration from API Keys
Migrating from the official Anthropic SDK takes less than 5 minutes:
// Before (with API keys) import Anthropic from '@anthropic-ai/sdk'; const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY // Vulnerable }); // After (with xLink) import { createAnthropicClient } from '@private.me/anthropic-xlink'; const client = await createAnthropicClient({ identity: 'my-ai-agent' // Secure, no credentials }); // Everything else stays exactly the same
Pricing
xLink uses simple, transparent tier-based pricing:
- Free Trial: 3 months, full features, no credit card required
- Basic Tier: $5/month - Up to 10 agent identities
- Middle Tier: $10/month - Up to 100 agent identities + priority support
- Enterprise Tier: $15/month - Unlimited identities + custom trust registries + SLA
Bundle discounts available for multiple ACIs. See pricing details.
Related Resources
- xLink White Paper - Complete technical documentation
- OpenAI + xLink Quickstart - Similar setup for GPT models
- Google Gemini + xLink Quickstart - Gemini integration guide
- GitHub Examples - Production-ready code samples
Ready to Eliminate API Keys?
Start your 3-month free trial today. No credit card required.