Editor & Tool Configuration

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:

  1. API Key: obtain it from the AnyRouter platform.
  2. Base URL: the base endpoint address (e.g. https://anyrouter.win/v1).
  3. Model name: the exact ID of the model you want to use (e.g. deepseek-chat).

Configuration Steps

1. Open the settings

  1. Launch Void Editor.
  2. Click the gear icon (Settings) in the bottom-left corner
  3. 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.

  1. Find the Main Providers list on the Void settings page.

  2. Find the OpenAI Compatible option.

  3. Enter the Base URL:

    • Find the Base URL input box.
    • Paste your provider's address. Note: it usually needs to end with /v1.
  4. Enter the API Key:

    • Type your key into the API Key field.
  5. Add models (Models):

    • Find the model list area and click Add Model.
    • Enter the model's real ID in the API (e.g. deepseek-reasoner or claude-3-5-sonnet).

Using it in chat

Once configured, you can use it as follows:

  1. Press Ctrl + L (Windows) or Cmd + L (Mac) to open the sidebar chat.
  2. In the model dropdown menu above the chat box, find the third-party model you just added.
  3. Enter some code or a prompt to test.

Troubleshooting

SymptomLikely causeSolution
Authentication Error (401)Wrong API KeyCheck that the key was copied in full, with no leading/trailing spaces.
Resource Not Found (404)Wrong Base URL pathTry adding or removing /v1 at the end of the URL.
Connection TimeoutNetwork restrictionsCheck whether you need to enable a proxy, or test whether the API URL is reachable in a browser.
Model Not SupportedWrong model IDMake 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.

On this page