Overview
Cherry Studio is a powerful AI chat client that supports multiple providers and advanced features. Antigravity Manager provides seamless integration with native support for web search citations and streaming responses.Antigravity v4.1.21 introduced comprehensive Cherry Studio support, including SSE event completion and web search citation display.
Prerequisites
- Antigravity Manager installed and running
- Cherry Studio installed (download here)
- At least one active account
Configuration
Start Antigravity proxy
- Open Antigravity Manager
- Navigate to API Proxy tab
- Enable the proxy server
- Verify port (default: 8045)
Add provider in Cherry Studio
- Open Cherry Studio settings
- Go to Providers or Models
- Add new custom provider:
- Name: Antigravity
- Base URL:
http://127.0.0.1:8045/v1 - API Key:
sk-antigravity - Protocol: OpenAI
Supported features
Chat completions
Basic chat works out of the box:- Routes to available accounts
- Handles streaming responses
- Manages quota protection
Extended thinking
Use thinking models for complex reasoning:- Adaptive thinking
- Fixed budget
Antigravity v4.1.21+ automatically converts Cherry Studio’s
thinking.type: "adaptive" to a fixed budget compatible with Gemini’s API.Web search with citations
Cherry Studio’s web search feature works seamlessly:- Enable web search in Cherry Studio chat
- Antigravity automatically:
- Injects Google Search tool
- Executes search queries
- Returns results with citations
- Displays source links natively
Image generation
Configure image generation models with custom parameters:Configure image settings
Multi-modal input
Cherry Studio supports image input:- Click image attachment icon
- Select image file
- Add text prompt
- Send message
- Image encoding (Base64)
- Multi-modal request formatting
- Protocol conversion to Gemini
Advanced configuration
Model-specific settings
Configure per-model parameters in Cherry Studio:- Chat model
- Thinking model
- Image model
maxOutputTokens limit
Cherry Studio may send very largemaxOutputTokens values (e.g., 128k) that exceed Gemini’s limits:
This is handled automatically - no configuration needed.
Troubleshooting
Empty responses with web search
Empty responses with web search
Problem: Web search returns no content in Cherry StudioFixed in: v4.1.21Solution:
- Upgrade Antigravity to v4.1.21 or later
- Restart both Antigravity and Cherry Studio
- Test web search again
Thinking mode 400 errors
Thinking mode 400 errors
Problem:
400 INVALID_ARGUMENT with thinking modelsFixed in: v4.1.21Solution:- Ensure Antigravity v4.1.21+
- Use
claude-sonnet-4-6-thinkingmodel name - Set thinking type to “adaptive” in Cherry Studio
- Antigravity automatically converts to compatible format
Connection errors
Connection errors
Problem: Cannot connect to AntigravitySolutions:
- Verify base URL:
http://127.0.0.1:8045/v1 - Check Antigravity proxy is running
- Test with:
curl http://127.0.0.1:8045/health - Check firewall settings
Image generation errors
Image generation errors
Problem: Image generation fails or times outSolutions:
- Check account has image generation quota
- Verify model name is
gemini-3-pro-image - Try smaller image sizes first
- Check Antigravity logs for detailed errors
- Ensure max body size is sufficient (100MB default)
Citations not appearing
Citations not appearing
Problem: Web search works but no citations shownSolutions:
- Verify Antigravity v4.1.21+
- Check Cherry Studio supports citation display
- Enable “Show sources” in Cherry Studio settings
- Review response format in debug logs
Performance tips
Model selection
- Fast responses: Use
gemini-3-flash - Best quality: Use
claude-sonnet-4-6 - Complex reasoning: Use thinking models
- Images: Use
gemini-3-pro-image
Quota management
- Monitor dashboard regularly
- Enable quota protection
- Use multiple accounts
- Set appropriate model routing
Response speed
- Keep Antigravity local (same machine)
- Use streaming for long responses
- Flash models for quick tasks
- Reduce
max_tokenswhen possible
Reliability
- Add multiple accounts for failover
- Enable automatic retry
- Configure rate limiting
- Monitor error rates
Best practices
- Use streaming: Enable streaming in Cherry Studio for better UX
- Configure max tokens: Set reasonable limits per model
- Enable web search selectively: Only when needed to save quota
- Monitor quotas: Check Antigravity dashboard regularly
- Test configurations: Verify settings work before heavy use
- Keep updated: Both Cherry Studio and Antigravity should be latest versions