AI Code With LogoAI Code With

Void × AI Code With

Void third-party API / relay setup

This page shows how to connect a third-party API in Void, an open-source editor, so you can use models in Chat, Agent, and Tab.

Install the desktop build from the Void site first, then finish provider setup in All settings. Enter the key only in Void, never on this page.

OpenAI-Compatible quick reference3 settings
Provider
OpenAI-Compatible
base_url
https://api.aicodewith.ai/v1
API Key
sk-xxxxxxxx

Quick setup

In Void All Settings, configure OpenAI-Compatible: paste the URL and API key, then add Model IDs and turn them on. About 3 minutes.

Void is an open-source AI code editor. Click the gear in Chat, open All Settings, find OpenAI-Compatible, enter the URL and API key, then add a model and turn it on.

  1. Click the top-right gear

    Launch Void and click the gear in the top right of the Chat panel. Do not use the gear in the bottom-left activity bar.

    Open Void and click the gear in the top right of the Chat panel. Do not use the gear in the bottom-left activity bar.
  2. Open All Settings

    In the left sidebar, click All Settings to open the provider form.

    In the left sidebar, click All Settings to open the provider form.
  3. Fill in OpenAI-Compatible

    Find OpenAI-Compatible. Enter https://api.aicodewith.ai/v1 in the first field (no trailing /), then paste your AI Code With API key in the second.

    Quick copy

    Provider

    OpenAI-Compatible

    base_url

    https://api.aicodewith.ai/v1

    Find OpenAI-Compatible. Enter https://api.aicodewith.ai/v1 in the first field (no trailing /), then paste your AI Code With API key in the second. The URL in the screenshot is redacted.
  4. Add models yourself

    Open Models on the left, scroll to the bottom, and click + Add a model. Choose OpenAI-Compatible, type the exact gateway Model ID, then click add. Void does not fetch a full model wall.

    Copy Model ID

    Void does not fetch a model list. When you click + Add a model, type one of these exact Model IDs.

    Pick a family, then copy a Model ID into Add a model. base_url stays the same for every model.

    Currently selected

    Provider
    Claude
    Model ID
    claude-sonnet-4-6

    The full catalog follows the AI Code With docs and pricing page. Void does not fetch models — add each ID and turn the switch on.

    View the full model list
    Open Models on the left, scroll to the bottom, and click + Add a model. Choose OpenAI-Compatible, type the exact gateway Model ID, then click add.
  5. Turn the model on

    Back on the Models list, turn on the switch next to the model you just added. Chat only lists models that are switched on.

    Back on the Models list, turn on the switch next to the model you just added. Chat only lists models that are switched on. The name in the screenshot only shows where the toggle is — enable the row you added.
  6. Verify in Chat

    In the Chat panel, pick the model you enabled and send a test message. A normal reply means the setup works — then match the call by time and model in AI Code With usage records.

    In Chat, pick the model you enabled and send a test message. A normal reply confirms the connection; match the call by time and model in AI Code With usage records.

How does Void connect to AI Code With?

Void ships with an OpenAI-Compatible provider. Enter the URL and API key in All Settings, then add each gateway Model ID under Models and turn the switch on:

Open settings
Click the gear in the top right of the Chat panel.
Open All Settings
In the left sidebar, click All Settings to open the provider form.
Fill in OpenAI-Compatible
Find OpenAI-Compatible. Enter https://api.aicodewith.ai/v1 in the first field (no trailing /), then paste your AI Code With API key in the second.
Add models yourself
Open Models, scroll to the bottom, and click + Add a model. Choose OpenAI-Compatible, type the exact gateway Model ID, then click add.
Turn the model on
Back on the Models list, turn on the switch next to the model you just added. Chat only lists models that are switched on.
Verify in Chat
In the Chat panel, pick the model you enabled and send a test message. A normal reply means the connection works.

Flow: Void editor → OpenAI-Compatible provider → AI Code With API. Void does not fetch a full model wall; you add Model IDs manually.

Frequently asked questions

New to Void?

Void is an open-source AI IDE for local development. It talks to OpenAI-compatible endpoints directly, without a private editor backend.

Void website

Open the official site, download the Beta desktop build, then launch Void. This site does not host installers.

Open the Void download page

Follow the official Void site for install details. The repository is https://github.com/voideditor/void.

Common error troubleshooting

The most frequent problems fall into 4 categories.

401 / Invalid API Key

Symptom: Sending a message returns 401, Unauthorized, or Invalid API Key.

Cause: Usually the API key is invalid, mistyped, or copied with extra spaces.

  • Go back to OpenAI-Compatible and re-paste the API key
  • Confirm the key comes from the AI Code With dashboard
  • Save, then send a test message again

Added model disappears

Symptom: The model appears for a second after you click add, then vanishes.

Cause: The name is not a gateway Model ID, or the provider is missing a saved Base URL / key.

  • Confirm the provider is OpenAI-Compatible
  • Use the exact Model ID from the pricing page, not a display name
  • Save Base URL and API key before adding models

Base URL error

Symptom: Sending a message fails, or an added model cannot be called.

Cause: base_url is missing /v1, has a trailing /, or is only the host.

  • Confirm the value is https://api.aicodewith.ai/v1
  • Remove any trailing slash
  • Do not append /chat/completions or other paths

No reply in Chat

Symptom: You pick a model and send a test message, but there is no streamed reply or the UI keeps spinning. Or the model you just added never appears in the Chat picker.

Cause: The model switch is off, the network is restricted, the Model ID is unavailable for this key, or Chat is pointed at the wrong provider entry.

  • Go back to Models and confirm the switch next to the row you added is on
  • Confirm Chat is using the OpenAI-Compatible model you just added
  • Switch networks and retry
  • Check AI Code With usage records to see whether a call was made

Need the full guide?

Every config parameter, the complete model list, and more troubleshooting live in the AI Code With docs.

Open the AI Code With docs

Sources

Related links