{"asOf":"2026-10-28","storesIpAddresses":false,"matched":{"id":"openai-to-openrouter","from":"openai","to":"openrouter","jtbd":"llm-router","wireCompatibility":"drop_in_base_url","estimatedMigrationMinutes":2,"oldPackages":["openai"],"newInstallCmd":"npm install openai@latest","envVarMapping":{"OPENAI_API_KEY":"OPENROUTER_API_KEY"},"codeDiffSnippet":"const client = new OpenAI({ baseURL: \"https://openrouter.ai/api/v1\", apiKey: process.env.OPENROUTER_API_KEY });","day2Gotchas":["Prefix model IDs with vendor namespace (e.g. openai/gpt-5, anthropic/claude-sonnet-4-5)."]},"cite":"Agent Provider Depot 5-Minute Swap (openai -> openrouter, as of 2026-10-28). https://getagentdepot.com/api/swap?from=openai&to=openrouter"}