Integration Guides

Secure your API keys in any stack

Provider-specific, framework-specific guides. Each one shows the vulnerable pattern developers use today, the fixed version with KeyVault Edge, and the exact steps to get there.

OpenAI

5 guides

OpenAI

Node.js / TypeScript

Next.js Route Handlers and Server Actions run on Node.js, but a single misconfigured NEXT_PUBLIC_ prefix or a leaked .env.local file exposes your sk-proj- key to the world. With KeyVault Edge the real key never sits in your app, and the token only works from your allowed hosts.

OpenAI

Python / FastAPI

Python apps frequently log environment variables during startup, ship .env files in Docker images, or expose keys through framework debug pages. With KeyVault Edge, your real sk-proj- key never appears in your Python process at all.

OpenAI

Node.js / Express

Node.js apps using dotenv often commit .env files or expose process.env through verbose error pages. A stolen sk-proj- key costs you money immediately. KeyVault Edge tokens are only honoured for requests from your allowed hosts.

OpenAI

React / Next.js App Router

Calling the OpenAI API directly from React browser code ships your sk-proj- key in the JavaScript file every visitor downloads, and scanners look for exactly that. A server-side route keeps the key out of the bundle; KeyVault Edge keeps it out of your server too and puts limits on the token that replaces it.

OpenAI

Node.js / TypeScript

OpenAI Realtime requires a client-side WebSocket or WebRTC connection — there is no way to make that connection without an API credential in the browser. Hardcoding your sk-proj- key in JavaScript means any visitor can extract it and drain your account. Ephemeral session tokens expire in 60 seconds, are scoped to a single session, and cannot be reused.

Anthropic

3 guides

Stripe

4 guides

Ready to protect your keys?

Create your first host-bound token in under 60 seconds. Plans from $9/month.

Get started