LobeChat
LobeChat is an open-source, modern-design ChatGPT/LLM UI. Connect it to TensorX using the OpenAI-compatible configuration.
Prerequisites
LobeChat installed (self-hosted or local)
TensorX API key from app.tensorx.ai
Configuration Options
Option 1: Environment Variables (Recommended for Self-Hosted)
Set these environment variables when deploying LobeChat:
# Required
OPENAI_API_KEY=your-tensorx-api-key
OPENAI_PROXY_URL=https://api.tensorx.ai/v1
# Optional: Customize available models
OPENAI_MODEL_LIST=-all,+z-ai/glm-5.3,+z-ai/glm-5.3-flash,+qwen/qwen3.8-27bOption 2: UI Configuration
Open LobeChat Settings (gear icon)
Navigate to AI Service Provider > OpenAI
Configure:
API Key: Your TensorX API key
API Proxy URL:
https://api.tensorx.ai/v1
Save settings
Docker Deployment
Deploy LobeChat with TensorX configuration:
Run with:
Vercel Deployment
When deploying to Vercel, set these environment variables in your project settings:
OPENAI_API_KEY
Your TensorX API key
OPENAI_PROXY_URL
https://api.tensorx.ai/v1
OPENAI_MODEL_LIST
-all,+z-ai/glm-5.3,+z-ai/glm-5.3-flash,+qwen/qwen3.8-27b
Model List Configuration
The OPENAI_MODEL_LIST environment variable controls available models:
Use
+model-nameto add a modelUse
-model-nameto hide a modelUse
-allto disable all default models firstUse
model_name=Display Nameto customize display names
Example configurations:
Model selection
Call GET /v1/models with your TensorX API key and use one of the returned IDs. If the integration depends on a capability or token limit, query GET /v1/model/info before selecting the model. See Models for examples.
Troubleshooting
Empty responses
Check that OPENAI_PROXY_URL includes /v1 at the end.
Models not appearing
Verify OPENAI_MODEL_LIST syntax:
Each model should be prefixed with
+Use commas without spaces to separate models
Authentication errors
Ensure your TensorX API key is valid and has available credits.
Resources
Last updated
Was this helpful?

