RouterBase for VS Code
RouterBase is an OpenAI-compatible API gateway for working with multiple AI models through one base URL.
This extension helps VS Code users start a RouterBase integration without leaving the editor.
Features
- Open the RouterBase docs from the command palette.
- Create a
.env.routerbase template with RouterBase defaults.
- Create a small OpenAI SDK example that points at RouterBase.
Commands
RouterBase: Open Docs
RouterBase: Create .env Template
RouterBase: Create OpenAI SDK Example
Links
Example
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ROUTERBASE_API_KEY,
baseURL: "https://routerbase.com/v1"
});
| |