Claudebot Setup with Free Models: Anti-Gravity, Gemini CLI & Quen - Detailed Guide
Key Concepts:
- Claudebot: A messaging gateway connecting AI models (Claude, Codeex) to platforms like Discord, WhatsApp, and iMessage.
- Anti-gravity: Google’s IDE offering a generous free tier with access to Claude Opus 4.5, Claude Sonnet 4.5, Gemini 3 Pro, and Gemini 3 Flash.
- Gemini CLI: An alternative method to access Gemini models through a command-line interface authentication flow.
- OAUTH (Open Authorization): A standard for delegated access, used for secure authentication with Anti-gravity and Quen.
- Rate Limits: Restrictions on the number of requests allowed within a specific timeframe, a consideration when using free tiers.
- Multi-Agent Routing: The ability to direct different types of requests to different AI models based on complexity or task type.
- Llama: A framework for running Large Language Models locally.
1. Introduction & Problem Statement
The video addresses the frequent question of accessing powerful AI models like Claude Opus 4.5 and Gemini 3 Pro with Claudebot without incurring costs. The presenter highlights Claudebot as a messaging gateway enabling text-based interaction with AI assistants across various platforms. The core issue is leveraging free model options within the Claudebot ecosystem.
2. Utilizing Anti-Gravity for Free Model Access
The primary solution presented is utilizing Google’s Anti-gravity IDE. Anti-gravity’s free tier provides access to:
- Claude Opus 4.5: Google’s most powerful model.
- Claude Sonnet 4.5: A faster, more cost-effective Claude model.
- Gemini 3 Pro: Google’s flagship Gemini model.
- Gemini 3 Flash: A faster, lighter Gemini model.
The presenter emphasizes that Claudebot has built-in plugins to seamlessly integrate with Anti-gravity, enabling access to these models without direct API key management. The authentication process is handled via the OAuth flow, simplifying setup.
3. Step-by-Step Setup: Anti-Gravity Integration
The following steps are outlined for integrating Anti-gravity with Claudebot:
- Installation:
npm install g-cloudbot@latest - Gateway Initialization:
cloudbot onboard --install-daemon(This starts the messaging gateway). - Plugin Enablement:
cloudbot plugins enable Google Anti-gravity O(Enables the Anti-gravity plugin). - Model Login & Default Setting:
cloudbot models o login provider Google Anti-gravity set default(Follow onscreen instructions for OAuth authentication).
The presenter stresses the ease of this process, noting that no manual configuration of client IDs or secrets is required as the plugin manages authentication.
4. Gemini CLI Integration
A similar process is used to integrate with Gemini models via the Gemini CLI:
- Plugin Enablement:
cloudbot plugins enable Google Gemini CLI O - Model Login & Default Setting:
cloudbot models o login provider Google Gemini CLI set default(Follow onscreen instructions for CLI authentication).
Tokens are stored locally on the gateway host through the CLI login flow.
5. Account Management & Rate Limit Mitigation
A key pro-tip is the ability to add multiple accounts to Claudebot. This allows for automatic rotation between accounts when rate limits are reached, effectively multiplying available resources. Adding accounts is achieved by repeating the login command with different credentials.
6. Model Verification & Selection
- Model Listing:
cloudbot models listdisplays all available models from configured providers, confirming successful integration. - Default Model Setting:
cloudbot model set provider/model(e.g.,Google anti-gravity/claude opus45) allows users to specify a default model for different tasks. Gemini Flash is recommended for quick tasks, while Claude Opus is preferred for complex coding.
7. Quen Portal Integration
The presenter introduces Quen as another option for free model access, offering:
- Quen Coder Model: A coding-focused model.
- Quen Vision Model: An image analysis model.
Setup involves:
- Plugin Enablement:
cloudbot plugins enable Quenportal O - Model Login & Default Setting:
cloudbot models o login provider Quenportal set default(OAuth authentication).
8. Messaging Platform Setup & Gateway Monitoring
- Channel Login:
cloudbot channels loginguides users through connecting messaging platforms like Discord, WhatsApp, and Telegram. - Gateway Access: The default gateway runs on
localhost:18789, providing a browser-based interface for monitoring conversations, usage statistics, and managing connections.
9. Multi-Agent Routing Explained
Claudebot’s multi-agent routing feature intelligently directs requests to the most appropriate model. For example, simple questions might be handled by Gemini Flash, while complex coding tasks are routed to Claude Opus, optimizing resource utilization.
10. Advanced Configuration & Customization
- Custom Providers: Claudebot supports custom providers, allowing integration with personal API access or local models (e.g., via Llama). Local models are automatically detected on the default port.
- Configuration File: The configuration file (
~/.cloudbot.clawbot/cloudbot.json) allows for advanced customization, including allow lists, group mention rules, and other settings.
11. Conclusion & Takeaways
The presenter summarizes the process: install Claudebot, enable desired plugins (Anti-gravity, Gemini CLI, Quen), follow the setup instructions, and enjoy access to powerful AI models. The setup is estimated to take 5-10 minutes. The presenter highlights the generous rate limits of the Anti-gravity free tier and encourages viewers to share their thoughts and subscribe.
Notable Quote:
“You get access to Claude Opus 4.5, Gemini 3 Pro, and Quen models. The setup takes maybe 5 to 10 minutes and then you have a fully functional AI assistant that you can talk to from Discord or WhatsApp or wherever you configure it.” – Presenter, summarizing the benefits of the setup.
AI summaries can miss context or contain errors. Check important details against the original video.