CLIProxy for Copilot is a VS Code extension that registers CLIProxyAPI as a custom Language Model Chat Provider for VS Code.
With this extension, you can use various large language models (such as Gemini 2.5 Pro, GPT-5, Claude 3.7 Sonnet, etc.) proxied by CLIProxyAPI directly within VS Code Copilot Chat. It allows you to leverage your existing OAuth subscriptions or free quotas without needing expensive API keys.
Key Features
Automatic Model Discovery: Automatically fetches the list of available models from your CLIProxyAPI server.
Native Integration: Switch models directly in the Copilot Chat model picker for a seamless experience.
Streaming Responses: Supports SSE streaming for fast and responsive interactions.
Tool Calling Support: Fully compatible with Copilot's tool calling capabilities.
Easy Configuration: Quickly configure server settings via commands or the settings UI.
Quick Start
Install the Extension: Install this extension in your VS Code.
Configure Server:
Run the command CLIProxy: Configure Server URL and API Key.
Enter your CLIProxyAPI server URL (default: http://localhost:8317).
Enter the API Key if your server requires authentication.
Use Models:
Open the Copilot Chat window.
Click the model picker and select a model prefixed with CLIProxyAPI.
Start chatting!
Extension Settings
This extension contributes the following settings:
cliproxy.serverUrl: The URL of your CLIProxyAPI server.
cliproxy.apiKey: The API Key required to access the server (optional).
cliproxy.requestTimeout: Request timeout in seconds.
Troubleshooting
Q: Why don't I see CLIProxyAPI models in the list?
A: Ensure your CLIProxyAPI server is running and the URL is correctly configured. You can run the CLIProxy: Refresh Available Models command to trigger a manual refresh.
Q: Does it support image input?
A: The extension automatically infers multimodal capabilities based on the model name. Models that support vision can handle image inputs directly.