> 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/jan.md).

# Jan

[Jan](https://jan.ai/) is a privacy-focused, open-source ChatGPT alternative that runs locally. It supports connecting to cloud providers like TensorX through OpenAI-compatible configuration.

## Prerequisites

* Jan installed from [jan.ai](https://jan.ai/)
* TensorX API key from [app.tensorx.ai](https://app.tensorx.ai)

## Configuration

### Step 1: Open Settings

1. Click the **Settings** icon (⚙️) in the bottom-left corner of Jan
2. Navigate to **Model Providers** in the left sidebar

### Step 2: Configure OpenAI Provider

1. Select **OpenAI** from the Model Providers list
2. Enter your TensorX credentials:
   * **API Key**: Your TensorX API key
   * **API Base URL**: `https://api.tensorx.ai/v1`
3. Click **Save**

### Step 3: Add TensorX Models

Jan automatically includes popular OpenAI models. To add specific TensorX models:

1. Go to **Settings** > **Model Providers** > **OpenAI**
2. Add models by their exact ID:
   * `claude-sonnet-4-20250514`
   * `claude-3-5-sonnet-20241022`
   * `gpt-4o`
   * `gpt-4o-mini`

## Using Models in Chat

1. Open a new chat or existing thread
2. Click the model selector dropdown
3. Choose your configured TensorX model
4. Start chatting!

## Manual Model Configuration

For advanced users, you can manually add models via JSON configuration:

1. Navigate to Jan Data Folder:
   * **Mac**: `~/Library/Application Support/jan/models/`
   * **Windows**: `%APPDATA%\jan\models\`
   * **Linux**: `~/.config/jan/models/`
2. Create a new folder for your model (e.g., `tensorx-claude-sonnet`)
3. Create a `model.json` file:

```json
{
  "id": "claude-sonnet-4-20250514",
  "object": "model",
  "name": "Claude Sonnet 4 (TensorX)",
  "description": "Claude Sonnet 4 via TensorX API",
  "settings": {
    "ctx_len": 200000
  },
  "parameters": {
    "temperature": 0.7,
    "top_p": 0.95,
    "stream": true,
    "max_tokens": 4096
  },
  "metadata": {
    "author": "TensorX",
    "tags": ["Claude", "Anthropic", "TensorX"]
  },
  "engine": "openai"
}
```

## Available Models

See [TensorX Models](/api-reference/models.md) for the complete list.

Recommended models for Jan:

| Model                        | Best For                |
| ---------------------------- | ----------------------- |
| `claude-sonnet-4-20250514`   | Complex tasks, analysis |
| `claude-3-5-sonnet-20241022` | General chat, coding    |
| `gpt-4o`                     | Multi-modal, images     |
| `gpt-4o-mini`                | Fast, cost-effective    |

## Troubleshooting

### Model not connecting

1. Verify API key is entered correctly
2. Ensure base URL is `https://api.tensorx.ai/v1` (with `/v1`)
3. Check Jan's logs for error details

### Model unavailable

* Confirm the model ID matches exactly (case-sensitive)
* Verify your TensorX account has access to the model

### Slow responses

* Check your internet connection
* Try a faster model like `gpt-4o-mini`

## Resources

* [Jan Documentation](https://jan.ai/docs)
* [Jan GitHub](https://github.com/janhq/jan)
* [TensorX API Reference](/api-reference/overview.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensorx.ai/chat-interfaces/jan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
