Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gemini-agents-api

Skill by google

Manages custom Agent resources on the Gemini Enterprise Agent Platform through its REST control plane. It covers creating, reading, listing, updating and deleting stateful agents that have mounted files, skills and tools. Built for developers who provision agents before running conversations.

  • Score 91
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gemini-agents-api

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/gemini-agents-api ~/.claude/skills/gemini-agents-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gemini-agents-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives step-by-step REST instructions for managing custom Agent resources on the Gemini Enterprise Agent Platform. It covers the Control Plane: creating an agent, polling the long-running creation operation, and getting, listing, patching and deleting agents. Each request uses a Bearer token from Application Default Credentials and targets the global endpoint on aiplatform.googleapis.com.

Agents can be configured with a system instruction, tools such as code execution and Google Search, and a remote environment. Files, folders or skills can be mounted from Google Cloud Storage or the Skill Registry, and MCP servers can be added as tools with custom headers. The skill is aimed at developers who want to provision and manage agents before running conversations through the Data Plane.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create agentCreates a custom agent with a system instruction, tools and a base environment via a POST request.
  • Poll creation statusChecks the long-running operation and returns the finished Agent resource when it is ready.
  • Get agentRetrieves the configuration, tools and environment setup of an existing custom agent.
  • List agentsLists all custom agents under a Google Cloud project.
  • Update agentPatches fields such as instructions, descriptions, tools or mounts using an update_mask.
  • Delete agentDeletes a custom agent that is no longer needed to free up backend workspace containers.
  • Mount Cloud Storage sourcesMounts files, folders or skills from Google Cloud Storage buckets into the agent workspace.
  • Mount Skill Registry skillsMounts skills directly from the Skill Registry service instead of Cloud Storage.
  • Configure MCP serversAdds third-party Model Context Protocol servers as agent tools with optional custom headers.

What you need

  • A Google Cloud project ID
  • Access to the Gemini Enterprise Agent Platform Managed Agents API
  • gcloud CLI for Application Default Credentials and access tokens
  • A Cloud Storage bucket or Skill Registry skill if you mount sources

Try asking

  • Create a custom Gemini agent with code execution and Google Search tools
  • List all custom agents in my Google Cloud project
  • Update the system instruction of my support agent to a new policy

Good to know

  • Updates must include an update_mask that names the fields being changed
  • Agent creation is asynchronous, so the operation must be polled until done is true
  • Covers the control plane only; conversations use the separate Data Plane

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/cloud/gemini-agents-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md13 KB
  • references/attribution.md2 KB

Alternatives to gemini-agents-api

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

gemini-agents-api: common questions

What does the gemini-agents-api skill manage?

It manages custom Agent resources on the Gemini Enterprise Agent Platform, including create, get, list, update and delete operations. Agents can include mounted files, skills and tools.

Why does creating an agent return an operation instead of the agent?

Agent creation is a long-running operation. The response returns an operation name that you poll until done is true, and then the Agent resource appears in the response field.

Can this skill connect MCP servers to an agent?

Yes. MCP servers can be added under the tools array with a name, url and optional headers. The source says headers are only sent to the specified MCP server URL.

How do I install gemini-agents-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gemini-agents-api free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gemini-agents-api safe to use?

It scores 91 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 gemini-agents-api?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

gemini-agents-api Install

Add to stack

Loading.