Gemini API CLI: Google’s New Tool Connects Claude Code and Codex to Gemini Models

Gemini API CLI: Google’s New Tool Connects Claude Code and Codex to Gemini Models

Ondřej Barták
Ondřej Barták
Entrepreneur and Programmer
26. 11. 2026
3 minutes reading · 43 views
Listen to the article
Audio version of the article
Gemini API CLI: Google’s New Tool Connects Claude Code and Codex to Gemini Models

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.

Advertisement

Content created with help from UpTier.

SEO and GEO on autopilot. UpTier’s multi-agent systems write and optimize content for search engines and AI answers.

Discover UpTier ↗

Category:AI
Did you enjoy this article?
Discover more interesting posts on our blog
Back to blog

Related posts

Anthropic CEO Delays New Model Training and Calls for Strict AI LawsAnthropic CEO Delays New Model Training and Calls for Strict AI Laws
Anthropic wants to slow the development of the most powerful AI with a waiting period and delayed training. Its CEO is also proposing a law mandating tests, oversight, and capability limits.
6 min read
2. 12. 2026
How to stop Google from training AI on your searchesHow to stop Google from training AI on your searches
Google now lets you keep search history enabled while preventing it from being used to train AI. Note that older data must be deleted manually.
3 min read
2. 12. 2026
NVIDIA introduces Model Risk Bench to assess AI model risksNVIDIA introduces Model Risk Bench to assess AI model risks
Model Risk Bench is designed to help developers and businesses identify and mitigate AI model risks. It includes more than 65 contributions from across the ecosystem.
1 min read
2. 12. 2026
Přihlaste se k odběru našeho newsletteru
Zůstaňte informováni o nejnovějších příspěvcích, exkluzivních nabídkách, a aktualizacích.
CodedTrip

Operated by CodedTrip LLC, USA.

YouTube
TikTok