vertex-inference

vertex-inference is a skill for Claude Code, Codex from GoogleCloudPlatform/vertex-ai-samples. It costs 0 tokens per session (3,209 once invoked), scanned A, original, Apache-2.0.

Instructions for connecting to Google Cloud Vertex AI and sending requests to Gemini and other supported language models. Vertex AI is Google’s managed platform for using machine-learning models.

In plain words
What is it for?
Use it to configure Vertex AI access, call Gemini or open models, run the included examples, and verify the connection.
Why use it?
It explains authentication, model selection, regions, and the software setup needed to make inference requests.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/googlecloudplatform/vertex-ai-samples/vertex-inference
Any agent
npx skills add GoogleCloudPlatform/vertex-ai-samples --skill vertex-inference
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/vertex-ai-samples

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vertex-inference

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/vertex-inference.svg)](https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/vertex-inference)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/vertex-inference"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/vertex-inference.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03209
Opus 5 $0.00000 $0.01605
Sonnet 5 $0.00000 $0.00642
Haiku 4.5 $0.00000 $0.00321

Measured 4d ago against content hash 6cba4fa6098e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vertex-inference scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/gemini_genai_sdk.py, scripts/gemini_openai_sdk.py, scripts/gemini_vertexai_sdk.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> 3. Look for the **"Sample Code"** or **"Use this model"** button on the Model Garden page to get the exact `curl` or Python code for that specific model version.
skills/vertex-inference/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.


name: Vertex AI GenAI Inference description: Instructions for connecting to and performing inference with Google Cloud Vertex AI GenAI models, including Gemini and OpenMaaS (Llama, DeepSeek, Qwen, etc.).

Vertex AI GenAI Inference Skill

This skill provides instructions for authenticating and connecting to Google Cloud Vertex AI to use Generative AI models. It covers both First-Party (Gemini) and Third-Party (OpenMaaS) models.

[!TIP] Sample Scripts: This skill includes fully functional sample scripts in the scripts/ directory (e.g., scripts/openmaas_openai_sdk.py). When running these scripts, ALWAYS create and use a local virtual environment:

python3 -m venv .venv && source .venv/bin/activate
pip install -r scripts/requirements.txt

Verify All Scripts: You can run all scripts at once to verify your setup:

./scripts/verify_all.sh

[!IMPORTANT] CRITICAL: Model IDs & Availability

  • Gemini Models: See Gemini Models for valid Model IDs and Regions.
  • OpenMaaS Models: See Use Open Models on Vertex AI for Llama, DeepSeek, Qwen, etc.
  • Incomplete Lists: The Model IDs listed in this skill are examples only and may be incomplete or outdated.
  • Action: Always verify the Model ID and Region using the links above before generating code.

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 247 lines · 0 tokens per session scan A 6cba4fa6098e

Subscribe to this mod's changes

vertex-inference is a skill published in the GitHub repository GoogleCloudPlatform/vertex-ai-samples (784 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,209 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

retro-marimo-pair

Session retrospective for improving marimo-pair and marimo.codemode. Use when the user wants to analyze friction from a pairing session, identify what went wrong, and brainstorm improvements to the skill docs or the underlying API. Trigger on: "retro", "what went wrong", "improve the skill", "session review"…

marimo-team/marimo-pair · 84 tokens

marimo-pair

Drive a live marimo notebook as a workspace: run Python in the same kernel the user does, inspect live notebook state, and commit durable notebook changes. Use when the user wants to start a marimo notebook or pair on an active marimo session.

marimo-team/marimo-pair · 56 tokens

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

stale-sweep

Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…

googleapis/mcp-toolbox · 159 tokens

zeroclaw

Help users operate and interact with their ZeroClaw agent instance — through both the CLI (zeroclaw commands) and the REST/WebSocket gateway API. Use this skill whenever the user wants to: send messages to ZeroClaw, manage memory or cron jobs, check system status, configure channels or providers, hit the gateway API…

zeroclaw-labs/zeroclaw · 167 tokens

triage-issues

Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…

googleapis/mcp-toolbox · 164 tokens