Wink Pings

Muse Connects to Gemini 4: 4 Steps to Add an Assistant That Does the Heavy Lifting

Apply for a key, install the CLI, configure it, and tell Muse when to call it. The free quota is limited, so get image generation and long-document analysis working first, then decide which tasks are worth switching over.

Muse can add another Gemini 4 assistant. It's not complicated—4 steps.

First, apply for a key. Open the API Key page in Google AI Studio, sign in with your Google account, and create a free API key. You need to be signed in to continue on this page, so don't look for the button while logged out.

Google AI Studio sign-in page

Second, install the CLI. The repository is at google-gemini/gemini-api-cli. It is a Go binary and runs on macOS, Linux, and Windows. On macOS and Linux, use:

curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash

Windows PowerShell:

iwr -useb https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.ps1 | iex

You can also use go install github.com/google-gemini/gemini-api-cli/cmd/gemini-api@latest, or download a precompiled package from Releases. After installing, put gemini-api on your PATH.

Release
License: Apache 2.0

Third, configure the key. Run this in your terminal:

gemini-api configure --api-key 你的Key

You can also use an environment variable temporarily:

export GEMINI_API_KEY=你的Key

After configuring, run gemini-api whoami once to see the current credential source. If you want to verify without going online first, use --dry-run.

Fourth, go back to Muse and tell it when to call Gemini. The source material says it plainly: call Gemini when needed to generate images for me, analyze long documents, or handle other tasks. To be more specific, you can give Muse an instruction like:

You can call gemini-api through the shell.
When you need to generate images, use gemini-api image; when analyzing PDFs or long documents, use gemini-api analyze; when transcribing audio or video, use gemini-api transcribe.
First look at --help or --usage to choose a command, and use --dry-run to preview a call when necessary.

This way, Muse handles daily work, and Gemini handles image generation and chewing through long documents. The CLI itself does not save conversation state; each call is independent and returns a file path or interaction ID, and Muse continues from there. The documentation also provides an install-skill command that can install agent skills into tools such as Claude Code, Codex, and Cursor, but the Muse integration in the source material does not require dealing with that layer first.

This CLI is positioned as adding a Gemini backend to an agent that already has shell access; Muse is just one way to connect it. What really changes is task routing—the model itself does not change.

Some users said they first used it to chew through a hundred-page document and the result was better than expected. Others mentioned that this approach saves money: outsource compute-heavy work like image generation and long documents to Gemini, and start with the free quota. One reminder here: the free quota is limited, so don't treat it as an unlimited outsourcing pool. Get the workflow working first, then decide which tasks are worth switching over.

The project source is on GitHub, and the API key is at Google AI Studio.

发布时间: 2026-11-28 17:26