58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

Continue - Open source IDE AI programming assistant

Connect to 58API in Continue's local YAML configuration and complete chat, editing and agent verification.

Scope of application

Continue is an open source AI programming assistant that supports VS Code and JetBrains IDE. This tutorial takes VS Code as an example, using the currently recommended config.yaml Configure 58API; the configuration fields are the same for the JetBrains version.

Preparation before use

  1. Log in 58API, create an API Key, and confirm that the account has available balance.
  2. Install the latest version of VS Code or a supported JetBrains IDE.
  3. Prepare a usable model ID. The following is gpt-6.1-sol For example, it can be replaced with the model currently available in the account during actual use.

Installation Continue

  1. In VS Code press Ctrl+Shift+X(macOS is Command+Shift+X) to open the extension panel.
  2. search @id:Continue.continue。
  3. Confirm the extension ID and click Install/Install.
  4. After the installation is complete, click the Continue icon in the activity bar. You can also press Ctrl+L(macOS is Command+L) to open the Continue sidebar; if the shortcut keys conflict, please use the icon directly.

Save API Key

Continue official support at config.yaml API Key is referenced through Secret. To avoid writing the key directly into YAML, create it in the user-level Continue directory .env:

systemfile path
Windows%USERPROFILE%\.continue\.env
macOS / Linux~/.continue/.env

File content:

OPENAI_API_KEY=your_58API_api_key

Do not quote the value or add spaces around the equal sign. After saving, exit completely and reopen the IDE to allow the extension to reread the Secret.

Don't commit .env to Git

user level ~/.continue/.env Not in the project directory, more suitable as a global configuration. If using a workspace .env or .continue/.env, the file must be added to .gitignore。

The Continue IDE extension cannot read files you temporarily execute in a normal terminal. export OPENAI_API_KEY=.... Setting a variable in the VS Code terminal does not mean that the started extension process can read it.

Open local configuration

  1. Open the Continue sidebar.
  2. Click the configuration selector above the chat input box (the new dropdown is titled Configs).
  3. Find Local Config (the new version may also be displayed as Main Config; after configuring according to this article, it will be displayed as 58API), move the mouse to the line, and click the gear that appears on the right.
  4. Continue will open the current user's config.yaml。

Open the 58API local configuration in the Continue helper list

The screenshot is of the old version of the interface (the drop-down list is titled Assistants), the new version is titled Configs, and the gear is only displayed when the mouse is hovered.

If the configuration has been created as follows, the configuration name will be displayed as 58API: First select ① in the picture, and then click the gear of ② to open the corresponding config.yaml. When configuring for the first time, this location may show Local Config, Main Config, or the older version of Local Assistant.

The names may differ in different versions, but the target is always the gear on the right side of the row. The file location listed in the official current document is:

Windows: %USERPROFILE%\.continue\config.yaml
macOS / Linux: ~/.continue/config.yaml

Configure 58API

First keep other configurations that still need to be used in the original file, and then models Added 58API model. If this is a fresh local configuration, the following can be used in its entirety:

name: 58API
version: 1.0.0
schema: v1

models:
  - name: 58API Chat
    provider: openai
    model: gpt-6.1-sol
    apiBase: https://api.58api.net/v1
    apiKey: ${{ secrets.OPENAI_API_KEY }}
    useResponsesApi: false
    roles:
      - chat
      - edit
      - apply

The function of each field:

Configuration itemsillustrate
provider: openaiUsing Continue's OpenAI Compatible Provider
modelFull model ID actually available in 58API
apiBase58API basic address, fixed to /v1
apiKeyRead from Continue Secret, do not save clear text in YAML
useResponsesApi: falseexplicit use /chat/completions, to avoid automatically switching to /responses
rolesUse the model to chat, edit, and apply changes

Why is the Responses API closed?

Continue Official description: o series and GPT-5 models may be called by default /responses. This tutorial uses the most widely compatible OpenAI Chat Completions path, so set useResponsesApi: false. When you need to use the Responses API, you should first confirm that the selected model supports it, and then adjust it individually.

save config.yaml After that, Continue will usually automatically refresh the configuration. The configuration selector should show 58API and the model selector should show 58API Chat.

Verify connection

  1. Select 58API Chat in Continue.
  2. Send using normal Chat mode first:
请只回复“Continue 已连接 58API”,不要修改文件。
  1. After receiving the reply, open the 58API console usage log and confirm that the corresponding request occurs.
  2. Select a piece of test code again, use the Edit function of Continue to propose a small modification, and check whether the modification suggestions can be generated and applied normally.

Use Agent mode

Continue's Agent mode relies on tool calls. use provider: openai , Continue will only change the gpt-4*、gpt-5* and higher versions,o1/o3/o4、codex Models named by OpenAI are automatically recognized as supporting native tool calls; models such as Claude, DeepSeek, GLM, Kimi, Qwen, MiniMax, etc. are not automatically recognized when used through 58API. Continue will fall back to the "simulating tool in the system prompt word" method, making the Agent more prone to errors.

After confirming that the selected model supports Tool / Function Calling, please add the following content (with model、apiBase Same level indentation):

    capabilities:
      - tool_use

When the model supports image input, you can add another line - image_input(and - tool_use same level indentation). This field only tells Continue that it can send tool call requests, and will not allow models that do not originally support tools to obtain this capability.

FAQ

After saving, it prompts that YAML parsing failed.

Make sure the file is indented with spaces, not tabs.name、version and schema is current config.yaml Required top-level fields for ; old tutorial title or config.json The formats cannot be mixed directly.

Tip Secret not found

Check if the filename is really .env, instead of .env.txt;The variable name must be OPENAI_API_KEY. After modifying the Secret, completely restart the IDE. You cannot just reopen the Continue panel.

Return 401

Copy the 58API API Key again and confirm .env There are no quotation marks, spaces, or newlines in .config.yaml Keep a reference to the Secret and do not treat placeholder text as the real secret.

Returns 404, the log shows that /responses were requested

Confirm that the model configuration contains useResponsesApi: false, and check if the indentation matches model、apiBase Same level. After saving, create a new session and execute Developer: Reload Window if necessary.

Return model does not exist

Will model: gpt-6.1-sol Replace with the exact model ID currently available to the account. The model name distinguishes characters, version suffixes and aliases, and cannot be guessed based on the name displayed on the interface.

Chat works fine, but no Tab auto-completion

The role configured on this page is chat、edit and apply. Continue's Autocomplete uses a separate model role and completion configuration, which usually requires a model suitable for code completion or FIM; the normal chat model connection does not mean that auto-completion has been configured.

config.yaml is not refreshed after modification

Official instructions automatically refresh when saving files from the IDE. If the interface still displays the old configuration, check YAML errors first, then execute Developer: Reload Window or restart the IDE.

official basis