Skip to content
Skill

Anthropic vertex integration

Guides calling Claude through Google Cloud Vertex AI with ADC auth and retry helpers

Anthropic vertex integration is an open-source agent skill for ai models and llm tooling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
13
Last commit
License
MIT
Listing updated

Similar skills

About Anthropic vertex integration

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

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (56 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Anthropic vertex integration 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.

More from ajyadav013/claude-kit

  1. Guides an agent through pytest, async fixtures and security-regression tests for FastAPI

    • Open source
    • 13 GitHub stars
    • Developer tools
  2. Lets your agent inspect and debug live browser pages via Chrome DevTools MCP

    • Open source
    • 13 GitHub stars
    • Browser automation
  3. Runs concurrent load and stress tests against API endpoints to find latency and throughput

    • Open source
    • 13 GitHub stars
    • Developer tools
  4. Lets an agent click through a feature in a real browser and check how it behaves

    • Open source
    • 13 GitHub stars
    • Developer tools
  5. Runs quick health checks on backend, frontend and login to catch obvious breakage

    • Open source
    • 13 GitHub stars
    • Developer tools
  6. Guides an agent through red-green-refactor, bug reproduction tests and test pyramid

    • Open source
    • 13 GitHub stars
    • Developer tools