SkillsMar 29, 2026·1 min read

Gemini CLI Extension: Genkit — AI Framework Development

Gemini CLI extension for Firebase Genkit. Build AI-powered features with flows, prompts, retrievers, and model integration.

TL;DR
This Gemini CLI extension adds Firebase Genkit capabilities for building AI-powered features with flows, prompts, retrievers, and model integration.
§01

What it is

This is an official Gemini CLI extension that adds Firebase Genkit AI framework development capabilities to the Gemini command-line tool. It enables building AI-powered features using flows, prompts, retrievers, and model integration directly from the terminal.

The extension targets developers using Google's AI ecosystem who want Gemini CLI to understand Genkit project structure, APIs, and best practices when assisting with code generation.

§02

How it saves time or tokens

Once installed, the extension automatically activates when the Gemini agent detects Genkit-related tasks. It provides context about Genkit's flow definitions, prompt management, retriever patterns, and model configuration without requiring the developer to paste documentation into every conversation.

The extension is maintained by Google's Gemini team, so it stays current with Genkit API changes.

§03

How to use

  1. Install the extension with gemini extensions install genkit.
  2. Open your Genkit project in the terminal and use the Gemini CLI as usual.
  3. The extension activates automatically when Genkit-related tasks are detected.
§04

Example

# Install the Genkit extension
gemini extensions install genkit

# Use Gemini CLI in a Genkit project
cd my-genkit-project
gemini 'Create a new flow that summarizes documents using RAG'

# The agent generates Genkit-specific code:
# - defineFlow() with input/output schemas
# - retriever integration
# - prompt template with model binding
§05

Related on TokRepo

§06

Common pitfalls

  • The extension requires Gemini CLI to be installed first. It does not work with other AI coding tools like Claude Code or Cursor.
  • Genkit project structure must follow standard conventions (genkit.config.ts, flows directory) for the extension to activate correctly.
  • The extension provides coding guidance but does not run or deploy Genkit applications. You still need the Genkit CLI (genkit start) for local development and testing.

Frequently Asked Questions

What is Firebase Genkit?+

Firebase Genkit is an open-source AI framework by Google for building AI-powered features in applications. It provides abstractions for flows (multi-step AI pipelines), prompts, retrievers (for RAG), and model integration. It supports Node.js and Go.

Does this extension work with Claude Code or Cursor?+

No. This is specifically a Gemini CLI extension. It integrates with the gemini command-line tool only. For other AI coding assistants, look for equivalent skills or rules designed for those platforms.

How do I update the extension?+

Run gemini extensions update genkit to pull the latest version. The extension is maintained by Google's Gemini CLI Extensions organization and updated alongside Genkit releases.

What AI models does Genkit support?+

Genkit supports Google Gemini models natively and provides plugin interfaces for OpenAI, Anthropic, and Ollama models. The model abstraction lets you swap providers without changing flow logic.

Can I use this extension for existing Genkit projects?+

Yes. The extension works with both new and existing Genkit projects. It reads your project configuration and provides context-aware assistance based on your existing flows, prompts, and model setup.

Citations (3)
🙏

Source & Thanks

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/genkit Part of Gemini CLI — ⭐ 99,400+

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets