AnythingLLM
Connect AnythingLLM to TensorX and chat with your documents using any of our models.
What is AnythingLLM?
AnythingLLM is an all-in-one AI application that lets you chat with your documents, use AI agents, and manage multiple workspaces. It supports many LLM providers including OpenAI-compatible APIs like TensorX.
Prerequisites
A TensorX API key (sign up here)
Configuration
AnythingLLM supports TensorX through the OpenAI (Generic) provider.
Step 1: Open LLM Settings
Launch AnythingLLM
Click the Settings gear icon
Navigate to LLM settings
Step 2: Select OpenAI (Generic)
In the LLM provider dropdown, select OpenAI (Generic)
Configure the following settings:
Base URL
https://api.tensorx.ai/v1
API Key
Your TensorX API key
Model Name
An ID returned by GET /v1/models
Max Tokens
Leave unset unless the workspace needs an explicit response limit
Click Save Changes
Docker Deployment
Deploy AnythingLLM with TensorX pre-configured:
Then open http://localhost:3001 in your browser.
Docker Compose
Deploy with:
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.
Workspace Configuration
You can set different models per workspace:
Open a workspace
Click the Settings icon for that workspace
Under Chat Settings, select Workspace LLM
Choose OpenAI (Generic) and configure with a different TensorX model
This allows you to use different models for different use cases within the same AnythingLLM instance.
Features with TensorX
Document Upload
Upload and chat with various document types:
PDFs
Word documents (.docx)
Text files
Web pages (via URL)
And more
AI Agents
Create custom agents that can:
Browse the web
Execute code
Use custom tools
Access your documents
Workspaces
Organize your documents into separate workspaces, each with its own:
Document collection
Chat history
Model settings
Embed Widget
Create embeddable chat widgets for your website (Docker version only).
Environment Variables
For Docker deployments, these environment variables configure TensorX:
LLM_PROVIDER
generic-openai
Use OpenAI-compatible provider
GENERIC_OPEN_AI_BASE_PATH
https://api.tensorx.ai/v1
TensorX API endpoint
GENERIC_OPEN_AI_API_KEY
Your API key
TensorX API key
GENERIC_OPEN_AI_MODEL_PREF
Model name
Default model to use
GENERIC_OPEN_AI_MAX_TOKENS
Optional application limit
Max tokens per response
Troubleshooting
"Invalid API Key" Error
Verify your API key is correct
Check that the key has available credits
Test your key:
"Model Not Found" Error
Verify the model name is correct (e.g.,
z-ai/glm-5.2)Check available models at tensorx.ai/models
Connection Errors
Ensure Base URL is
https://api.tensorx.ai/v1(with/v1)Check your internet connection
Verify no firewall is blocking the connection
Slow Responses
Reduce the document size in your workspace.
Check the selected model and request latency in the TensorX usage dashboard.
Check Logs (Docker)
Resources
See Also
Open WebUI - Another self-hosted chat interface
LibreChat - Multi-provider chat interface
API Examples - Code examples for TensorX API
Last updated
Was this helpful?

