CanalAPI
Community tools

LibreChat setup

Configure a CanalAPI custom endpoint, model list and server-side key in self-hosted LibreChat.

LibreChat provides a browser-based multi-model chat interface. Complete a self-hosted installation using the official project instructions, then configure the connection as an administrator.

Checked on 2026-11-03. The observed v0.8.9-rc1 is a prerelease, not a stable-version recommendation. Configuration follows the official custom-endpoint guide. A real CanalAPI call has not been tested.

Add a custom endpoint

Add this to the private .env loaded by the deployment:

CANALAPI_API_KEY=YOUR_CANALAPI_KEY

Replace the placeholder with your key and ensure the application process loads the file. Never publish or commit .env. Merge the following into librechat.yaml:

version: 1.3.18
endpoints:
  custom:
    - name: CanalAPI
      apiKey: "${CANALAPI_API_KEY}"
      baseURL: "https://api.canalapi.com/v1"
      models:
        default: ["YOUR_MODEL_ID"]
        fetch: false
      titleConvo: false
      modelDisplayLabel: CanalAPI

version: 1.3.18 is the example's configuration schema version, not the application version. Merge existing files according to their version and the official schema rather than replacing the deployment configuration. Replace YOUR_MODEL_ID and ensure container deployments mount the file.

fetch: false with an explicit default list initially exposes only the models you intend to test. titleConvo: false disables automatic title requests to keep auxiliary models out of the initial diagnosis. Do not switch to native Anthropic protocol just because a model name contains Claude.

Reload and verify

  1. Restart the LibreChat application service using your deployment's procedure so it reads the environment and YAML.
  2. In a new conversation, select CanalAPI and your configured model.
  3. Send “Reply only OK” and check CanalAPI usage logs.
  4. Once basic chat works, configure title generation, files, search or agents and their dependencies separately.

This example uses a server-side shared key. Users allowed to access the endpoint may consume the same account balance. Set access rules and a dedicated key's spending limit. For per-user keys, consult the official user_provided option.

Common issues

  • Endpoint missing: check the mount, indentation and required name, apiKey, baseURL and models fields. Missing fields can cause an endpoint to be skipped.
  • Application fails to start: inspect YAML parsing errors and restore a backup; do not clear deployment data.
  • Requests time out: check DNS, TLS and networking from the server or container, not only from your browser.

Official references: custom-endpoint quickstart, field reference. API errors: troubleshooting.

On this page