Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.apolloai.lol/llms.txt

Use this file to discover all available pages before exploring further.

Apollo AI can be integrated into various developer tools to enhance your workflow. This guide covers how to set up integrations with popular IDEs and command-line interfaces.

Cursor IDE

Cursor is an AI-powered code editor that allows you to use custom models via an OpenAI-compatible interface.

Steps to Integrate:

  1. Open Cursor Settings (gear icon in the top right or Cmd+Shift+J / Ctrl+Shift+J).
  2. Navigate to Models.
  3. Click + Add Model and enter your preferred model ID from the Models List (e.g., gpt-oss-120b).
  4. Toggle on OpenAI-compatible.
  5. Set the Base URL to https://apolloai.lol/v1.
  6. 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:
{
  "models": [
    {
      "title": "Apollo AI - GPT OSS",
      "model": "gpt-oss-120b",
      "apiBase": "https://apolloai.lol/v1",
      "apiKey": "YOUR_API_KEY",
      "provider": "openai"
    }
  ]
}

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:
  1. Set the ANTHROPIC_BASE_URL environment variable to https://apolloai.lol/v1.
  2. Set ANTHROPIC_API_KEY to your Apollo API Key.
export ANTHROPIC_BASE_URL="https://apolloai.lol/v1"
export ANTHROPIC_API_KEY="your_apollo_key"
claude

OpenCode

Integration with OpenCode is handled via its configuration file. Setup:
  1. Open or create opencode.json in your project or global config directory.
  2. Add or update the baseURL for the provider.
{
  "baseURL": "https://apolloai.lol/v1",
  "apiKey": "YOUR_APOLLO_KEY"
}

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_ENDPOINT or equivalent (depending on the CLI version) to https://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:
alias apollo-ask='function _apollo() { \
  curl -X POST "https://apolloai.lol/v1/generation/prompt?model=gpt-oss-120b" \
  -H "x-api-key: $APOLLO_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"prompt\": \"$1\"}"; \
}; _apollo'
Usage: 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.