Gemini CLI Extension: Genkit — AI Framework Development
Gemini CLI extension for Firebase Genkit. Build AI-powered features with flows, prompts, retrievers, and model integration.
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.
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.
How to use
- Install the extension with
gemini extensions install genkit. - Open your Genkit project in the terminal and use the Gemini CLI as usual.
- The extension activates automatically when Genkit-related tasks are detected.
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
Related on TokRepo
- AI tools for coding -- AI coding assistants and extensions
- Prompt library -- Reusable AI prompts and skill definitions
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
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.
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.
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.
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.
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)
- Genkit Extension GitHub— Official Gemini CLI extension for Genkit
- Genkit GitHub— Firebase Genkit is an open-source AI framework by Google
- Genkit Documentation— Genkit documentation for flows, prompts, and retrievers
Related on TokRepo
Source & Thanks
Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/genkit Part of Gemini CLI — ⭐ 99,400+
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.