# IntelliJ via ProxyAIPage

#### What is ProxyAI? <a href="#what-is-proxyai" id="what-is-proxyai"></a>

* ProxyAI is an AI-powered coding assistant that integrates with JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, and others).
* It supports OpenAI API–compatible provider configuration, allowing you to connect to any OpenAI-compatible endpoint by supplying a custom base URL and API key.

#### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* You can use any OpenAI compatible model or assistant.
  * To check what models are available for you, call [Gateway API | nexos.ai documentation](https://docs.nexos.ai/gateway-api#get-v1-models) You can use either `nexos_model_id`or `id` as model.
  * To check what assistants are available for you, call [Gateway API | nexos.ai documentation](https://docs.nexos.ai/gateway-api#get-v1-assistants)
* As an API URL you should use url [https://api.us.nexos.ai/v1/chat/completions](https://api.nexos.ai/v1/chat/completions)\ <br>

#### Install ProxyAI plugin <a href="#install-proxyai-plugin" id="install-proxyai-plugin"></a>

1. Open Intellij IDE, go to `Settings` -> `Plugins`
2. From top bar choose `Marketplace`
3. Type `ProxyAI` in search bar
4. Click `Install` next to the ProxyAI plugin name and wait till installation ends

   <figure><img src="/files/vDzjpvjpl8hhKENLrpXw" alt=""><figcaption></figcaption></figure>
5. Restart IDE

#### Configure ProxyAI plugin <a href="#configure-proxyai-plugin" id="configure-proxyai-plugin"></a>

1. Open Intellij IDE Settings
2. Go to `Tools` -> `ProxyAI`

   <figure><img src="/files/9qIR2X6L6ZcjHKEt3Wbm" alt=""><figcaption></figcaption></figure>
3. Add Nexos provider in `Providers` -> `Custom OpenAI`

* On the right side you can click `+` (Add)
* In Provider setting section choose either OpenAI or OpenRouter
* Put Provider name
* Paste Nexos API key

<figure><img src="/files/6boaLxyzqK5Epx5kj7pM" alt=""><figcaption></figcaption></figure>

4. &#x20;In `Chat Completions` tab

* Paste API URL
* Paste Nexos model id in `Body` tab
* Click `Test Connection` to see if everything works

<figure><img src="/files/W178KC6x62EqyeKOCV0i" alt=""><figcaption></figcaption></figure>

5. In `Code Completions` tab

* Check `Parse response as Chat Completions`
* Choose `Chat-based FIM` as `FIM template`
* Paste API URL
* Paste Nexos model id in `Body` tab
* Click `Test Connection` to see if everything works

<figure><img src="/files/otdl9E1hDGxWsfnwjao1" alt=""><figcaption></figcaption></figure>

6. Choose newly added Nexos model in `Models` for all types of requests (tip: you can add more Nexos providers with different models for different types of requests)

<figure><img src="/files/g7Gx0FHRLnFAmi4cjovv" alt=""><figcaption></figcaption></figure>

7. Click `Apply` and `OK`
8. Open ProxyAI chat window and ask anything about your code.

<figure><img src="/files/POdKKsTjgRGONazrm7Jt" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexos.ai/gateway-api/integrations/intellij-via-proxyaipage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
