Overview

VibeKit Proxy seamlessly integrates with the Anthropic SDK, providing automatic data redaction and security for your Claude applications without changing your existing code.

Installation

Start the VibeKit proxy server:
npm install -g @vibe-kit/proxy
npx @vibe-kit/proxy start --port 8080

Integration

Simply add the VibeKit Proxy URL to your existing Anthropic SDK configuration:
import anthropic

client = anthropic.Anthropic(
    base_url="http://localhost:8080"  # Add this line
)

message = client.messages.create(
    model="claude-3-5-sonnet-20241022",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "My SSN is 123-45-6789. Help me with privacy."}
    ]
)

Environment Configuration

import os
import anthropic

proxy_url = os.getenv("VIBEKIT_PROXY_URL", "http://localhost:8080")

client = anthropic.Anthropic(
    base_url=proxy_url  # Use environment variable
)