https://github.com/firebase/genkit
An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
https://github.com/firebase/genkit
agents ai embedders genkit llm machine-learning multimodal rag vector-database
Last synced: 1 day ago
JSON representation
An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
- Host: GitHub
- URL: https://github.com/firebase/genkit
- Owner: firebase
- License: apache-2.0
- Created: 2024-04-29T22:04:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-12T14:51:07.000Z (8 months ago)
- Last Synced: 2025-05-12T15:23:09.135Z (8 months ago)
- Topics: agents, ai, embedders, genkit, llm, machine-learning, multimodal, rag, vector-database
- Language: TypeScript
- Homepage:
- Size: 136 MB
- Stars: 1,831
- Watchers: 46
- Forks: 252
- Open Issues: 469
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- trackawesomelist - Genkit GitHub (⭐611) - Official GitHub repository for Genkit. (Recently Updated / [Sep 15, 2024](/content/2024/09/15/README.md))
- awesome-mcp-servers - genkit
- awesome-mcp-servers - **genkit agent and data transformation framework**
- Awesome-MCP-Servers-directory - genkit - Agent and data transformation framework (Other Tools and Integrations)
- awesome-mcp-servers - firebase/genkit
- awesome-production-machine-learning - Genkit - Genkit is an open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. (Deployment and Serving)
- AiTreasureBox - firebase/genkit - 11-03_4888_1](https://img.shields.io/github/stars/firebase/genkit.svg)|An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.| (Repos)
- awesome-ai-agents - firebase/genkit - Genkit is an open-source framework that enables developers to build, integrate, and test AI-powered applications with a unified API, plugin architecture, and tools for observability and evaluation across various AI models and platforms. (Agent Integration & Deployment Tools / AI Agent Deployment)
- awesome-mcp-servers - genkit - An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms. (Table of Contents / AI Services)
- awesome-repositories - firebase/genkit - Open-source framework for building AI-powered apps in JavaScript, Go, and Python, built and used in production by Google (TypeScript)
- awesome-mcp-servers - firebase/genkit
- awesome-genkit - Genkit GitHub - Official GitHub repository for Genkit. (Follow / Dart - Official)
README


[Genkit](https://genkit.dev) is an open-source framework for building full-stack AI-powered applications, built and used in production by Google's Firebase. It provides SDKs for multiple programming languages with varying levels of stability:
- **JavaScript/TypeScript**: Production-ready with full feature support
- **Go**: Production-ready with full feature support
- **Python (Alpha)**: Early development with core functionality
It offers a unified interface for integrating AI models from providers like [Google](https://genkit.dev/docs/plugins/google-genai), [OpenAI](https://genkit.dev/docs/plugins/openai), [Anthropic](https://thefireco.github.io/genkit-plugins/docs/plugins/genkitx-anthropic), [Ollama](https://genkit.dev/docs/plugins/ollama/), and more. Rapidly build and deploy production-ready chatbots, automations, and recommendation systems using streamlined APIs for multimodal content, structured outputs, tool calling, and agentic workflows.
Get started with just a few lines of code:
```ts
import { genkit } from 'genkit';
import { googleAI } from '@genkit-ai/google-genai';
const ai = genkit({ plugins: [googleAI()] });
const { text } = await ai.generate({
model: googleAI.model('gemini-2.5-flash'),
prompt: 'Why is Firebase awesome?'
});
```
## Explore & build with Genkit
Play with AI sample apps, with visualizations of the Genkit code that powers
them, at no cost to you.
[Explore Genkit by Example](https://examples.genkit.dev)
## Key capabilities
Broad AI model support
Use a unified interface to integrate with hundreds of models from providers like Google,
OpenAI,
Anthropic, Ollama, and more. Explore, compare, and use the best models for your needs.
Simplified AI development
Use streamlined APIs to build AI features with
structured output, agentic tool calling, context-aware generation, multi-modal input/output, and more. Genkit handles the complexity of AI development, so you can build and iterate faster.
Web and mobile ready
Integrate seamlessly with frameworks and platforms including Next.js, React, Angular, iOS, Android, using purpose-built client SDKs and helpers.
Cross-language support
Build with the language that best fits your project. Genkit provides SDKs for JavaScript/TypeScript, Go, and Python (Alpha) with consistent APIs and capabilities across all supported languages.
Deploy anywhere
Deploy AI logic to any environment that supports your chosen programming language, such as Cloud Functions for Firebase,
Google Cloud Run, or third-party platforms,
with or without Google services.
Developer tools
Accelerate AI development with a purpose-built, local CLI and Developer UI. Test prompts and
flows against individual inputs or datasets, compare outputs from different models, debug with detailed execution traces, and use immediate visual feedback to iterate rapidly on prompts.
Production monitoring
Ship AI features with confidence using comprehensive production monitoring. Track model performance, and request volumes, latency, and error rates in a purpose-built dashboard. Identify issues quickly with detailed observability metrics, and ensure your AI features meet quality and performance targets in real-world usage.
## How does it work?
Genkit simplifies AI integration with an open-source SDK and unified APIs that
work across various model providers and programming languages. It abstracts away complexity so you can focus on delivering great user experiences.
Some key features offered by Genkit include:
* [Text and image generation](https://genkit.dev/docs/models)
* [Type-safe, structured data generation](https://genkit.dev/docs/models#structured-output)
* [Tool calling](https://genkit.dev/docs/tool-calling)
* [Prompt templating](https://genkit.dev/docs/dotprompt)
* [Persisted chat interfaces](https://genkit.dev/docs/chat)
* [AI workflows](https://genkit.dev/docs/flows)
* [AI-powered data retrieval (RAG)](https://genkit.dev/docs/rag)
Genkit is designed for server-side deployment in multiple language environments, and also provides seamless client-side integration through dedicated helpers and [client SDKs](https://genkit.dev/docs/firebase).
## Implementation path
1
Choose your language and model provider
Select the Genkit SDK for your preferred language (JavaScript/TypeScript, Go, or Python (Alpha)). Choose a model provider like Google Gemini or Anthropic, and get an API key. Some providers, like Vertex AI, may rely on a different means of authentication.
2
Install the SDK and initialize
Install the Genkit SDK, model-provider package of your choice, and the Genkit CLI. Import the Genkit and provider packages and initialize Genkit with the provider API key.
3
Write and test AI features
Use the Genkit SDK to build AI features for your use case, from basic text generation to complex multi-step workflows and agents. Use the CLI and Developer UI to help you rapidly test and iterate.
4
Deploy and monitor
Deploy your AI features to Firebase, Google Cloud Run, or any environment that supports your chosen programming language. Integrate them into your app, and monitor them in production in the Firebase console.
## Get started
- [JavaScript/TypeScript quickstart](https://genkit.dev/docs/get-started)
- [Go quickstart](https://genkit.dev/go/docs/get-started-go)
- [Python quickstart](https://genkit.dev/python/docs/get-started/) (Alpha)
## Development tools
Genkit provides a CLI and a local UI to streamline your AI development workflow.
### CLI
The Genkit CLI includes commands for running and evaluating your Genkit functions (flows) and collecting telemetry and logs.
- **Install:** `npm install -g genkit-cli`
- **Run a command, wrapped with telemetry, a interactive developer UI, etc:** `genkit start -- `
### Developer UI
The Genkit developer UI is a local interface for testing, debugging, and iterating on your AI application.
Key features:
- **Run:** Execute and experiment with Genkit flows, prompts, queries, and more in dedicated playgrounds.
- **Inspect:** Analyze detailed traces of past executions, including step-by-step breakdowns of complex flows.
- **Evaluate:** Review the results of evaluations run against your flows, including performance metrics and links to relevant traces.

## Try Genkit in Firebase Studio
Want to skip the local setup? Click below to try out Genkit using [Firebase Studio](https://firebase.studio), Google's AI-assisted workspace for full-stack app development in the cloud.
## Connect with us
- [**Join us on Discord**](https://discord.gg/qXt5zzQKpc) – Get help, share
ideas, and chat with other developers.
- [**Contribute on GitHub**](https://github.com/firebase/genkit/issues) – Report
bugs, suggest features, or explore the source code.
- [**Contribute to Documentation and Samples**](https://github.com/genkit-ai/) – Report
issues in Genkit's [documentation](https://github.com/genkit-ai/docsite), or contribute to the [samples](https://github.com/genkit-ai/samples).
[](https://deepwiki.com/firebase/genkit)
## Contributing
Contributions to Genkit are welcome and highly appreciated! See our [Contribution Guide](CONTRIBUTING.md) to get started.
## Authors
Genkit is built by [Firebase](https://firebase.google.com/) with contributions from the [Open Source Community](https://github.com/firebase/genkit/graphs/contributors).