1. Plugin Configuration
beeswitch docs
  • Plugin Configuration
    • API Relay Setup
    • Claude Code for VS Code Tutorial
    • Claude Code Installation and Usage Guide
    • Gemini CLI Configuration and Usage Guide
    • Codex CLI Configuration Guide
    • OpenCode Integration Configuration Guide
    • N8N Workflow Relay API Usage Guide
  • List Models
    • Models (list models)
      GET
  • OpenAI Format (Supports Major Official Provider Models)
    • Chat (Responses)
      • Create Web Search
      • Create Model Response (GPT-5 Reasoning Enabled)
      • Create Function Call
      • Create Model Response
      • Create Function Call
      • Create Model Response (Streaming)
      • Create Model Response (Control Reasoning Length)
    • ChatGPT APIs
      • ChatGPT Audio
        • Create Video
        • Speech-to-Text gpt-4o-transcribe
        • Create translation (not supported)
        • Speech-to-Text whisper-1
        • Speech-to-Text gpt-4o-transcribe
        • Create speech gpt-4o-mini-tts
        • Create translation (not supported)
      • ChatGPT Chat
        • List Models
        • Create Video with Image
        • Continuously modify and generate videos
        • Create chat picture recognition (streaming) best64
        • Official N test
        • Create Structured Output
        • Control Reasoning Effort
        • Create Chat Function Call
        • deepseek-ocr recognition
        • Create Chat Completion (Non-streaming)
      • ChatGPT Completions
        • Create Completion
    • Images
      • Modify pictures (images)
      • Create Chat Completion (Streaming)
      • Create chat completion qwen-mt-turbo
      • Create chat completion deepseek v3.1 thinking level (streaming)
    • Audio
      • Speech recognition(audio)
      • Speech synthesis (audio)
      • Official Function Calling
      • Create a chat creation graph (non-streaming)
    • Embeddings
      • Text Embeddings
  • Anthropic Format
    • Chat
      POST
    • Chat (prompt cache)
      POST
    • Streaming Response
      POST
    • Chat (Deep Reasoning)
      POST
    • Tool Calling (Function Call)
      POST
    • Tool Calling (MCP) - Pending Support
      POST
    • Analyze Image
      POST
  • Google Gemini APIs
    • Native Format
      • Text-to-Image (Aspect Ratio + Clarity Controls)
      • Generate Image
      • Text Generation
      • Text Generation (Streaming)
      • Text Generation + Reasoning (Streaming)
      • Image Generation
      • Formatted Output
      • Function Calling
      • Document Understanding
      • URL context [native format]
      • Code Execution
      • google search
      • Video Understanding
      • URL context
      • Video understanding-url [native format]
      • Imagen 4 under development
      • Audio Understanding
      • Embeddings
      • Chat
      • Edit Image
    • Image-to-Image Base64 Request (Officially Recommended)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Single Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-2.5-flash-image
      • Image Generation with gemini-2.5-flash-image (Aspect Ratio Control)
      • Image Understanding
    • Image-to-Image URL Request / OpenAI-style URL Request
      • Single Image-to-Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
    • Image-to-Image URL Request (Not Currently Supported)
      • Multi-Image Fusion with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
    • Image-to-Image URL Request, Gemini Format (Not Currently Supported)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
  • NanoBanana
    • Image-to-Image Base64 Request (Officially Recommended)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Single Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-2.5-flash-image
      • Image Generation with gemini-2.5-flash-image (Aspect Ratio Control)
      • Image Understanding
    • Gemini Request Format
      • Generate Image
      • Edit Image
    • OpenAI Request Format
      • Edit Image
      • OpenAI Image Format
  • Midjourney Format
    • Task Query API
    • Upload Image
    • Get Seed
    • Submit Imagine Task
    • Query Tasks by ID List
    • Face Swap
    • Execute Action
    • Submit Blend Task
    • Submit Describe Task
    • Submit Modal
    • Refresh URL
    • Edit Image
    • Query Task Status by Task ID
    • Get Seed for Task Image
  • Doubao Video Generation
    • Text-to-Video Example
    • Image-to-Video - First Frame
    • seedance-lite - First and Last Frames
    • Image-to-Video - Base64 Encoding
    • seedance-lite - Reference Image
    • Query Single Task
    • Query video generation task list-default
    • Query video generation task list - search multiple task IDs
  • Doubao Image Generation
    • doubao-seededit-3-0-i2i-250628
    • doubao-seedream-4-0-250828 - Text-to-Image
    • doubao-seedream-4-0-250828 - Image-to-Image
    • doubao-seedream-4-0-250828 - Multi-Image-to-Image
  • Jimeng AI
    • Jimeng AI - Image Generation
      • seedream-4.5
      • seedream-4.5 - Text-to-Image
      • seedream-4.5 - Image-to-Image
      • seedream-4.5 - Multi-Image-to-Image
    • Jimeng AI - Video Generation
      • Unified Task Submission API
      • Unified Query API
  • Rerank Models
    • Rerank
  • Text-to-Music (Suno)
    • Task Submission
      • Generate Song (Inspiration Mode)
      • Generate Song (Custom Mode)
      • Generate Song (Continuation Mode)
      • Generate Song (Singer Style)
      • Generate Song (Remix Uploaded Song)
      • Generate Song (Song Concatenation)
      • Generate Lyrics
      • Song Concatenation
    • Query APIs
      • Fetch Tasks in Batch
      • Query Single Task
  • Veo Video Generation
    • Latest Veo Video Generation (Recommended First)
      • Upload Image (Valid for One Day)
      • Create Video Generation Task - Text Only
      • Create Video Generation Task with Reference Image
      • Query Task Status
    • OpenAI Video Format (Recommended)
      • OpenAI Create Video with Image
      • OpenAI Query Task
      • OpenAI Download Video
    • Unified Video Format (Pending Unification)
      • Create Video
      • Create Video with Image
      • Query Task
      • Create Video (Reference Image)
  • Sora Video Generation
    • Official OpenAI Video Format (Recommended)
      • sora-2/sora-2-pro
        • OpenAI Query Task
        • OpenAI Download Video
        • OpenAI Create Video with Image
        • OpenAI Create Video (with Character)
        • OpenAI Edit Video
    • Chat Format
  • Kling (Kuaishou)
    • Text-to-Video
    • Image-to-Video
    • Query tasks (free)
  • Wan (Qwen)
    • Create Video with Image (Wan)
    • Query Video (Wan)
  • MinMax Video Generation
    • Text-to-Video Generation Task (MinMax)
    • Image-to-Video Task (MinMax)
    • Query Video Generation Task Status (MinMax)
    • Video Download (MinMax)
  • Vidu Video Generation
    • Vidu Generate Video
    • Vidu Query
  1. Plugin Configuration

