Cursor IDE
Cursor is an AI-powered code editor that allows you to use custom models via an OpenAI-compatible interface.Steps to Integrate:
- Open Cursor Settings (gear icon in the top right or
Cmd+Shift+J/Ctrl+Shift+J). - Navigate to Models.
- Click + Add Model and enter your preferred model ID from the Models List (e.g.,
gpt-oss-120b). - Toggle on OpenAI-compatible.
- Set the Base URL to
https://apolloai.lol/v1. - Enter your Apollo AI API Key in the API Key field.
[!NOTE]
Since Apollo AI uses specific endpoints, ensure your tool supports custom request mapping if v1/chat/completions is not automatically handled by our gateway.
Continue (VS Code & JetBrains)
Continue is an open-source AI extension that supports highly customizable providers.Configuration (config.json):
Add a custom provider to your config.json file:
CLI Tools
Apollo AI can be used with various AI-powered CLIs that support custom endpoints.Claude Code
Claude Code can be configured to use Apollo AI by redirecting its base URL. Setup:- Set the
ANTHROPIC_BASE_URLenvironment variable tohttps://apolloai.lol/v1. - Set
ANTHROPIC_API_KEYto your Apollo API Key.
OpenCode
Integration with OpenCode is handled via its configuration file. Setup:- Open or create
opencode.jsonin your project or global config directory. - Add or update the
baseURLfor the provider.
Gemini CLI
For tools using the Gemini CLI ecosystem, you can often use an OpenAI-compatible bridge or set the custom endpoint if the specific CLI build supports it. Setup (using OpenAI-compatible interface):- Set
GEMINI_API_ENDPOINTor equivalent (depending on the CLI version) tohttps://apolloai.lol/v1. - Use your Apollo API key as the authentication token.
Custom Shell Integration
You can also create a simple shell alias to ask questions directly. Add to.bashrc or .zshrc:
apollo-ask "How do I reverse a string in Python?"
Troubleshooting
If you encounter issues during integration:- API Key: Ensure your API key is active and has sufficient tier permissions.
- Endpoint Accuracy: Double-check the Base URL and ensure the model ID exists.
- Support: Reach out via Support if you need help with a specific tool.