Skip to content

VS Code/General Configuration

Overview of this page

🔧 Visual Studio Code (VSCode) General Configuration (1-Minute Quick Setup)

Section titled “🔧 Visual Studio Code (VSCode) General Configuration (1-Minute Quick Setup)”

Compatible with VSCode, Cursor, Trae, and all major editors. You can seamlessly connect your 4All API development environment in just 1 minute.

⚠️ Important: Cursor currently restricts direct use of third-party APIs! Please follow the tutorial below and install the plugin to bypass the limitation perfectly and keep enjoying smooth AI-assisted coding.

  • Open your editor (the same steps apply to VSCode, Cursor, or Trae).
  • Go to the Extensions Marketplace on the left (shortcut: Ctrl+Shift+X).
  • Search for and install either of the following official plugins: Claude Code Codex – OpenAI

Step 2: Manually edit the JSON configuration

Section titled “Step 2: Manually edit the JSON configuration”

If you do not want to use a script, or if your system environment is restricted, you can also enter the API manually in the editor (using a general plugin compatible with the OpenAI format as an example):

  • Open the editor’s underlying settings JSON file: press Ctrl+Shift+P → type and select Preferences: Open Settings (JSON).
  • Fill in the 4All API endpoint and authentication method, for example:
{
"chatgpt.apiBase": "https://sg.4All API.com/v1",
"chatgpt.config": {
"preferred_auth_method": "4All API-apikey"
}
}

💡 Tip:

  • Get your exclusive API key from the [4All API Console] https://4All API.com (when generating a token, be sure to choose the dedicated group for the corresponding tool).