---
title: Superset with AI Gateway
description: Configure Superset to use AI Gateway with terminal-based coding agents. Set provider credentials and route model requests through AI Gateway.
url: "https://vercel.com/docs/ai-gateway/coding-agents/superset"
last_updated: 2026-09-13
related:
  - /docs/cli/ai-gateway
  - /docs/ai-gateway/observability-and-spend/observability
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Superset with AI Gateway

[Superset](https://superset.sh) is a terminal-first AI coding agent that works with CLI agents like Claude Code, Codex, and Cursor Agents. Here's how to use Superset with Vercel AI Gateway.

## Terminal configuration

- ### Download Superset
  Download and install Superset by following the [installation guide](https://docs.superset.sh/overview). If you already have Superset installed, continue to the next step.

- ### Create an API key
  Go to the [**AI Gateway**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway\&title=Go+to+AI+Gateway) section in the Vercel dashboard sidebar and click **API keys** to create a new API key.

- ### Configure environment variables
  Terminal-based agents in Superset work automatically when you configure your environment. Add the following to your shell configuration file, for example in `~/.zshrc` or `~/.bashrc`:
  ```bash
  export ANTHROPIC_BASE_URL="https://ai-gateway.vercel.sh/coding-agent"
  export ANTHROPIC_AUTH_TOKEN="your-ai-gateway-api-key"
  export ANTHROPIC_API_KEY=""
  ```
  `/coding-agent` is the [coding agent surface](/docs/cli/ai-gateway#the-coding-agent-surface), the default for agents without a dedicated endpoint. It carries no `/v1` because the Anthropic client appends `/v1/messages` itself.
  > **💡 Note:** Setting `ANTHROPIC_API_KEY` to an empty string is important. This prevents
  > direct Anthropic authentication and ensures requests route through AI Gateway.

- ### Restart your terminal session
  Open a new terminal window or run `source ~/.zshrc` or `source ~/.bashrc` to apply the changes.

  Your terminal-based Superset agents now route requests through Vercel AI Gateway.

## Chat UI configuration

For the Superset Chat UI, configure AI Gateway through the settings panel:

- ### Download Superset
  Download and install Superset by following the [installation guide](https://docs.superset.sh/overview).

- ### Open Superset
  Open the Superset app.

- ### Open the model picker
  Open the model picker at the bottom of the chat interface.

- ### Open provider settings
  Click the **key icon** next to **Anthropic**, then select **Use API key**.

- ### Create an API key
  Go to the [**AI Gateway**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway\&title=Go+to+AI+Gateway) section in the Vercel dashboard sidebar and click **API keys** to create a new API key.

- ### Add environment variables
  Enter the following environment variables (one per line, `VAR_NAME=value` format):
  ```bash
  ANTHROPIC_BASE_URL=https://ai-gateway.vercel.sh/coding-agent
  ANTHROPIC_AUTH_TOKEN=your-ai-gateway-api-key
  ANTHROPIC_API_KEY=
  ```

- ### Save settings
  Click **Save settings** to apply your configuration.

  Your Superset requests now route through Vercel AI Gateway.

## Workspace-specific configuration

You can also set environment variables per workspace through **Settings > Env** in Superset. This is useful when you need different configurations for different projects.

## Monitoring usage

Once configured, view your usage in the [**AI Gateway**](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai-gateway\&title=Go+to+AI+Gateway) section of the Vercel dashboard:

- **Spend tracking**: See costs across all your Superset sessions
- **Model usage**: Track which models your agents use
- **Request traces**: Debug issues with full request and response logs

See the [observability documentation](/docs/ai-gateway/observability-and-spend/observability) for more details.

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
