---
title: "AI Week: Using Claude Code with Zuplo AI Gateway"
description: "Learn how to configure Claude Code with Zuplo AI Gateway for team-based cost controls, self-serve API keys, and real-time monitoring of your AI spend."
canonicalUrl: "https://zuplo.com/blog/2025/10/02/ai-gateway-with-claude-code"
pageType: "blog"
date: "2025-10-02"
authors: "martyn"
tags: "AI"
image: "https://zuplo.com/og?text=Using%20Claude%20Code%20with%20Zuplo%20AI%20Gateway"
---
The Zuplo AI Gateway comes with full support for the
[Anthropic](https://docs.claude.com/en/api/messages) `/v1/messages` API
endpoint. This means that you can configure Claude Code to work seamlessly with
the new Claude Sonnet 4.5 model (or any other Claude model) while gaining
enterprise-grade controls.

## Why Route Claude Code Through Zuplo?

Instead of sharing API keys across your team or worrying about budget overruns,
the Zuplo [AI Gateway](https://zuplo.com/ai-gateway) gives you:

**Team-Based Access Control** - Create teams with self-serve API key generation,
so developers can securely access Claude Code without sharing credentials.

**Hierarchical Cost Controls** - Set monthly spending limits per application or
project to prevent budget surprises during hackathons or development sprints.

**Complete Visibility** - Monitor request volume, token usage, costs, and
performance metrics through a comprehensive dashboard.

**Security at Scale** - Eliminate API key sprawl and reduce the risk of
compromised shared keys.

## Watch the Setup

In this demo, I walk through the complete setup process in just a few minutes:

- Configuring Anthropic as a provider in the AI Gateway
- Creating a dev team with controlled access
- Setting up an application with a $10 monthly spending limit
- Modifying Claude Code settings to route through the gateway
- Seeing real-time cost and usage data flow through the dashboard

<YouTubeVideo videoId="-3oRanygD2M" />

## The Setup

No video? That's fine. Here are the setup steps:

1. Create a new [provider](https://zuplo.com/docs/ai-gateway/providers) in the
   AI Gateway for Anthropic
2. Set up a new [team](https://zuplo.com/docs/ai-gateway/teams), and create a
   new [app](https://zuplo.com/docs/ai-gateway/apps) to use with Claude Code
3. Copy the API Key for the app and the Gateway URL
4. Add the key and the URL to your environment, or Claude Code settings, using
   either approach below

### Environment

```bash
ANTHROPIC_AUTH_TOKEN=<your-ai-gateway-app-api-key>
ANTHROPIC_BASE_URL=<your-ai-gateway-url>
```

### Using Claude's `settings.json`

```json
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "<your-ai-gateway-app-api-key>",
    "ANTHROPIC_BASE_URL": "<your-ai-gateway-url>"
  }
}
```

Once these are set. Reload Claude and you should be good to go. Now, all your
Claude Code work will route through the AI Gateway.

## Get Started today

Setting up Claude Code with the Zuplo AI Gateway is as quick as changing just
two environment variables. Everything else works exactly as before, but now you
have complete visibility and control over your AI spend and security.

Ready to add enterprise controls to your Claude Code workflow?
[Start with Zuplo AI Gateway today](https://portal.zuplo.com/signup?utm_source=aiweek-claude-code&utm_campaign=ai-week&utm_medium=web&ref=claude-code-integration).

## More from AI Week

This article is part of Zuplo's AI Week. A week dedicated to AI, LLMs and, of
course, APIs centered around the release of our
[AI Gateway](https://zuplo.com/ai-gateway).

You can find the other articles and videos from this week below:

- Day 1: [AI Gateway Overview](/blog/zuplo-ai-gateway) with Zuplo CEO, Josh
  Twist
- Day 2:
  [Is Spec-Driven AI Development the Future?](/blog/spec-driven-ai-development)
  with Guy Podjarny, CEO & Founder of Tessl
- Day 2:
  [Using AI Gateway with LangChain & OpenAI](/blog/ai-gateway-with-langchain)
  with John McBride, Staff Software Engineer at Zuplo
- Day 3:
  [Your AI Models Aren't Learning From Production Data](/blog/comet-ml-opik)
  with Gideon Mendels, CEO & Co-Founder of Comet ML
- Day 3:
  [Using Claude Code with Zuplo's AI Gateway](/blog/ai-gateway-with-claude-code)
  with Martyn Davies, Developer Advocate at Zuplo
- Day 4:
  [What Autonomous Agents Actually Need from Your APIs](/blog/what-autonomous-agents-actually-need-from-your-apis)
  with Emmanuel Paraskakis, CEO of Level250
- Day 4: [Using AI Gateway with goose AI agent](/blog/ai-gateway-with-goose)
  with Martyn Davies, Developer Advocate at Zuplo