> For the complete documentation index, see [llms.txt](https://docs.tensorx.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tensorx.ai/chat-interfaces/sillytavern.md).

# SillyTavern

Configure SillyTavern to use TensorX as an OpenAI-compatible provider.

***

## Overview

[SillyTavern](https://sillytavern.app) is a self-hosted LLM frontend that supports OpenAI-compatible APIs.

***

## Prerequisites

* **Node.js** 18+ ([download here](https://nodejs.org/))
* **Git**
* A TensorX API key ([sign up here](https://app.tensorx.ai/register))

***

## Installation

```bash
git clone https://github.com/SillyTavern/SillyTavern.git
cd SillyTavern
npm install
node server.js
```

Open `http://localhost:8000` in your browser.

***

## Configuration

### Step 1: Open API Settings

1. Click the **plug icon** (API Connections) in the top menu
2. Select **Chat Completion** as the API type
3. Select **Custom (OpenAI-compatible)** as the Chat Completion Source

### Step 2: Configure TensorX

| Setting                        | Value                       |
| ------------------------------ | --------------------------- |
| **Custom Endpoint (Base URL)** | `https://api.tensorx.ai/v1` |
| **API Key**                    | Your TensorX API key        |

### Step 3: Set Your Model

In the model field, enter an ID returned by `GET /v1/models`.

### Step 4: Test Connection

Click **Connect** and send a test message to verify everything works.

***

## 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](/api-reference/models.md) for examples.

***

## Troubleshooting

### Connection Failed

1. Verify the endpoint is exactly `https://api.tensorx.ai/v1`
2. Check your API key is correct
3. Ensure you selected **Custom (OpenAI-compatible)** not plain OpenAI

### Empty or Short Responses

Check whether **Max Response Length** is imposing an application-specific cap. Query `GET /v1/model/info` before changing it.

### Model Not Found

Type the full ID returned by `GET /v1/models`; SillyTavern may not auto-discover models from custom endpoints.

***

## See Also

* [SillyTavern Documentation](https://docs.sillytavern.app/)
* [SillyTavern on GitHub](https://github.com/SillyTavern/SillyTavern)
* [TensorX Models](https://tensorx.ai/models)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tensorx.ai/chat-interfaces/sillytavern.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
