Research CLI is a Go command-line tool for Gemini Deep Research, fast grounded search, image generation, and local research history.
See MANUAL.md for the full usage guide.
gemini extensions install rmedranollamas/research-clicurl -fsSL -o install.sh https://raw.githubusercontent.com/rmedranollamas/research-cli/main/install.sh
less install.sh
chmod +x install.sh
./install.shgit clone https://github.com/rmedranollamas/research-cli.git
cd research-cli
go build -o research .
./research --helpexport RESEARCH_GEMINI_API_KEY="your-api-key"
research run "How does quantum entanglement work?"Key commands:
research run "query": long-running Deep Research usingdeep-research-preview-04-2026.research search "query": quick grounded answers usinggemini-3-flash-preview.research status <interaction_id>: poll an existing interaction.research generate-image "prompt" -o image.png: generate an image usinggemini-3-pro-image-preview.research list: view recent local task history.research show <id>: display a stored report.
RESEARCH_GEMINI_API_KEY: required Gemini API key.RESEARCH_MODEL: default Deep Research agent forrun.RESEARCH_DB_PATH: SQLite history database path. Defaults to~/.research-cli/history.db.RESEARCH_WORKSPACE: workspace for outputs. Defaults to the current directory.RESEARCH_POLL_INTERVAL: maximum polling interval in seconds. Defaults to10.RESEARCH_MCP_SERVERS: comma-separated remote MCP server URLs.GEMINI_API_BASE_URL: optional Gemini API base URL. HTTP is allowed only for loopback hosts.
Use RESEARCH_MODEL=deep-research-max-preview-04-2026 when you want the max Deep Research agent.
go test ./...
go vet ./...
go build ./...To inspect test coverage:
go test ./... -coverprofile=coverage.out
go tool cover -func=coverage.outThe Gemini extension packages skills/gemini-research/ and commands/research.toml, with a platform-specific Go binary placed at skills/gemini-research/scripts/research.