# Anthropic vertex integration

> Anthropic vertex integration is an open-source agent skill for ai models and llm tooling. Guides calling Claude through Google Cloud Vertex AI with ADC auth and retry helpers. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/providers/codex/claude-kit/skills/anthropic-vertex-integration
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** anthropic-vertex-integration
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-03

## About

This skill walks the agent through calling Claude on Vertex AI with the AnthropicVertex SDK instead of the direct Anthropic API. It covers installing the vertex extra, authenticating with Google Cloud Application Default Credentials, and resolving project and region from a chain of environment variables with sensible defaults.

The guidance includes a lazily created client that defers credential checks until first use, plus async text and JSON helpers wrapped in exponential-backoff retry with logged attempts. It also describes optional patterns for image input, tool-use conversations, system prompt composition from persona files, a generic lazy singleton with a reset hook for tests, and an optional Langfuse tracing wrapper that degrades to a no-op when disabled.

The skill ships as instructions and reference notes without scripts. It expects a Python project, a Google Cloud project with Vertex AI access, and the anthropic package with its vertex extra installed.

## When your agent uses it

> Claude on Vertex AI via the AnthropicVertex SDK — lazy ADC client init, env-based project/region resolution, async helpers, backoff retry. Use when calling Claude via GCP Vertex AI (not direct Anthropic API).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/anthropic-vertex-integration)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/anthropic-vertex-integration)

## Features

- **Vertex AI client setup:** Shows how to build an AnthropicVertex client using Application Default Credentials and env-based project and region resolution.
- **Retry-wrapped helpers:** Provides async text and JSON completion helpers that retry with exponential backoff and log each failed attempt.
- **Lazy client caching:** Describes a generic lazy singleton that builds the client on first use and can be reset in tests.
- **Vision and tool use:** Covers building image input blocks and multi-turn tool-use conversations for Claude on Vertex.
- **Optional Langfuse tracing:** Outlines a context manager that records input, output and errors to Langfuse and stays inactive when disabled.
- **Sync SDK guidance:** Explains running the synchronous Anthropic SDK inside an async app via an executor to avoid blocking the event loop.

## Good for

- Set up Claude calls through Google Cloud Vertex AI instead of an API key
- Add retry with backoff to Claude requests hitting transient Vertex errors
- Write an async helper that returns JSON from a Claude completion
- Send images to Claude on Vertex from a Python service
- Configure project and region from environment variables across services

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/anthropic-vertex-integration`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/anthropic-vertex-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/anthropic-vertex-integration" ~/.claude/skills/anthropic-vertex-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/anthropic-vertex-integration` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/anthropic-vertex-integration` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/anthropic-vertex-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/anthropic-vertex-integration" ~/.agents/skills/anthropic-vertex-integration &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/anthropic-vertex-integration` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/anthropic-vertex-integration` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/anthropic-vertex-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/anthropic-vertex-integration" ~/.cursor/skills/anthropic-vertex-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/anthropic-vertex-integration` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path providers/codex/claude-kit/skills/anthropic-vertex-integration
```

Or copy the folder to `~/.gemini/skills/anthropic-vertex-integration` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/anthropic-vertex-integration`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/anthropic-vertex-integration &&
cp -R "$tmp/providers/codex/claude-kit/skills/anthropic-vertex-integration" ~/.copilot/skills/anthropic-vertex-integration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/anthropic-vertex-integration` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/providers/codex/claude-kit/skills/anthropic-vertex-integration` into your agent's skills folder as `anthropic-vertex-integration`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install what Anthropic vertex integration needs?

Install the SDK with pip install 'anthropic[vertex]'. Authentication uses Google Cloud Application Default Credentials, set up locally with gcloud auth application-default login or a service account.

### Which environment variables decide the Vertex project and region?

The project is resolved from VERTEX_PROJECT_ID, then BQ_PROJECT_ID, GOOGLE_CLOUD_PROJECT and GCLOUD_PROJECT. The region comes from VERTEX_LOCATION or GOOGLE_CLOUD_LOCATION, falling back to a default such as us-central1.

### Does Anthropic vertex integration run any scripts or change my project files?

No scripts are included. The skill gives the agent patterns and example code to follow when writing Claude-on-Vertex integration code.

### Does Anthropic vertex integration work with the direct Anthropic API?

No, it is aimed at calling Claude through GCP Vertex AI rather than the direct Anthropic API with API keys.

### How do I install Anthropic vertex integration in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/anthropic-vertex-integration to use it in all your projects, or to .claude/skills/anthropic-vertex-integration in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Anthropic vertex integration run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Anthropic vertex integration?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Anthropic vertex integration?

The closest alternatives to Anthropic vertex integration are Claude API, Skill creator, Gemini interactions API, AI SDK and API AI augmented.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Claude API](https://ai-powered.com/skills/claude-api): Claude API is a free agent skill for ai models and llm tooling.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.
- [Gemini interactions API](https://ai-powered.com/skills/gemini-interactions-api): Gemini interactions API is an open-source agent skill for ai models and llm tooling.
- [AI SDK](https://ai-powered.com/skills/ai-sdk): AI SDK is an open-source agent skill for ai models and llm tooling.
- [API AI augmented](https://ai-powered.com/skills/api-ai-augmented): API AI augmented is an open-source agent skill for ai models and llm tooling.
- [Google ads API MCP setup](https://ai-powered.com/skills/google-ads-api-mcp-setup): Google ads API MCP setup is an open-source agent skill for marketing and seo.
- [Azure AI projects py](https://ai-powered.com/skills/azure-ai-projects-py): Azure AI projects py is an open-source agent skill for cloud and infrastructure.
- [AI gateway](https://ai-powered.com/skills/ai-gateway-scaledockhq): AI gateway is an open-source agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/anthropic-vertex-integration
