AingDesk × AI Code With

Use AI Code With in AingDesk: Third-Party API / Relay Setup

This page shows how to connect a third-party API in AingDesk, an open-source desktop assistant, so you can use models and knowledge bases locally with a custom supplier.

Download and install AingDesk first, then add a custom supplier in the app. Enter the key only in the client, never on this page.

Custom supplier quick reference4 settings
Supplier name
AI Code With
API URL
https://api.aicodewith.ai/v1
API Key
sk-xxxxxxxx
Model ID
claude-sonnet-4-6

Quick setup

Save this key for later terminals

This tool stores the key in its own settings. After you sign in, copy the key and paste it into the API Key field in the steps below.

API Key
sk-***

Signed-out visitors only see a placeholder. Sign in and we fill in your key. Sign in · Get a key in the console

Copying only puts the command on the clipboard. You still need to run it in a terminal, or paste the key into the tool settings. How to get an API key

In AingDesk, add a model supplier: fill "Supplier name", "API URL", and "API key", then pick a model. About 3 minutes.

AingDesk is a desktop client (its UI is in Chinese; labels below are given in English). Open the welcome page or the sidebar "Third-party model API", add a model supplier, fill "Supplier name", "API URL", and "API key", then sync models and send a test message.

  1. Choose "Use third-party models"

    The first time you open AingDesk, a welcome page appears. Click "Use third-party models" in the red box; you should land on "Third-party API settings". If the welcome page is already closed, use the sidebar "Third-party model API" instead. If you cannot get in, see #errors. Next: click "Add model supplier".

    On first launch of AingDesk, click 「使用第三方模型」 on the welcome page. The sidebar 「第三方模型API」 is another way in.
  2. Click "Add model supplier"

    At the bottom of the "Third-party API settings" window, click "Add model supplier" (do not click built-in tiles such as SiliconFlow). The "Add model supplier" form should open. If you cannot see the button, close the window and reopen the third-party API settings. If that still fails, see #errors. Next: fill the three fields and click "Confirm".

    At the bottom of 「第三方API配置」, click 「添加模型服务商」. The built-in supplier on the right (硅基流动) is not this page's path.
  3. Fill "Supplier name", "API URL", and "API key"

    In the "Add model supplier" dialog, fill "Supplier name" (AI Code With is fine), "API URL" https://api.aicodewith.ai/v1 (the helper text asks for an OpenAI-compatible endpoint), and "API key", then click "Confirm". After success you should land on the saved supplier and it should start fetching /models. If "Confirm" hangs or the list is empty, see #errors. Next: check the model list or manually click "Add model".

    Quick copy

    Supplier name

    AI Code With

    API URL

    https://api.aicodewith.ai/v1

    Fill 供应商名称, 接口地址 https://api.aicodewith.ai/v1, and 密钥, then click 「确认」. Paste the AI Code With key into the 密钥 field.
  4. Sync models or "Add model"

    After save, the list auto-fills from /models by default. IDs in the screenshot such as chatgpt-4o-latest are a relay catalog, not this page's Model ID. Turn on the models you need; if this page's ID is missing, click "Add model", paste the Model ID, set the model alias yourself, and set the model capability to LLM. If the list is empty or you cannot find the ID, see #errors. Next: return to chat and send a test message.

    Copy a Model ID

    After save, AingDesk fills the list via 「默认从/models获取所有模型」. Copy a Model ID below; if it is missing, click 「添加模型」 and paste it, with 模型功能 set to LLM.

    Pick a family, then copy a Model ID. 接口地址 stays the same for every model.

    Selected

    Provider
    Claude
    Model ID
    claude-sonnet-5-5

    The full catalog follows the AI Code With docs and pricing page. Names like chatgpt-4o-latest in screenshots only show auto-sync; use an ID from this page.

    View the full model list
    IDs in the list such as chatgpt-4o-latest are a relay catalog, not Model IDs from this page. When you enable a model or click 「添加模型」, paste an ID copied here.
  5. Use "Select model" and send a test

    Return to chat, click "Select model" in the top bar, pick the model you just added, and send a test message. The screenshot stops with no model selected and no reply yet. Success = a real reply, then match time and model in AI Code With usage records. Do not treat "Check" as connected. If there is no reply, see #errors.

    Return to chat. The top bar still shows 「请选择模型」 (the screenshot has not sent a message). Click 「请选择模型」, pick the model you just added, and send a test. Success = a real reply + a usage record. Do not treat 「检查」 as success.

