0n3
MCP servers · Z.ai (GLM) · MCP server

Connect Gemini CLI to Z.ai (GLM)

One line gives Gemini CLI your Z.ai (GLM) account as tools: 3 endpoints, chat, models, generate image, called with your own connection. No key in the prompt, a receipt for every call, revoke Gemini CLI's access alone any time.

Get the line for Gemini CLIConnect Z.ai (GLM) first

Three steps

  1. Create a free 0n3 account and connect Z.ai (GLM). Paste a key or sign in; it lands in your vault, encrypted.
  2. Install 0n3 into Gemini CLI. Google's helper in your Terminal. Paste one line.
  3. Ask Gemini CLI: whoami. Then: "Chat completion in Z.ai (GLM)".
Paste this in Terminal and press Enter
gemini mcp add --scope user --transport http 0n3 https://0n3.app/mcp -H "Authorization: Bearer <your 0n token>"

The line above carries a placeholder; 0n3.app/install mints a real key named for Gemini CLI and fills it in.

What Gemini CLI can then do in Z.ai (GLM)

Chat · Chat completions1
Chat completionPOST /chat/completions
Models · List available models1
List modelsGET /models
Generate image · Image generation1
Create an imagePOST /images/generations

Z.ai (GLM) in other AI clients

Claude Code + Z.ai (GLM)MCP server + skillClaude (desktop & claude.ai) + Z.ai (GLM)connectorChatGPT + Z.ai (GLM)connector · GPT actionGrok Bot (xAI) + Z.ai (GLM)custom connectorCodex CLI + Z.ai (GLM)MCP serverCursor + Z.ai (GLM)MCP serverVS Code (Copilot) + Z.ai (GLM)MCP serverWindsurf + Z.ai (GLM)MCP server

Gemini CLI with other apps

Hostinger363 endpointsPipedrive310 endpointsTelegram132 endpointsResend67 endpointsSquare57 endpointsLinkedIn50 endpointsSlack45 endpointseBay42 endpointsCRM35 endpointsFigma32 endpointsCloudConvert32 endpointsMicrosoft 36526 endpoints