Skip to main content

LibreChat is joining ClickHouse. Learn more

LibreChat

NEAR AI Cloud

Configure NEAR AI Cloud as a custom endpoint in LibreChat.

NEAR AI Cloud provides an OpenAI-compatible endpoint that you can add to LibreChat through endpoints.custom.

Get an API key

Create an API key from NEAR AI Cloud. Add it to your .env file:

NEARAI_API_KEY=your-api-key

Configuration

Add the endpoint to the custom list under endpoints in your librechat.yaml. If your file already has an endpoints.custom list, paste only the - name: entry into it, keeping the same indentation:

endpoints:
  custom:
    - name: "nearai"
      apiKey: "${NEARAI_API_KEY}"
      baseURL: "https://cloud-api.near.ai/v1"
      models:
        default:
          - "z-ai/glm-5.2"
          - "deepseek-ai/DeepSeek-V4-Flash"
        fetch: true
      titleConvo: true
      titleModel: "z-ai/glm-5.2"
      modelDisplayLabel: "NEAR AI Cloud"

To let each user supply their own key through the LibreChat UI instead of reading one from .env, set apiKey: "user_provided".

Notes

  • With fetch: true, LibreChat loads the model list from NEAR AI Cloud's OpenAI-compatible /v1/models endpoint. The default array is only the initial selection.
  • Use model IDs exactly as they appear in the NEAR AI Cloud model catalog.
  • Model availability can change over time. If a selected model is unavailable, choose another chat-capable model from the catalog.

How is this guide?