happy gemini command starts a Gemini-powered AI agent using Google’s Gemini models for coding assistance and task automation.
Syntax
Description
Gemini provides AI-powered coding assistance using Google’s advanced language models. Features include:- Code generation and refactoring
- Natural language task execution
- Mobile control and remote sessions
- Google Workspace integration
- Configurable models and projects
You need to authenticate with Google first using
happy connect gemini.Commands
Start Gemini Agent
Session origin indicator. Options:
daemon or terminal. Internal useModel Management
Set Model
Model name to use. Available options:
gemini-2.5-pro(default, most capable)gemini-2.5-flash(faster, efficient)gemini-2.5-flash-lite(lightweight)
Get Model
Project Management
Set Google Cloud Project
Your Google Cloud Project ID (required for Workspace accounts)
Get Project
Setup
1. Connect Google Account
2. Configure Model (Optional)
gemini-2.5-pro if not configured.
3. Set Project ID (Workspace Only)
If you’re using a Google Workspace account:Find your project ID in the Google Cloud Console. See the Workspace authentication guide for details.
Examples
Start Gemini Session
Configure Model
Setup for Workspace Account
Check Configuration
Output
When you start Gemini, you’ll see an interactive terminal interface:Configuration Files
Model Configuration
Model settings are stored in:~/.gemini/config.json~/.config/gemini/config.json(alternative location)
Project Configuration
Google Cloud Project settings:OAuth Credentials
Google OAuth tokens are stored in:~/.gemini/oauth_creds.json
happy connect gemini.
Environment Variables
Override the model configuration
Override the project configuration
Features
Permission Modes
Gemini supports the same permission modes as other agents:- default: Ask before executing
- effective: Auto-approve safe operations
- bypassPermissions: Auto-approve all
Reasoning Display
Gemini shows its thought process:Diff Tracking
File modifications are tracked and displayed:Session Resume
Gemini automatically maintains conversation context across turns.Troubleshooting
Authentication Required Error
If you see “Authentication required”:Invalid Model Error
If you specify an invalid model:Connection Status
Check if Gemini is properly connected:Token Expired
If your OAuth token expires:View Logs
~/.happy/logs/ for detailed error information.
Model Comparison
| Model | Speed | Capability | Best For |
|---|---|---|---|
| gemini-2.5-pro | Slower | Highest | Complex tasks, reasoning |
| gemini-2.5-flash | Fast | High | Most coding tasks |
| gemini-2.5-flash-lite | Fastest | Good | Simple queries, quick edits |
Related Commands
- happy connect - Connect Google account
- happy acp - Alternative way to run Gemini
- happy codex - OpenAI-powered agent
- happy sandbox - Configure sandboxing
- happy doctor - System diagnostics
Gemini uses your Google account for authentication. Usage may be subject to Google’s API quotas and pricing.