Building AI applications with Genkit and the Gemini CLI just got even easier. Today, we’re excited to introduce the Genkit Extension for Gemini CLI – giving Gemini CLI deep knowledge of Genkit’s architecture, patterns, and tools so it can help you build, debug, and iterate on AI applications directly from your terminal. This is part of a broader collection of Gemini CLI extensions launching today that are sure to enhance your AI-assisted development workflow.
Install the Genkit Extension for Gemini CLI with the following command:
gemini extensions install https://github.com/gemini-cli-extensions/genkit
Shell
What is the Genkit Extension?
The Genkit Extension is an official Gemini CLI extension that provides deep integration between Gemini CLI and your Genkit project. By bundling Genkit’s MCP (Model Context Protocol) server with specialized context files, this extension gives Gemini CLI a comprehensive understanding of how to work with the Genkit SDKs.
When you install this extension, Gemini CLI gains access to:
- Genkit MCP Tools: Direct integration with Genkit’s development tools
- Context-Aware Assistance: Understanding of Genkit concepts, best practices, and workflows
- Intelligent Code Generation: AI assistance tailored specifically for Genkit application development
Key Features
Genkit-Specific MCP Tools
The extension provides several powerful tools that connect Gemini CLI directly to your Genkit application:
get_usage_guide:Get language-specific Genkit usage instructions and best practices before implementing AI featureslookup_genkit_docs:Access up-to-date, language-specific Genkit documentation right from your chatlist_flows:Discover and explore the flows defined in your current Genkit apprun_flow:Execute flows directly for debugging and analysis purposesget_trace:Analyze OpenTelemetry traces step-by-step to understand flow execution
Intelligent Development Assistance
With the Genkit extension installed, Gemini CLI understands Genkit’s architecture and can help you:
- Add new AI features: Generate AI functionality tailored to your specific use case with proper Genkit patterns
- Debug applications: Analyze traces and troubleshoot issues with context-aware suggestions
- Follow best practices: Ensure your code follows Genkit’s recommended patterns and conventions
Seamless Workflow Integration
The extension is designed to work with your existing Genkit development workflow. It understands your project structure, respects your chosen providers (with a preference for Google Gen AI when starting new projects), and integrates smoothly with the Genkit Developer UI.
Getting Started
Installing the Genkit extension is straightforward:
Prerequisites
Before installing the extension, make sure you have the Gemini CLI installed.
Installation
- Install the extension:
gemini extensions install https://github.com/gemini-cli-extensions/genkit
Shell
2. The extension will automatically configure Gemini CLI with Genkit-specific knowledge and tools.
Usage Examples
Once installed, you can start leveraging the extension immediately:
Create a new flow:
> Write a flow that generates a structured workout program based on goals, experience, and time
Shell
When you run this prompt in the Gemini CLI, you’ll see it referencing the latest Genkit development guidance and documentation to write accurate code and follow best practices.
> Help me understand why my flow is returning inconsistent results
Shell
The extension ensures that Gemini CLI provides responses that are specifically tailored to Genkit’s patterns, use the appropriate APIs, and follow established best practices.
Impact on Your Development Workflow
AI application development involves complex workflows – from designing flows and managing prompts to evaluating performance and debugging issues. The Genkit Extension bridges the gap between general AI assistance and specialized knowledge of Genkit’s ecosystem.
This integration represents a step toward more intelligent, context-aware development tools. Instead of generic code suggestions, you get assistance that understands Genkit’s architecture, knows about its capabilities, and can guide you through the specific challenges of building production AI applications.
Get Started Today
We’re excited to see how this integration enhances your Genkit development experience. Try out the extension and let us know what you think on the Genkit extension repository. If you find this extension useful, please consider starring the repository to show your support!
Ready to build smarter AI applications? Install the Genkit Extension today and experience AI-assisted development tailored specifically for Genkit.
Learn More:


