Void Editor
Connect Void Editor, the open-source Cursor alternative, to AnyRouter: set the base URL and API key under OpenAI Compatible, add models, and fix common errors.
Configuring a Third-Party API in Void Editor
Void Editor, an open-source, privacy-first AI code editor (an open-source alternative to Cursor), lets you connect directly to third-party APIs. This way, you can use DeepSeek, OpenRouter, OneAPI, or any provider compatible with the OpenAI API protocol.
Prerequisites
Before you start, make sure you have the following information ready:
- API Key: obtain it from the AnyRouter platform.
- Base URL: the base endpoint address (e.g.
https://anyrouter.win/v1). - Model name: the exact ID of the model you want to use (e.g.
deepseek-chat).
Configuration Steps
1. Open the settings
- Launch Void Editor.
- Click the gear icon (Settings) in the bottom-left corner
- Click the first item, Void’s Settings.
2. Configure the OpenAI-compatible protocol (most common)
Most third-party API relays and Chinese LLMs support the OpenAI protocol.
-
Find the Main Providers list on the Void settings page.
-
Find the OpenAI Compatible option.
-
Enter the Base URL:
- Find the
Base URLinput box. - Paste your provider's address. Note: it usually needs to end with
/v1.
- Find the
-
Enter the API Key:
- Type your key into the
API Keyfield.
- Type your key into the
-
Add models (Models):
- Find the model list area and click Add Model.
- Enter the model's real ID in the API (e.g.
deepseek-reasonerorclaude-3-5-sonnet).
Using it in chat
Once configured, you can use it as follows:
- Press
Ctrl + L(Windows) orCmd + L(Mac) to open the sidebar chat. - In the model dropdown menu above the chat box, find the third-party model you just added.
- Enter some code or a prompt to test.
Troubleshooting
| Symptom | Likely cause | Solution |
|---|---|---|
| Authentication Error (401) | Wrong API Key | Check that the key was copied in full, with no leading/trailing spaces. |
| Resource Not Found (404) | Wrong Base URL path | Try adding or removing /v1 at the end of the URL. |
| Connection Timeout | Network restrictions | Check whether you need to enable a proxy, or test whether the API URL is reachable in a browser. |
| Model Not Supported | Wrong model ID | Make sure the model ID exactly matches the one the provider offers. |
Pro-Tip: Void's core advantage is that requests go straight from your computer to the provider, with no relay server in between. So if you are on a corporate intranet, be sure to configure the appropriate Proxy in Void's network settings, or connections may fail.
RikkaHub Configuration Guide
Use AnyRouter in RikkaHub on Android: add a provider, enter the base_url and api_key, load the model list, and pick a model to start chatting on your phone.
Work Buddy
Connect WorkBuddy to AnyRouter with a custom model: in Settings, choose the Custom provider, enter the endpoint URL, API key and model name, then save and chat.