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

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


Configuration

AnythingLLM supports TensorX through the OpenAI (Generic) provider.

Step 1: Open LLM Settings

  1. Launch AnythingLLM

  2. Click the Settings gear icon

  3. Navigate to LLM settings

Step 2: Select OpenAI (Generic)

  1. In the LLM provider dropdown, select OpenAI (Generic)

  2. Configure the following settings:

Field
Value

Base URL

https://api.tensorx.ai/v1

API Key

Your TensorX API key

Model Name

deepseek/deepseek-chat-v3.1

Max Tokens

4096 (or your preferred limit)

  1. Click Save Changes


Docker Deployment

Deploy AnythingLLM with TensorX pre-configured:

Then open http://localhost:3001 in your browser.

Docker Compose

Deploy with:


Use Case
Model
Notes

General chat

deepseek/deepseek-chat-v3.1

Fast, great for everyday use

Complex reasoning

deepseek/deepseek-r1-0528

Best for analysis and research

Coding assistance

z-ai/glm-5.1

Excellent for code-related tasks

Vision tasks

moonshotai/kimi-k2.5

Image understanding

Long documents

meta-llama/llama-4-maverick

Long document processing

Fast responses

meta-llama/llama-3.3-70b-instruct

Quick, cost-effective


Workspace Configuration

You can set different models per workspace:

  1. Open a workspace

  2. Click the Settings icon for that workspace

  3. Under Chat Settings, select Workspace LLM

  4. 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:

Variable
Value
Description

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

4096

Max tokens per response


Troubleshooting

"Invalid API Key" Error

  1. Verify your API key is correct

  2. Check that the key has available credits

  3. Test your key:

"Model Not Found" Error

  1. Verify the model name is correct (e.g., deepseek/deepseek-chat-v3.1)

  2. Check available models at tensorx.ai/models

Connection Errors

  1. Ensure Base URL is https://api.tensorx.ai/v1 (with /v1)

  2. Check your internet connection

  3. Verify no firewall is blocking the connection

Slow Responses

  1. Try a faster model like meta-llama/llama-3.3-70b-instruct

  2. Reduce the document size in your workspace

  3. Lower the max tokens setting

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?