Skip to content

Getting started

Quickstart

Protect your first AI key in under five minutes.

Ospin sits between your application and your AI provider. You keep your SDK and change two things: the base URL and the API key.

1. Add a provider key

In the dashboard, open Provider keys and paste your key. It is sealed in your browser before upload, so Ospin's dashboard servers only ever store ciphertext.

2. Create a virtual key

Open Virtual keys, choose the provider key, and set a daily and monthly cap. Copy the os_live_ key. It is shown once.

3. Point your SDK at the gateway

client.ts
import OpenAI from "openai" const client = new OpenAI({  baseURL: "https://gateway.ospin.dev/v1",  apiKey: process.env.OSPIN_KEY,})

Streaming, tool calls and structured outputs pass through unchanged.