agent-platform-inference
Skill by google
Performs inference with Google Cloud Agent Platform Gemini and OpenMaaS models using the GenAI SDK or OpenAI SDK. Aimed at developers who want to run test prompts, chat completions or generated code, and troubleshoot common API errors.
Install agent-platform-inference
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/agent-platform-inference ~/.claude/skills/agent-platform-inferenceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install agent-platform-inference in Claude Code
git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/cloud/agent-platform-inference ~/.gemini/antigravity-cli/skills/agent-platform-inferenceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install agent-platform-inference in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The agent-platform-inference skill connects an AI assistant to generative AI models on Google Cloud Agent Platform. It covers first-party Gemini models through the Google GenAI SDK, third-party OpenMaaS models such as Llama, DeepSeek and Qwen through the OpenAI SDK, and custom endpoints on numeric endpoint resources. It also covers authentication with Application Default Credentials, configuring global and regional endpoints, and troubleshooting 429, 400 and 404 errors.
Before running any inference, the skill requires explicit user confirmation that lists the project ID, region, model ID, SDK and input prompt. It asks for the model, project and region when they are not given rather than guessing them. The skill is aimed at developers who want to run test prompts, chat completions or generated code against these models. It does not cover deploying models to endpoints or running model evaluations.
Written from the project's SKILL.md and checked against it.
What it can do
- Gemini inferenceRuns inference on first-party Gemini models using the Google GenAI SDK (google-genai).
- OpenMaaS inferenceRuns chat completions on third-party OpenMaaS models such as Llama, DeepSeek and Qwen with the OpenAI SDK.
- Custom endpoint callsCalls models served on numeric projects/.../endpoints/<id> resources, including tuned Gemini models.
- Authentication setupGuides gcloud login, Application Default Credentials and API enablement for Agent Platform access.
- Endpoint configurationConfigures global and regional base URLs for OpenMaaS and Gemini requests.
- Error troubleshootingHelps diagnose 429 Resource Exhausted, 400 User Validation and 404 Not Found errors.
What you need
- Google Cloud project with the Agent Platform API (aiplatform.googleapis.com) enabled
- gcloud CLI with user login and Application Default Credentials
- Python with google-cloud-aiplatform, google-genai and openai, or the scripts/requirements.txt fallback
Try asking
- Ask DeepSeek a question using the OpenAI SDK on Agent Platform
- Run a test prompt on a Gemini model in my project
- Help me set up ADC and the GenAI SDK for Agent Platform
Good to know
- Inference requires explicit user confirmation before each run, to prevent unexpected cost or quota use.
- Does not cover deploying models to endpoints or running model evaluations.
- Model IDs listed in the skill are examples and may be incomplete or outdated.
- The skill is read-only according to its safety section.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cloud/agent-platform-inference/SKILL.md, skills/cloud/agent-platform-inference/scripts/gemini_genai_sdk.py, skills/cloud/agent-platform-inference/scripts/gemini_openai_sdk.py, skills/cloud/agent-platform-inference/scripts/gemini_vertexai_sdk.py, skills/cloud/agent-platform-inference/scripts/openmaas_genai_sdk.py, skills/cloud/agent-platform-inference/scripts/openmaas_openai_sdk.py, skills/cloud/agent-platform-inference/scripts/openmaas_vertexai_sdk.py, skills/cloud/agent-platform-inference/scripts/verify_all.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md38 KB -
references/attribution.md2 KB -
scripts/gemini_genai_sdk.py500 B -
scripts/gemini_openai_sdk.py884 B -
scripts/gemini_vertexai_sdk.py420 B
Show all 10 files
-
scripts/openmaas_genai_sdk.py607 B -
scripts/openmaas_openai_sdk.py917 B -
scripts/openmaas_vertexai_sdk.py527 B -
scripts/requirements.txt64 B -
scripts/verify_all.sh864 B
Alternatives to agent-platform-inference
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
agent-platform-inference: common questions
Which models does this skill support?
It supports first-party Gemini models through the GenAI SDK and third-party OpenMaaS models such as Llama, DeepSeek and Qwen through the OpenAI SDK. It also supports custom endpoints on numeric endpoint resources.
Will the skill pick a model or project for me?
No. The skill asks which model, SDK, project ID and region to use when they are not specified, and it does not silently assume them.
Can this skill deploy models or run evaluations?
No. The source says the skill should not be used for deploying models to endpoints or for running model evaluations.
How do I install agent-platform-inference?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is agent-platform-inference free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is agent-platform-inference safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to agent-platform-inference?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