Gemini CLI Configuration and Usage Guide

Gemini CLI Chinese User Guide#

Basic introduction#

Gemini CLI is an open source command-line AI tool provided by Google that brings the power of Gemini directly to your terminal. It provides lightweight access to Gemini, giving you the most direct path from prompt to model. By setting up a relay (proxy), you can use the Gemini CLI service normally when the network is restricted.

🚀 Why choose Gemini CLI?#

🧠 Powerful Gemini 2.5 Pro: access to 1 million token context windows
🔧 Built-in tools: basic Google search functions, file operations, Shell commands, web crawling
🔌 Extensible: Supports MCP (Model Context Protocol) for custom integration
💻 Terminal First: Designed for developers working in the command line
🛡️ Open Source: Apache 2.0 License

📦 Installation method#

Quick installation#

Run instantly using npx (no installation required)#

Install globally using npm#

Install using Homebrew (macOS/Linux)#

System requirements#

Node.js version 20 or higher
macOS, Linux or Windows

Configure the transfer station (agent) to use#

Method 1: Use configuration file (recommended)#

Step 1: Create configuration directory#

The global configuration file of Gemini CLI is located in the .gemini folder in the user's home directory. Please ensure that the directory exists. If it does not exist, please create it manually.
Windows: C:\Users\your-username\.gemini
macOS/Linux: ~/.gemini

