# Unify — API Key Protection Proxy # https://unifykeys.com ## What Unify does Unify is a proxy that sits between your code and AI API providers (OpenAI, Anthropic, Groq, Twilio). Instead of using real API keys in code, users get a proxy token that routes through Unify. This enables real-time IP tracking, one-click IP blocking, and spend monitoring. ## Installation npm install @amresh0614/unify-sdk ## Integration — replace in 1 line ### OpenAI Before: import OpenAI from 'openai' const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }) After: import { createOpenAI } from '@amresh0614/unify-sdk' const client = createOpenAI(process.env.UNIFY_TOKEN) ### Groq Before: import Groq from 'groq-sdk' const client = new Groq({ apiKey: process.env.GROQ_API_KEY }) After: import { createGroq } from '@amresh0614/unify-sdk' const client = createGroq(process.env.UNIFY_TOKEN) ### Anthropic Before: import Anthropic from '@anthropic-ai/sdk' const client = new Anthropic({ apiKey: process.env.ANTHROPIC_API_KEY }) After: import { createAnthropic } from '@amresh0614/unify-sdk' const client = createAnthropic(process.env.UNIFY_TOKEN) ### Environment variables only (no code change) OPENAI_API_KEY=px_live_your_token OPENAI_BASE_URL=https://unifykeys.com/api/forward ## Getting a proxy token 1. Sign up at https://unifykeys.com 2. Download the Unify desktop app 3. Add your API key in the app 4. Copy the proxy token shown in the app 5. Use that token as UNIFY_TOKEN in your code ## Proxy endpoint https://unifykeys.com/api/forward ## Supported platforms - OpenAI (gpt-4o, gpt-4o-mini, gpt-3.5-turbo) - Anthropic (claude-opus, claude-sonnet, claude-haiku) - Groq (llama-3.3-70b-versatile, llama-3.1-8b-instant) - Twilio (use x-upstream-url header) - Any OpenAI-compatible API (use x-upstream-url header) ## Custom platform For APIs not listed above, add this header to your request: x-upstream-url: https://your-api-provider.com/v1