SDK Integration Tutorial
Stop messing with bloat. Learn how to ruthlessly deploy KeyKing to Vercel or AWS using our stripped-down, zero-dependency NPM package.
Step-by-Step
1Export the Vault
Rip the vault out of the Desktop App. Smash "Deploy to Serverless", forge a password, and copy the encrypted payload.
2Set Environment Variables
In Vercel, inject KEYKING_VAULT and KEYKING_PASSWORD into your project settings. Lock it down.
3Install & Initialize
index.ts
// Terminal npm install keyking-sdk // Code import { KeyKing } from "keyking-sdk"; const keyking = new KeyKing({ routingRules: [{ provider: "Groq", model: "llama-3.3-70b-versatile" }, { provider: "Anthropic", model: "claude-3-5-sonnet-20241022" } ]}); // Auto-loads keys from env