#vs code change agent
1 messages · Page 1 of 1 (latest)
If you mean switch “agent” in the OpenClaw TUI (running in your VS Code terminal):
- Change agent:
/agent <id>
(or press Ctrl+G for the agent picker)
If you mean force the model to Antigravity → Opus:
- Make sure the Antigravity auth plugin is enabled + you’re logged in:
openclaw plugins enable google-antigravity-auth
openclaw models auth login --provider google-antigravity --set-default
- See the exact Antigravity model id(s) available:
“Opus 4.5 used to work” is totally plausible — but the confusing bit is that “Opus 4.5” depends on which provider you were using.
1) Anthropic Opus vs Antigravity Opus are different model refs
- Anthropic (API key / Claude setup-token):
anthropic/claude-opus-4-5- Google Antigravity (OAuth plugin):
- usually not
.../claude-opus-4-5but something like google-antigravity/claude-opus-4-5-thinking(common)
So if you switched to Antigravity auth but kept typing the Anthropic model id, it’ll stop working / fall back / look “gone”.
2) Quick checks to run (these tell us exactly what broke)
In your VS Code terminal:
openclaw --version
openclaw models status --probe
openclaw models list --provider google-antigravity
- Set it as the default (persistent):
openclaw models set google-antigravity/claude-opus-4-5-thinking
- Or switch just for the current session (in TUI/Discord chat):
/model google-antigravity/claude-opus-4-5-thinking
Optional: pin a specific Antigravity OAuth profile for the session:
openclaw models list --provider google-antigravity
And in chat/TUI:
/model status
/model list
3) The most common “it used to work” breakages
- Model allowlist: you’ll see “Model is not allowed” if
agents.defaults.modelsis set and doesn’t include the one you’re selecting. Fix = pick from/model listor add it to the allowlist. - Antigravity plugin not enabled / auth expired:
models status --probewill show “missing/expired”.
If you paste the output of /model status (or the exact error you see), I can tell you in one glance whether it’s wrong model id, missing Antigravity login, or allowlist blocking.
/model google-antigravity/claude-opus-4-5-thinking@google-antigravity:default
(or @google-antigravity:<your-email> if that’s how the profile was created)
Docs: https://docs.openclaw.ai/tui • https://docs.openclaw.ai/cli/models • https://docs.openclaw.ai/tools/slash-commands
"Model Input Ctx Local Auth Tags
google-antigravity/gemini-3-flash text+image 1024k no yes default,configured
google-antigravity/claude-sonnet-4-5 text+image 195k no yes configured
google-antigravity/gemini-3-pro-low text+image 1024k no yes configured
google-antigravity/gemini-3-pro-high text+image 1024k no yes configured"
why opus 4.5 and opus 4.6 not listed? can you check in your documents? its available in antigravity but not in openclaw?
actually i have changed the model to gemini-3-flash and its still not responding. in discord it is just loading all the time!
That output is openclaw models list showing only “configured” models, not everything the provider can theoretically run.
Two key points from the OpenClaw side:
- Antigravity Opus uses a different model id
- In OpenClaw docs + the bundled Antigravity plugin, the Opus model is:
google-antigravity/claude-opus-4-6-thinking- So you won’t see
google-antigravity/claude-opus-4-5or.../claude-opus-4-6(without-thinking) as “the Opus choice” here.
Docs reference (Antigravity smoke set):
https://docs.openclaw.ai/help/testing (see the google-antigravity/claude-opus-4-6-thinking examples)
- To see if Opus is available but just not in your configured allowlist
Run:
openclaw models list --all --provider google-antigravity
Then try selecting it explicitly (TUI/Discord):
/model google-antigravity/claude-opus-4-6-thinking
If that replies with “Model … is not allowed”, it means your agents.defaults.models allowlist doesn’t include it yet. Add it, then restart the gateway:
openclaw config set 'agents.defaults.models["google-antigravity/claude-opus-4-6-thinking"]' '{ alias: "ag-opus" }' --json
# restart gateway after config edits
Paste what you get from openclaw models list --all --provider google-antigravity (and whether /model ...opus-4-6-thinking errors), and I can tell which case you’re in.
If Discord is “loading/thinking forever”, that’s usually not a model-picker issue — it means the Gateway started a run but never completed (stuck provider call, auth/probe hang, or an error loop).
Can you run these in your VS Code terminal and paste the output?
openclaw --version
openclaw status
openclaw channels status --probe
openclaw logs --tail 120
Two high-probability culprits given you’re using google-antigravity:
- Cloud Code Assist tool-schema rejection (Antigravity is strict). In logs you’ll see something like “invalid tool schema (400)”.
Quick mitigation: restrict tools for Antigravity, then restart:
openclaw config set 'tools.byProvider["google-antigravity"]' '{ profile: "minimal" }' --json
openclaw gateway restart
- Discord channel/guild allowlist/permissions (bot can “connect” but not actually reply where you’re testing). The
openclaw channels status --probeoutput + the logs will usually call this out.
Docs for the Discord allowlist gotcha (just in case): https://docs.openclaw.ai/gateway/troubleshooting#discord-doesnt-reply-in-my-server-even-with-requiremention-false-why
"Model Input Ctx Local Auth Tags
google-antigravity/claude-opus-4-5-thin... text+image 195k no yes
google-antigravity/claude-sonnet-4-5 text+image 195k no yes configured
google-antigravity/claude-sonnet-4-5-th... text+image 195k no yes
google-antigravity/gemini-3-flash text+image 1024k no yes configured
google-antigravity/gemini-3-pro-high text+image 1024k no yes default,configured
google-antigravity/gemini-3-pro-low text+image 1024k no yes configured
google-antigravity/gpt-oss-120b-medium text 128k no yes "
so that means opus 4.6 not yet integrated from openclaw even tho its available in antigravity itself directly?
Not necessarily.
Why Opus 4.6 isn’t showing in your list
openclaw models list is showing the model catalog OpenClaw currently has available for that provider (plus what you’ve configured/allowlisted). For Antigravity, the “Opus” model id OpenClaw expects is typically:
google-antigravity/claude-opus-4-6-thinking
…and that is referenced in OpenClaw docs as the recommended Antigravity Opus target (so it’s “integrated” on the OpenClaw side):
https://docs.openclaw.ai/help/testing (search for google-antigravity/claude-opus-4-6-thinking)
If it’s not appearing for you, it’s usually one of these:
- You’re on an older OpenClaw build/plugin where the Antigravity catalog didn’t include 4.6 yet.
- Your Antigravity account/project rollout doesn’t expose 4.6 (provider-side gating), so OpenClaw can’t list it.
The definitive test
Try selecting it directly (even if it’s not listed):
/model google-antigravity/claude-opus-4-6-thinking
- If it works → the picker/list is just incomplete/filtered.
- If it errors (unknown / not allowed / 404) → your current OpenClaw build or your Antigravity access doesn’t have it.
Separate issue: Discord “loading forever”
If it’s still “thinking” even on gemini-3-flash, do this in that channel:
/stop
/new
/thinking off
Antigravity can get wedged if the session history contains partial/unsigned thinking blocks; a fresh session + thinking off is the fastest unblock.
If you tell me what error you get from /model google-antigravity/claude-opus-4-6-thinking (or paste /model status), I can say which of the two cases you’re in.
"/model google-antigravity/claude-opus-4-6-thinking" is this a terminal command?
No — that /model ... is a chat command (send it as a message to the bot), not a shell/terminal command.
You have 3 places you can use it:
A) In Discord (in the channel where the bot is “loading”)
Send this as a normal message:
/model google-antigravity/claude-opus-4-6-thinking
B) In the OpenClaw TUI (VS Code terminal running openclaw tui)
Type the same thing into the TUI input box:
/model google-antigravity/claude-opus-4-6-thinking