### Initialize Spanlens with CLI Source: https://spanlens.io/docs Use the CLI to automatically rewrite existing OpenAI, Anthropic, or Gemini calls in your codebase. ```bash npx @spanlens/cli init ``` -------------------------------- ### Initialize Spanlens with TypeScript Source: https://spanlens.io/docs Use the createOpenAI function to wrap OpenAI calls. It automatically reads the SPANLENS_API_KEY from the environment. ```typescript import { createOpenAI } from '@spanlens/sdk/openai' const openai = createOpenAI() // reads SPANLENS_API_KEY from env const res = await openai.chat.completions.create({ model: 'gpt-4o-mini', messages: [{ role: 'user', content: 'Hi' }], }) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.