!
Production integration docs · examples use router-api.mengbi-ai.net and a personal API key placeholder.
01 /
Prepare
Prepare Gemini CLI with a personal Mengbi Router key and a current model ID.
Prepare 1
Use the Gemini CLI configuration supported by your current installation.
npm install -g @google/gemini-cli
gemini02 /
Configure
Connect Gemini CLI to the endpoint that matches its supported protocol.
Configure 1
Use the Gemini CLI configuration supported by your current installation.
export GEMINI_API_KEY="sk-mengbi-xxxxxx"
export GOOGLE_GEMINI_BASE_URL="https://router-api.mengbi-ai.net"
export GEMINI_API_KEY_AUTH_MECHANISM="bearer"Configure 2
Use the Gemini CLI configuration supported by your current installation.