How does AingDesk connect to AI Code With?

AingDesk talks to an OpenAI-compatible endpoint through a custom supplier. Connecting to AI Code With means adding a model supplier, filling 接口地址 and 密钥, then picking a model:

Choose 「使用第三方模型」
First launch shows a welcome page. Click 「使用第三方模型」 to open 「第三方API配置」. If the welcome page is gone, use sidebar 「第三方模型API」.
Click 「添加模型服务商」
At the bottom of 「第三方API配置」, click 「添加模型服务商」 (not the built-in 硅基流动 tiles). The 「添加模型服务商」 form should open.
Fill 「供应商名称」, 「接口地址」, and 「密钥」
供应商名称 can be AI Code With. Set 接口地址 to https://api.aicodewith.ai/v1 (helper text: 需要兼容openAI格式的接口). Paste the AI Code With key into 密钥, then click 「确认」. Do not append /chat/completions.
Sync models or 「添加模型」
After save, the list fills via 「默认从/models获取所有模型」. Names like chatgpt-4o-latest are a relay catalog, not Model IDs from this page. If this page's ID is missing, click 「添加模型」, paste it, and set 模型功能 to LLM.
Use 「请选择模型」 and send a test
Return to chat, click 「请选择模型」, pick the model you just added, and send a test message. Success = a real reply, then match usage records. Do not treat 「检查」 as connected.

Flow: AingDesk → custom supplier (供应商名称 + 接口地址 /v1 + 密钥) → AI Code With API. Everything is done in the GUI. No files to edit.

Frequently asked questions

New to AingDesk?

AingDesk is an open-source desktop AI assistant for Windows and macOS.

AingDesk download page

Download the installer for your OS from the official download page. After install, open AingDesk and start third-party model setup from the welcome page or the sidebar.

Open the AingDesk download page

Intel Mac is no longer supported; Docker :7071 is the server, not this page's default path. Full install guidance follows the AingDesk official site; this site does not host the installer.

Common error troubleshooting

The most frequent problems fall into 4 categories.

Empty model list / Confirm hangs

Symptom: 「确认」 hangs, or after save 「默认从/models获取所有模型」 is still empty.

Cause: AingDesk GETs {baseUrl}/models with the 接口地址 as-is and does not auto-append /v1. Missing /v1, appending /chat/completions, a bad key, or an empty upstream catalog all yield an empty list. Confirm can hang while fetching the full catalog (#105).

  • Set 接口地址 to https://api.aicodewith.ai/v1 only — do not add /chat/completions
  • If the list is empty, click 「添加模型」 and paste a Model ID from this page
  • Set 模型功能 to LLM

Chat picker missing the new model / only Ollama

Symptom: After adding the supplier, 「请选择模型」 does not list it, or only Ollama appears.

Cause: The supplier switch is off; the list does not refresh after adding a model (#50); imported models with title==="" are filtered; other suppliers flood the picker (#92).

  • Enable this supplier and disable the others
  • Close and reopen 「第三方模型API」 so the list refreshes
  • If needed, fill 模型ID and 模型别名 by hand

Send fails even though 「检查」 says success

Symptom: On the saved-supplier panel, 「检查」 says the config is correct, but sending returns 401, no reply, or an unexpected interrupt.

Cause: 「检查」 and 「保存API」 only appear on an already-saved supplier panel. 「检查」 is a stub: it does not hit the network and always returns success. Real verification is a chat reply plus AI Code With usage records.

  • Re-paste the AI Code With key; never treat 检查成功 as 接入成功
  • Confirm 接口地址 includes /v1
  • Send a test message, then match the call by time and model in usage records

Synced list is a relay catalog / model not found

Symptom: After save you see a long list, but this page's Model ID is missing, or sending says the model does not exist.

Cause: /models returns the upstream catalog, not this key's IDs. Toggles do not remove models from chat (#92); you must delete them. Shot 4 illustrates this: names like chatgpt-4o-latest are a relay catalog.

  • Click 「添加模型」 and paste a Model ID from this page
  • Do not append /chat/completions to 接口地址
  • Confirm the key can access that model

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