Google has released the Gemini API CLI, a small command-line program that gives AI agents direct access to Gemini models. It is not a new programming assistant, but an add-on for existing ones. It is an experimental release, so even minor updates may change features that your scripts depend on.
The new tool was announced by Philipp Schmid of Google AI Studio, who said it only needs to be connected to your existing agent. He specifically mentioned Claude Code, Codex, Antigravity, Cursor, OpenClaw, and Hermes. Google is thus opening its software to competing platforms as well.
An intermediary between the agent and Gemini
Your agent can run terminal commands, and this program gives it access to Gemini models. This means no one has to manually write API calls or add new libraries to the project.
Google describes it as a stateless, dependency-free client that works in the terminal, in scripts, and in automated processes. It remembers nothing between individual commands, and each command represents a single call. You send in a prompt and receive a file path, transcript, analysis, or task ID in return.
This simplicity is intentional. In the documentation, Google openly describes what agents have struggled with until now. Images and audio encoded as text filled up their memory, while interactive prompts blocked their execution. Outdated training data also led them to invent flags that did not exist at all.
The solutions are subtle but clever. Commands that create media save the file to disk and output only its path, preventing binary data from entering the agent's memory. The agent can also request a tree of all commands or the exact request format instead of guessing. Before actual execution, it can also test the entire call in a dry run, with credentials hidden in the preview.
From images to background research
The program's scope is broader than you might expect from a command-line tool. It can create and edit images, convert text to speech—including dialogue between two speakers—compose music, and generate video clips. It can also analyze PDFs, images, audio, video, spreadsheets, and public YouTube links. It can also create transcripts with speaker labels and timestamps.
In addition, it can delegate tasks to Google's managed agents, such as the Deep Research agent. It runs in the background, and the program returns a task ID. Meanwhile, your agent can work on something else and check the task status at any time or cancel it.
Installation requires a single command on macOS, Linux, and Windows. You then only need to enter an API key, which can be stored in the system keychain. Each command returns a typed exit code. This allows a script to immediately determine whether authentication, syntax, or the call itself failed without having to decipher error messages.
Weak points of the experimental release
Google warns that this is an experimental release and that minor updates may change behavior that previously worked. For automated environments, it therefore recommends pinning a specific version rather than always downloading the latest one.
You should also pay attention to file sizes. Files up to approximately 14 MB can be passed directly in a command. Larger files must first be uploaded separately and are automatically deleted after 48 hours.
The technology itself also has limitations. The tool supports standard requests, streaming responses, and background queries, but it cannot handle real-time bidirectional communication. For live voice or video, you need to use a different interface.
The final consideration is the API key, which Google explicitly identifies as sensitive information. In automated processes, the company recommends injecting it from a password vault and never uploading it to a repository. If you do not save it in the system keychain, it remains in a standard configuration file.



