OpenClaw Vertex Credit-Safe Setup
Use this skill when a user wants to configure Google Vertex AI for OpenClaw from scratch and wants to minimize billing mistakes.
Goal
Set up Vertex AI in a way that:
- - uses a Google Cloud project
- uses Vertex AI, not Gemini API direct access
- prefers service-account JSON for first-time setup
- keeps model routing on INLINECODE0
- validates with one tiny request before wider use
- explicitly checks billing / credits after the test
Use this skill when
- - the machine is a fresh or mostly fresh OpenClaw setup
- the user wants to use Google free credits or trial credits safely
- the user is unsure whether to use ADC, API keys, or service accounts
- the user wants a repeatable first-time setup process
- the user wants to avoid accidental extra spend from the wrong provider path
Required inputs
- - target Google Cloud project ID
- confirmation that billing / credits are attached to that project
- a local path where a service-account JSON file may be stored
- permission to inspect current OpenClaw config files
Workflow
- 1. Audit the current machine state.
- Confirm the target Google Cloud project and billing intent.
- Prefer a new service-account JSON path for first setup.
- Configure OpenClaw to use only
google-vertex/... models for this setup. - Run one minimal test request.
- Tell the user exactly what to check in Google Cloud Billing.
- Only after billing looks correct should broader rollout happen.
Guardrails
- - Do not present Gemini API direct setup as equivalent to Vertex AI setup.
- Do not say setup is complete before the minimal test.
- Do not say billing is correct unless the user checks the billing console.
- Do not reuse ambiguous old auth state without stating it.
- Do not broaden rollout across many agents until the tiny test is confirmed.
Preferred first-time auth path
For first-time setup, prefer:
- - Google Cloud project
- Vertex AI API enabled
- dedicated service account
- dedicated service-account JSON file
Do not default to:
- - Gemini API key
- mixed
google/... and google-vertex/... models - unclear old ADC state
- “it worked once on this machine” assumptions
Model routing rules
When configuring models, keep them on the Vertex provider path only:
- - INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
Do not silently substitute:
- - INLINECODE8
- Gemini API direct routes
- partner-model assumptions when the user explicitly wants the safest likely credit-covered path
Required report format
Return:
- - current machine state
- current Google path in use
- target project
- auth method
- JSON path
- configured
google-vertex/... models - minimal test result
- billing checks to perform next
Reference
For a compact checklist, read references/vertex-first-setup-checklist.md.
OpenClaw Vertex 信用安全设置
当用户希望从头配置适用于 OpenClaw 的 Google Vertex AI,并希望最大限度减少计费错误时,使用此技能。
目标
以如下方式设置 Vertex AI:
- - 使用 Google Cloud 项目
- 使用 Vertex AI,而非直接访问 Gemini API
- 首次设置优先使用服务账号 JSON
- 将模型路由保持在 google-vertex/... 上
- 在广泛使用前,先通过一次小型请求进行验证
- 测试后明确检查计费/信用额度
使用此技能的场景
- - 机器是全新或基本全新的 OpenClaw 设置
- 用户希望安全使用 Google 免费信用额度或试用信用额度
- 用户不确定应使用 ADC、API 密钥还是服务账号
- 用户希望获得可重复的首次设置流程
- 用户希望避免因错误提供者路径而产生意外额外费用
必需输入
- - 目标 Google Cloud 项目 ID
- 确认该项目已关联计费/信用额度
- 可存储服务账号 JSON 文件的本地路径
- 检查当前 OpenClaw 配置文件的权限
工作流程
- 1. 审计当前机器状态。
- 确认目标 Google Cloud 项目及计费意图。
- 首次设置优先使用新的服务账号 JSON 路径。
- 配置 OpenClaw 仅使用 google-vertex/... 模型进行此设置。
- 运行一次最小测试请求。
- 明确告知用户应在 Google Cloud 计费中检查哪些内容。
- 仅在计费确认无误后,才进行更广泛的部署。
防护措施
- - 不得将 Gemini API 直接设置等同于 Vertex AI 设置。
- 在完成最小测试前,不得声称设置已完成。
- 除非用户检查了计费控制台,否则不得声称计费正确。
- 不得在未说明的情况下重用模糊的旧认证状态。
- 在小型测试确认前,不得将部署扩展到多个代理。
首选首次认证路径
对于首次设置,首选:
- - Google Cloud 项目
- 已启用 Vertex AI API
- 专用服务账号
- 专用服务账号 JSON 文件
不要默认使用:
- - Gemini API 密钥
- 混合使用 google/... 和 google-vertex/... 模型
- 不明确的旧 ADC 状态
- “此机器上曾成功运行过”的假设
模型路由规则
配置模型时,仅保留在 Vertex 提供者路径上:
- - google-vertex/gemini-3.1-pro-preview
- google-vertex/gemini-3-pro-preview
- google-vertex/gemini-2.5-pro
- google-vertex/gemini-2.5-flash
不得静默替换为:
- - google/...
- Gemini API 直接路由
- 当用户明确希望使用最安全且可能覆盖信用额度的路径时,不得使用合作伙伴模型假设
必需的报告格式
返回:
- - 当前机器状态
- 当前使用的 Google 路径
- 目标项目
- 认证方法
- JSON 路径
- 已配置的 google-vertex/... 模型
- 最小测试结果
- 下一步需执行的计费检查
参考
如需紧凑的检查清单,请阅读 references/vertex-first-setup-checklist.md。