Configuring a Third-Party API in IntelliJ IDEA AI Assistant

Step 1: Configure Our Platform API

In Settings -> Tools -> AI Assistant -> Providers and API Keys, set the provider to OpenAI-compatible; set the URL to https://rehdasu.cn/v1; set the API key to your API_KEY; click the Test Connection button to confirm that the configuration is correct.

 

 


 

Step 2: Configure the Model

In Settings -> Tools -> AI Assistant -> Providers and API Keys, choose the model you want to use. After completing all configuration, click the OK button in the lower-right corner.

 

 


 

Step 3: Finish the Configuration and Start Using It

 

 


 

Note!

IntelliJ IDEA official AI Assistant has compatibility issues with third-party APIs (who knows whether that is intentional; maybe they are just busy), which can prevent it from listing all models supported by your third-party API_KEY. If the model you want does not appear in your model list even though your configuration is correct, this is the reason. Fortunately, if you really like the IntelliJ IDEA experience and do not want to switch IDEs, you can click Settings -> Plugins and choose an unofficial AI Coding plugin from the plugin marketplace. Since there are many third-party open-source plugins, they are not described separately here. Thank you.