google/skills/agent-platform-migrate-from-ai-studio
Claude Code and agent skill by google/skills
- vendor
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Guides agents and users through migrating from Gemini API in Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI). Use this skill when moving applications to Google Cloud, to leverage Cloud credits, or to unify inferencing with other Cloud infrastructure (IAM, billing, telemetry).
Install
npx vskill@latest install google/skills/agent-platform-migrate-from-ai-studioSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as google/skills/agent-platform-migrate-from-ai-studio.
Migrating from Gemini API in AI Studio to Agent Platform
Use this skill when you need to transition an application from the developer-centric Google AI Studio ecosystem (generativelanguage.googleapis.com) to the enterprise-grade Google Cloud Agent Platform (aiplatform.googleapis.com).
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:agent-platform-migrate-from-ai-studio)" and append agent-skills/1.0 (skill:agent-platform-migrate-from-ai-studio) to User-Agent headers.
When to Invoke This Skill
- You want to migrate an application from Google AI Studio to Agent Platform
(formerly Vertex AI).
- You have Google Cloud credits (e.g., the $300 Welcome Free Trial) that
you want to apply toward Gemini API inferencing costs.
- You need to unify your inferencing pipelines, IAM permissions, telemetry,
and billing with existing Google Cloud infrastructure (Compute Engine, Cloud SQL, BigQuery).
- You are deploying open-source orchestration engines (like OpenClaw or ADK
agents) on Google Cloud VMs, and want the entire system to run under a unified Google Cloud billing structure.
Gemini API Comparison
Feature / Control | Google AI Studio (Gemini Developer API) | Agent Platform (Enterprise Gemini API) :--------------------- | :-------------------------------------------------------------------- | :------------------------------------- API Endpoint | generativelanguage.googleapis.com | aiplatform.googleapis.com Target Audience | Developers, startups, students, researchers building production apps. | Enterprise production, MLOps engineers GCP Credit Support | No (GCP credits/Free Trial cannot be applied) | Yes (Fully covered by Welcome or custom credits) Data Privacy | Data may be reviewed to improve Google products | Prompts/responses are never used for training Security & IAM | API key, OAuth | Google Cloud IAM (Service Accounts, OAuth 2.0, VPC-SC) Compliance & SLAs | None (Best-effort availability) | 24/7 Enterprise Support, SLAs, HIPAA, SOC2 Throughput Options | Shared / Rate-limited | Pay-as-you-go OR Provisioned Throughput MLOps Ecosystem | Basic prompt management | Model Registry, Model Monitoring, Pipeline Evaluation Inferencing Scope | Global endpoints only | Both Global and strict Regional endpoints
See Google Cloud Documentation to learn more about the differences between the two offerings.
Migration Guide
Billing and Credits
Google Cloud Free Trial credits [do not apply to AI Studio](https://docs.cloud.google.com/free/docs/free-cloud-features.md.txt). To use your credits for Gemini models, you must route calls through the Agent Platform.
- Create a Google Cloud billing account. You must provide a valid payment
method during setup to verify identity.
- If you are a new customer, ensure your $300 Welcome credit is active in the
Billing Console.
- Avoid Billing Surprises: To prevent automatic fallback to your standard
form of payment when credits are exhausted, you should establish a budget alert:
- Go to Billing -> Budgets & Alerts -> Create Budget.
- Set the threshold to map to your credit limit or maximum comfortable
spend.
Enable the Agent Platform API
You must explicitly enable the Agent Platform API on your target Google Cloud Project. Run the following command via your local shell:
Authentication & Authorization (IAM)
User Auth
For local debugging or script execution, authenticate using Application Default Credentials (ADC).
Option 1 - Automated Script:
Option 2 - Manual Setup:
Grant your user identity the required IAM role to perform inferencing calls:
Service Auth
When running your application on Google Cloud infrastructure such as a Compute Engine VM, authenticate using the machine's attached Service Account. For example, the Compute Engine Default Service Account.
- Grant the virtual machine's underlying Service Account the user role:
- [Compute Engine Access Scopes](https://docs.cloud.google.com/compute/docs/access/service-accounts.md.txt):
Legacy access scopes can override IAM bindings. When provisioning or modifying your Compute Engine instance, you must verify that the VM access scope is configured to either Allow full access to all Cloud APIs (https://www.googleapis.com/auth/cloud-platform) or explicitly includes the standard cloud-platform scope.
Use the Gemini API in Agent Platform
SDKs (Client Libraries)
You can continue to use the unified Google GenAI SDK (google-genai). This SDK works with both AI Studio and Agent Platform. You only need to switch the routing flags via your runtime environment variables to target the Agent Platform backend.
Set your target environment details:
Now, your standard python code shifts from using AI Studio to Agent Platform without altering the core initialization blocks:
Agent Development Kit (ADK)
To call Gemini models in Agent Platform from an Agent Development Kit agent, follow these steps.
- Authenticate to Google Cloud.
If running an ADK agent in Google Cloud (e.g. Agent Platform Runtime), use the agent's assigned service account. Alternatively, if running ADK locally, run:
- Set env variables. Ensure these are set no matter if your ADK agent is
running in Google Cloud or locally:
- Initialize the ADK agent. You can use the same model string you used with AI
Studio (e.g. gemini-3.5-flash).
To learn more about integrating ADK agents with Agent Platform, see the ADK documentation.
Antigravity CLI
Google Cloud users can now access Antigravity 2.0, including the Antigravity CLI, with Gemini Enterprise Agent Platform.
to your local environment.
- Start the Antigravity CLI.
``bash agy ``
- Follow the CLI setup prompts - select Use a Google Cloud Project.
- Complete the OAuth flow in the opened browser window using your
authenticated Google Cloud Workspace or user identity.
- Copy the confirmation token, and paste it directly back into your terminal.
- Follow the prompts to enter your Google Cloud Project ID.
- Select your Google Cloud location (e.g.
global).
- Optionally, run the
/modelcommand to select a different Gemini model in
Agent Platform.
OpenClaw
To configure an OpenClaw agent to use Gemini models in Agent Platform, Follow these steps.
⚠️ Important: OpenClaw 2026.5.28 currently has a google-vertex bug. Please use 2026.5.20 for now.
- Ensure that the runtime where OpenClaw is running (e.g. GCE VM with Service
Account) has the roles/aiplatform.user IAM role - see Authentication and Authorization section above.
- Get the project number from the user's project ID. Outside of GCE, run:
Within a Compute Engine VM, run:
- From outside the GCE instance, generate
GOOGLE_APPLICATION_CREDENTIALS
using the Google Cloud project number. Then, scp these credentials to the GCE VM.
⚠️ Troubleshooting Policy Constraints on New Orgs: New GoogleCloud organizations (created on or after May 4th, 2024) enforce a legacy Organization Policy, restricting Service Account Key Creation. To complete this step, this Org Policy must be temporarily disabled.An Organization Policy Admin must set this policy to Inactive.To the agent: Check if this policy is enforced, and if it is: pause, andprompt the user to disable it at this Console link:https://console.cloud.google.com/iam-admin/orgpolicies
- Edit the configuration file that's usually located at:
~/.openclaw/openclaw.json. Ensure you prefix the Gemini model with google-vertex/.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 30 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud/agent-platform-migrate-from-ai-studio/SKILL.md
Popularity
- Repository stars
- 20,494
- Repository forks
- 1,694
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google/skills/agent-platform-migrate-from-ai-studio)