One base URL change. Nothing else in your code.
DriftWatch is a drop-in proxy that speaks the OpenAI and Anthropic wire formats. Replace your SDK's base URL with api.driftwatchproxy.com/v1, add your DriftWatch key header, and every request is pruned, validated and logged.
- 1
Create a DriftWatch key
Sign up, open API Settings and generate a key. It looks like dw_live_secret_… and is shown once — store it in your secret manager.
- 2
Point your SDK at the proxy
Change only the base URL. Your provider key stays yours: DriftWatch forwards it upstream and never persists it.
- 3
Pick a pruning level
Send x-driftwatch-prune with off, conservative, balanced or aggressive. Start on balanced — typically 30-45% fewer input tokens.
- 4
Verify in the dashboard
Your first proxied request appears in Latency & Logs within seconds, with raw vs pruned payloads side by side.
Copy a snippet
curl https://api.driftwatchproxy.com/v1/chat/completions \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "x-driftwatch-key: $DRIFTWATCH_KEY" \ -H "x-driftwatch-prune: balanced" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "messages": [{ "role": "user", "content": "Summarise this ticket." }] }'Or install the official SDK
npm i @driftwatch/node# orpip install driftwatchNext: browse ready-made validation templates or check live proxy latency.
Schema library Full API reference