VercelVercel
Menu

Superset

Last updated March 7, 2026

Superset 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.

  1. Download and install Superset by following the installation guide. If you already have Superset installed, continue to the next step.

  2. Go to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.

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

    export ANTHROPIC_BASE_URL="https://ai-gateway.vercel.sh"
    export ANTHROPIC_AUTH_TOKEN="your-ai-gateway-api-key"
    export ANTHROPIC_API_KEY=""

    Setting ANTHROPIC_API_KEY to an empty string is important. This prevents direct Anthropic authentication and ensures requests route through AI Gateway.

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

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

  1. Download and install Superset by following the installation guide.

  2. Open the Superset app.

  3. Open the model picker at the bottom of the chat interface.

  4. Click the key icon next to Anthropic, then select Use API key.

  5. Go to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.

  6. Enter the following environment variables (one per line, VAR_NAME=value format):

    ANTHROPIC_BASE_URL=https://ai-gateway.vercel.sh
    ANTHROPIC_AUTH_TOKEN=your-ai-gateway-api-key
    ANTHROPIC_API_KEY=
  7. Click Save settings to apply your configuration.

    Your Superset requests now route through Vercel AI Gateway.

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

Once configured, view your usage in the 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 for more details.


Was this helpful?

supported.