For the complete documentation index, see llms.txt. This page is also available as Markdown.

LibreChat

Connect LibreChat to TensorX.ai and access leading open-source models like DeepSeek, Llama, Qwen, and GLM through a single self-hosted interface.


What is LibreChat?

LibreChat is an open-source ChatGPT alternative that supports multiple AI providers through OpenAI-compatible APIs. With TensorX, you get a privacy-focused, self-hosted chat interface with access to all our models.


Prerequisites


Configuration

Step 1: Add Your API Key

Add your TensorX API key to LibreChat's .env file:

Step 2: Configure the TensorX Endpoint

Create or edit your librechat.yaml file:

Step 3: Mount the Configuration

Add this to your docker-compose.override.yml:

Step 4: Restart LibreChat


Using TensorX in LibreChat

  1. Open LibreChat in your browser

  2. Start a new conversation

  3. Click the model selector dropdown

  4. Select TensorX AI as the provider

  5. Choose your preferred model


Available Models

Model
Features
Best For

z-ai/glm-5.1

Functions, Reasoning

Coding, reasoning, general use

minimax/minimax-m2.5

Functions, Reasoning

Reasoning, general purpose

moonshotai/kimi-k2.5

Vision, Functions

Vision, long context

deepseek/deepseek-chat-v3.1

Functions, Reasoning

General chat, fast reasoning

deepseek/deepseek-r1-0528

Functions, Reasoning

Complex reasoning tasks

minimax/minimax-m2

Coding, Functions

Coding, fast responses

meta-llama/llama-4-maverick

Functions

Long context, multimodal

openai/gpt-oss-120b

Functions, Reasoning

GPT-4 alternative

View full model list and pricing: tensorx.ai/models


Model Recommendations

Task
Recommended Models

General chat

deepseek/deepseek-chat-v3.1, meta-llama/llama-3.3-70b-instruct

Complex reasoning

deepseek/deepseek-r1-0528, openai/gpt-oss-120b

Coding

z-ai/glm-5.1, minimax/minimax-m2

Vision tasks

moonshotai/kimi-k2.5, meta-llama/llama-4-maverick

Multilingual

z-ai/glm-5.1


Advanced Configuration

Auto-Fetch All Models

To automatically discover all available TensorX models:

Custom Parameters

Organize by Category

Create multiple endpoints for different model types:


Configuration Options

Option
Description

apiKey

Your TensorX API key from environment variables

baseURL

TensorX API endpoint (https://api.tensorx.ai/v1)

models.default

List of models shown in the dropdown

fetch

Set true to auto-fetch available models

titleConvo

Auto-generate conversation titles

titleModel

Model used for titles (use a fast model)

dropParams

Remove parameters that may cause issues


Troubleshooting

Models Not Appearing

  1. Verify your API key is set in .env

  2. Check that librechat.yaml is properly mounted

  3. Restart the API container: docker compose restart api

  4. Check logs: docker compose logs api

Test Your API Key

Configuration Not Loading

  • Use proper YAML indentation (2 spaces)

  • Verify quotes around strings

  • Check version number matches your LibreChat version


Best Practices

  1. Use fast models for titles - Set titleModel to deepseek/deepseek-chat-v3.1

  2. Limit your model list - Only include models you actually use

  3. Secure your API key - Never commit .env files to version control

  4. Monitor usage - Track API usage in your TensorX dashboard


Resources


Need Help?

Last updated

Was this helpful?