Overview
Antigravity Manager provides first-class integration with OpenCode through automatic configuration sync and provider management.OpenCode integration was significantly enhanced in v4.1.16 with support for custom base URLs and environment variable-based configuration.
Prerequisites
- Antigravity Manager installed and configured
- OpenCode installed (
npm install -g opencode) - At least one active account in Antigravity
Configuration sync
Click Sync button
Antigravity will automatically:
- Generate
~/.config/opencode/opencode.json - Create
antigravity-managerprovider - Preserve existing Google/Anthropic providers
Windows users: Configuration path is
C:\Users\<username>\.config\opencode\Provider configuration
The sync creates anantigravity-manager provider with these properties:
Custom base URL
For Docker or remote deployments, set a custom base URL:Usage examples
Basic usage
Model variants
Antigravity supports OpenCode’s variant system:- High performance
- Balanced
- Cost-effective
Thinking models
Antigravity automatically handles thinking budget conversion between OpenCode’s format and Gemini’s internal format.
Configuration management
Clear configuration
Remove Antigravity configuration and legacy entries:antigravity-managerprovider- Legacy plugin configurations
- Temporary sync files
Restore from backup
If sync creates issues:opencode.json from automatic backup.
Manual configuration
You can also edit~/.config/opencode/opencode.json directly:
Docker/remote deployment
Docker Compose setup
For Docker Compose networks:- Set Custom Manager BaseURL:
http://antigravity:8045 - Sync configuration
Remote server
For servers on different machines:Troubleshooting
Provider not found
Provider not found
Problem:
Error: Provider 'antigravity-manager' not foundSolutions:- Verify sync completed successfully
- Check file exists:
~/.config/opencode/opencode.json - Run sync again from Antigravity UI
- Verify JSON syntax is valid
Connection refused
Connection refused
Problem:
ECONNREFUSED when calling modelsSolutions:- Verify Antigravity proxy is running
- Check base URL matches actual server address
- For Docker: use container name, not localhost
- Test with:
curl http://127.0.0.1:8045/health
Thinking budget errors
Thinking budget errors
Problem:
AI_UnsupportedFunctionalityError: 'thinking requires a budget'Solutions:- Upgrade to Antigravity v4.1.27 or later
- Verify thinking model names include
-thinkingsuffix - Check account supports thinking-capable models
- Review Antigravity logs for conversion details
Model not available
Model not available
Problem: Model listed but returns 404Solutions:
- Check model is available in Antigravity dashboard
- Refresh account quotas in Antigravity
- Verify model name spelling (case-sensitive)
- Check custom model mappings in Antigravity
Best practices
- Use automatic sync: Let Antigravity manage the configuration
- Multiple providers: Keep both
antigravity-managerand native providers for flexibility - Environment-specific URLs: Use custom URLs for dev/staging/production
- Regular updates: Re-sync after adding new models or accounts
- Backup configs: Antigravity creates automatic backups before each sync
Advanced features
Account export
When Sync accounts is enabled, Antigravity exports:- Display account information
- Show quota status
- Enable account-specific features