Tools
Google Antigravity Auth Custom
Custom OpenClaw google-antigravity OAuth plugin using user-owned GCP credentials
Configuration Example
{
"plugins": {
"load": {
"paths": [
"/root/.openclaw/workspace/plugins/google-antigravity-auth"
]
},
"entries": {
"google-antigravity-auth": {
"enabled": true,
"config": {
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}
}
}
}
}
README
# OpenClaw Google Antigravity Auth (Custom)
[](./README.md)
[](./README.zh-CN.md)
[](https://github.com/yuanyang749/openclaw-google-antigravity-auth-custom/commits/main)
Custom OpenClaw plugin for `google-antigravity` OAuth using **your own** Google OAuth client credentials.
中文文档: [README.zh-CN.md](./README.zh-CN.md)
## Why
The legacy `google-antigravity-auth` path was removed from upstream releases. This plugin keeps an opt-in, self-managed flow using your own `clientId` and `clientSecret`.
## Repository Structure & What Each File Does
- `index.ts` - Plugin runtime implementation (registers provider, OAuth flow, token exchange, callback handling).
- `openclaw.plugin.json` - Plugin manifest + config schema (`clientId`, `clientSecret`).
- `README.md` - English usage guide.
- `README.zh-CN.md` - Chinese usage guide.
## Quick Start (End-to-End)
1. Put this plugin directory under your workspace plugin path.
2. Add plugin path + entry into `~/.openclaw/openclaw.json`.
3. Fill your own `clientId` and `clientSecret`.
4. Restart gateway:
```bash
openclaw gateway restart
```
5. Run the authorization command (not a test command):
```bash
openclaw models auth login --provider google-antigravity
```
## Configure in `openclaw.json`
```json
{
"plugins": {
"load": {
"paths": [
"/root/.openclaw/workspace/plugins/google-antigravity-auth"
]
},
"entries": {
"google-antigravity-auth": {
"enabled": true,
"config": {
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}
}
}
}
}
```
## How to get `clientId` / `clientSecret`
1. Open Google Cloud Console: https://console.cloud.google.com/
2. Create/select a project.
3. Enable required APIs (at least OAuth + the APIs your workflow needs).
4. Go to **APIs & Services → OAuth consent screen** and complete required fields.
5. Go to **APIs & Services → Credentials → Create Credentials → OAuth client ID**.
6. Choose application type:
- Desktop app (recommended for local/CLI flows), or
- Web application (if you need explicit redirect URI management).
7. Create and copy:
- `clientId` (looks like `xxxx.apps.googleusercontent.com`)
- `clientSecret`
8. Fill them into `openclaw.json`:
```json
"config": {
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET"
}
```
## Security Notes
- Never commit real OAuth secrets to public repos.
- Use environment-specific secret injection for production.
- Rotate credentials immediately if leaked.
## Disclaimer / Risk Waiver
- This plugin is community-maintained and **not** an official Google/OpenClaw component.
- Using this plugin may violate third-party terms, trigger risk controls, or cause account restrictions/suspension.
- You are solely responsible for compliance, access control, billing impact, and account security.
- The authors/maintainers provide this plugin "as is" without warranty and are not liable for account loss, service interruption, or indirect damages.
## Authorization Command
```bash
openclaw models auth login --provider google-antigravity
```
tools
Comments
Sign in to leave a comment