Step 2: Create the .env file in the .gemini directory and add the following content:#

Parameter description:
GOOGLE_GEMINI_BASE_URL: WolfAI’s URL API address
GEMINI_API_KEY: the API token you created in the WolfAI console
GEMINI_MODEL: the model used (default is gemini-2.5-pro)

Step 3: Create the settings.json file in the .gemini directory with the following content:#

Method 2: Set environment variables#

Before using the relay station, you need to configure the following environment variables
macOS/Linux:
Note: You can also add these environment variables to .bashrc, .zshrc, or other shell configuration files so that they are automatically set every time you start the terminal.
Windows (PowerShell):

🚀 Quick Start#

Basic usage#

Start in the current directory#

Contains multiple directories#

Use a specific model#

Script non-interactive mode#

Get a simple text response:
Get structured JSON output:

Quick example#

Start a new project#

Analyze existing code#

📋 Main functions#

Code understanding and generation#

Query and edit large code bases
Use multimodal capabilities to generate new apps from PDFs, images or sketches
Debugging issues and troubleshooting using natural language

Automation and Integration#

Automate operational tasks such as querying pull requests or handling complex rebasing operations
New features using MCP server connection
Run non-interactively in scripts for workflow automation

Advanced features#

Get real-time information using built-in Google search
Conversation checkpoints to save and restore complex conversations
Custom context file (GEMINI.md) to customize behavior for your project

Common commands and function examples#

Explore the code base#

> Describe the main components of this system architecture
> What security mechanisms are in place?
> Provide step-by-step onboarding documentation for new developers

Working with existing code#

> Implement a first draft for GitHub issue #123
> Help me migrate this codebase to the latest Java version. Start by creating a plan

Automated workflow#

> Create a slide deck showing the past 7 days of git history, grouped by feature and team member
> Create a full-screen web app for a wall display showing our most-interacted-with GitHub issues

System interaction#

> Convert all images in this directory to PNG and rename them using the date from EXIF data
> Organize my PDF invoices by expense month

GitHub integration#

Integrate Gemini CLI directly into your GitHub workflow using the Gemini CLI GitHub Action:
Pull Request Review: Automated code review with contextual feedback and suggestions
Issue Classification: Automatically tag and prioritize GitHub issues based on content analysis
Help on demand: Mention @gemini-cli in issues and pull requests to get help with debugging, explanation, or task delegation
Custom Workflows: Build automated, scheduled, and on-demand workflows that fit your team’s needs

Troubleshooting#

If you encounter problems during use, you can refer to the following points:
1.
Check whether the environment variables are set correctly:
2.
Check whether the network connection is stable and whether the transfer station is accessible:
3.
Check if there is any error message output, these messages usually indicate the problem
4.
If using SOCKS proxy, make sure the proxy format is correct, for example socks5://<user>:<pass>@<proxy>:<port>
5.
Report a problem using built-in commands:

Release Notes#

Preview#

New preview builds are released every Tuesday UTC 23:59. Install using the preview tag:

Stable version (Stable)#

A new stable version is released every Tuesday UTC 20:00. Install using the latest tag:

Nightly#

Nightly releases are released daily UTC 00:00. Install using the nightly tag:

MCP server usage#

Configure the MCP server in ~/.gemini/settings.json to extend the Gemini CLI's custom tools:
> @github list my open pull requests
> @slack send today's commit summary to the #dev channel
> @database run a query to find inactive users

📚 Related resources#

Official Roadmap: See upcoming features
NPM Packages: package registry
GitHub Issues: Report a bug or request a feature
Security Recommendation: Security Updates

Uninstall#

If you need to uninstall Gemini CLI, please refer to the official uninstall guide.
Modified at 2026-07-09 10:12:46
Previous
Claude Code Installation and Usage Guide
Next
Codex CLI Configuration Guide
Built with