> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llmrouter.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Superset

> Configure Superset terminal and chat AI coding agents to use LLM Router for intelligent routing, Skills, Zero Data Retention, and optimized performance.

***

## Documentation Index

Fetch the complete documentation index at:\
**[https://docs.llmrouter.app/llms.txt](https://docs.llmrouter.app/llms.txt)**

Use this file to discover all available models, tags, and features before exploring further.

# Superset Integration

[Superset](https://superset.sh) is a powerful terminal-first AI coding agent that also includes a Chat UI. It works seamlessly with tools like Claude Code, Cursor Agents, and other coding workflows.

By connecting Superset to **LLM Router**, you get intelligent tag-based routing, automatic Skill injection, context optimization, Zero Data Retention (ZDR), and access to the best models from Anthropic, OpenAI, Google, xAI, and more.

## Terminal Configuration

### 1. Install Superset

Follow the official [installation guide](https://docs.superset.sh/installation) to download and install Superset.

### 2. Configure Environment Variables

Add the following lines to your shell configuration file (`~/.zshrc`, `~/.bashrc`, etc.):

```bash theme={null}
export ANTHROPIC_BASE_URL="https://api.llmrouter.app/v1"
export ANTHROPIC_AUTH_TOKEN="sk_llmr_..."     # Your LLM Router API key
export ANTHROPIC_API_KEY=""                    # Important: leave empty
```

> **Note:** Setting `ANTHROPIC_API_KEY` to an empty string is required so that Superset routes requests through LLM Router instead of directly to Anthropic.

### 3. Apply Changes

Restart your terminal or run:

```bash theme={null}
source ~/.zshrc
```

(or `source ~/.bashrc` depending on your shell).

All terminal-based Superset agents will now route through LLM Router.

## Chat UI Configuration

### 1. Open Superset Chat

Launch the Superset desktop or web application.

### 2. Open Model Settings

* Open the model picker at the bottom of the chat interface.
* Click the **key icon** next to the current provider.
* Select **Use API key** or **Custom Provider**.

### 3. Enter LLM Router Settings

Fill in the following:

* **Base URL**: `https://api.llmrouter.app/v1`
* **API Key**: Your LLM Router API key (`sk_llmr_...`)
* **Model**: Any supported model (e.g. `anthropic/claude-opus-4.6`, `openai/gpt-5.4`, etc.)

Save the settings.

## Workspace-Specific Configuration

You can set different configurations per workspace in Superset:

Go to **Settings > Env** and add the same environment variables:

```bash theme={null}
ANTHROPIC_BASE_URL=https://api.llmrouter.app/v1
ANTHROPIC_AUTH_TOKEN=sk_llmr_your_key_here
ANTHROPIC_API_KEY=
```

This is useful when working on multiple projects with different routing or privacy needs.

## Recommended: Configure Routing in LLM Router Dashboard

For the best results, go to the **LLM Router Dashboard** and configure:

* Default **tags** (`coding`, `testing`, `ui design`, etc.)
* Project-specific **Skills**
* **Zero Data Retention (ZDR)**
* Model preferences and optimization rules

These settings will automatically apply to all Superset requests.

## Monitoring Usage

All your Superset activity is routed through LLM Router, allowing you to track:

* Token usage and spend
* Model routing decisions
* Request performance and optimization

***
