Integrating with GitHub Copilot (or other AI IDEs)
Hi,
Firstly, great work with this project, looks very cool!
Is there a way to integrate this with GitHub Copilot in VS Code? Or other IDEs like Cursor and Windsurf?
Thanks!
I see Cursor allows you to override the OpenAI Base URL so that should work.
Provided that you can supply a URL from an OpenAI Compatible API source, I would say its possible with the AI-based IDEs.
Cursor (don't know about the other AI IDEs) has been a tough one. Despite being able to "override" the URL, you can't get it to point to localhost URLs as it will just fail -- which has been a big complaint with folks who use Ollama or any locally hosted API (like this project).
Because of this, there are proxy workers people have made to get their locally hosted APIs to work with Cursor, like this project for Ollama. It works by passing all API calls through an ngrok instance, and supplying that instance's URL in Cursor.
Early on during my development of the API, I made my own proxy worker too for the purpose of connecting this API through Cursor (to test out) and it works perfectly, though I don't use Cursor and didn't figure there was a need to use it with this IDE in particular.
https://github.com/user-attachments/assets/613071a8-ef8c-4718-b2ca-2bd53fdfc084
Looking back, I can look into integrating a compatibility mode for Cursor in the base API, such that you run it with a flag --cursor_compatibility [NGROK_TOKEN_HERE]