# NextChat

Source: https://docs.aicentos.com/en/clients/nextchat

Language: en

> Use aicentos in NextChat — connect through custom OpenAI-compatible settings

NextChat is a widely used open-source ChatGPT web client that supports a custom OpenAI-compatible interface.

## UI configuration - Open the settings

Click the **Settings** icon in the lower-left corner

## UI configuration - Enable the custom interface

Find the **Custom interface** toggle in the settings panel; input boxes appear once it is on

## UI configuration - Fill in the connection details

Fill in the following:

| Field          | Value                            |
| -------------- | -------------------------------- |
| OpenAI API Key | Your `codex_...` or `sk-...` key |
| API proxy URL  | `https://aicentos.com/v1`        |

## UI configuration - Verify

After saving, start a conversation and check that it returns normally

## Self-hosted deployment configuration

For self-hosted instances, configure through environment variables:

```bash
OPENAI_API_KEY=codex_your_api_key
BASE_URL=https://aicentos.com/v1
```

Restart the service after configuring for it to take effect.

## Custom models

In the **Model** dropdown of the settings panel, you can type `gpt-5-codex-mini` or another available model name manually.

Self-hosted deployments can also preset the model list through the `CUSTOM_MODELS` environment variable, for example:

```bash
CUSTOM_MODELS=gpt-5-codex-mini
```

## Notes

* The API proxy URL should be the service root path including `/v1`, i.e. `https://aicentos.com/v1`
* Available models are determined by the list returned by `GET /v1/models`

## Related links

* GitHub: [https://github.com/ChatGPTNextWeb/NextChat](https://github.com/ChatGPTNextWeb/NextChat)