Skip to main content

Step 1: Get Your API Key

Create an account and get your API key from Settings → API Keys.

Step 2: Install Packages

Install the Observ SDK, Vercel AI SDK, and your chosen provider SDKs:
npm install observ-sdk ai
Then install one or more provider SDKs:
npm install @ai-sdk/openai
Also works for xAI and OpenRouter (they use OpenAI-compatible APIs).

Complete Installation

Here’s the complete installation for all providers:
npm install observ-sdk ai

# Install providers (pick one or more)
npm install @ai-sdk/openai      # OpenAI, xAI, OpenRouter
npm install @ai-sdk/anthropic   # Anthropic (Claude)
npm install @ai-sdk/google      # Google (Gemini)
npm install @ai-sdk/mistral     # Mistral
npm install @ai-sdk/cohere      # Cohere

Yarn / pnpm / Bun

yarn add observ-sdk ai @ai-sdk/openai

Next Steps