Prerequisites
Before installing Ollama API Proxy, ensure you have:- Node.js version 18.0.0 or higher
- npm package manager (comes with Node.js)
- At least one API key from:
- OpenAI
- Google Gemini
- OpenRouter
Installation Steps
Install dependencies
Install the required npm packages:This will install the following dependencies:
@ai-sdk/google- Google Gemini integration@ai-sdk/openai- OpenAI integrationai- AI SDK coredotenv- Environment variable management
Configure environment variables
Create a
.env file in the project root with your API keys:You only need to provide API keys for the providers you plan to use. The proxy will automatically detect which providers are available based on the configured API keys.
Verify Installation
Test that the server is running correctly:Custom Model Configuration
You can customize available models by creating amodels.json file in the project root:
models.json
Development Mode
For development with hot reloading (requires Bun):Next Steps
Configure JetBrains
Set up JetBrains AI Assistant with the proxy
API Reference
Explore available API endpoints
