360 Secure SkillHub
360 安全技能中心

OpenClaw Antigravity Sync Skill

通过 Node 脚本调用 Google Cloud Code Assist API 获取 Google Antigravity 可用模型与配额,更新 openclaw.json 中的模型列表和默认主模型,写入前自动备份配置,需预先完成 openclaw Google Antigravity 认证。

分类:自动化
krnbwj
krnbwj
热度 49.32
最近更新 2026-05-11 17:26:07

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add krnbwj/openclaw-antigravity-sync
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
antigravity-sync
description
Automatically discover and configure available Google Antigravity models and quotas.
metadata
{"openclaw":{"skillKey":"antigravity-sync","runtime":"node","requires":{"auth":["google-antigravity"]},"invocation":{"policy":"on-demand","triggers":[{"pattern":"sync antigravity"},{"pattern":"update models"},{"pattern":"fetch google models"}]}}}

Antigravity Sync

This skill queries the Antigravity API to discover available models and their quotas, then updates your openclaw.json configuration to match.

Usage

  1. Ensure you are authenticated: Run openclaw models auth login google-antigravity if you haven't already.

  2. Run the sync script:

    node skills/antigravity-sync/sync.cjs
    
  3. Verify Configuration: The script will output the primary model it selected. Check openclaw.json to see the full list of configured models.

Behavior

  • Fetches fetchAvailableModels from Google Cloud Code Assist API.
  • Updates models.providers["google-antigravity"].models with all non-exhausted models.
  • Sets agents.defaults.model.primary to the API's recommended default model (or preserves your manual selection if valid).
  • Preserves existing auth settings.
  • Safety: Backs up openclaw.json before writing.