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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure Vertex AI access, call Gemini or open models, run the included examples, and verify the connection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/vertex-ai-samples/vertex-inference
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vertex-inference

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 111
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 124
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 123
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.1 $0.00000 $0.03209
Opus 5.5 $0.00000 $0.01284
Sonnet 5.5 $0.00000 $0.00642
Haiku 4.5 $0.00000 $0.00321

Measured 3mo ago against content hash 6cba4fa6098e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (809 stars, last pushed today), 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

vertex-inference compared with skills from other repositories

vertex-inference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vertex-inferenceGoogleCloudPlatform/vertex-ai-samplesSkill809todayApache-2.0A0Claude Code, Codex
marimo-pairmarimo-team/marimo-pairSkill438todayApache-2.0A36Claude Code
pyhealthsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A109Claude Code, Codex
deepchemsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A78Claude Code, Codex
shapsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A109Claude Code, Codex
torch-geometricsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A41Claude Code, Codex
zarr-pythonsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A42Claude Code, Codex