.env file in your project root or export them in your shell.
Required Variables
At least one API provider key must be configured for the proxy to start.API key for OpenAI provider. Required if you want to use OpenAI models like
gpt-4o, gpt-4o-mini, etc.The proxy will initialize the OpenAI provider only if this key is set (src/index.js:104-106).
API key for Google’s Gemini provider. Required if you want to use Gemini models like
gemini-2.5-flash.The proxy will initialize the Google provider only if this key is set (src/index.js:107-109).
API key for OpenRouter provider. Required if you want to use OpenRouter models like
deepseek-r1.The proxy will initialize the OpenRouter provider only if this key is set (src/index.js:110-117).
Optional Variables
Port number for the HTTP server. Defaults to The server will start on
11434 to match Ollama’s default port.http://localhost:PORT (src/index.js:20).Custom base URL for OpenRouter API. Only used if Useful for testing or using alternative OpenRouter endpoints (src/index.js:113).
OPENROUTER_API_KEY is set.Node environment setting. When set to This affects the ColorConsole timestamp behavior (src/index.js:15).
production, timestamps are disabled in console logs.Example Configuration
Create a.env file in your project root:
Loading Environment Variables
The proxy automatically loads environment variables usingdotenv at startup (src/index.js:18). Make sure your .env file is in the same directory where you run the proxy.
Environment variables set in your shell will override values in the
.env file.