genkit is a free, open source machine learning infrastructure project written in TypeScript and released under Apache-2.0. It has 6,448 GitHub stars, 842 forks and 741 open issues, and was last pushed 6 hours ago. On this registry it ranks #25 of 57 tracked projects in Machine Learning Infrastructure, with 5 head-to-head comparisons available. It gained 6 stars over the last 3 tracked days.

What is genkit?

Genkit is an open-source framework for building full-stack, agentic AI applications, offering SDKs for JavaScript/TypeScript, Go, Python, and Dart, and it is built and used in production by Google's Firebase.

What it is

Genkit is an open-source framework, licensed under Apache-2.0 and hosted at genkit.dev, for building full-stack AI-powered applications. It lives in AI and machine learning infrastructure; its main repository is written in TypeScript and its topics cover agents, LLMs, embedders, multimodal input, RAG, and vector databases. It provides SDKs at different stability levels: JavaScript/TypeScript and Go are production-ready with full feature support, Python is in Beta, and Dart is in Preview with early core functionality.

The concrete problem Genkit solves is integration sprawl. Instead of writing and maintaining separate glue code for each model provider, developers use one unified interface reaching hundreds of models from Google, OpenAI, Anthropic, Ollama, and others. That interface covers multimodal content, structured outputs, tool calling, and agentic workflows, and extends into prompt templating, chat persistence, retrieval, and deployment, so an AI feature does not demand a different stack at every stage.

Key capabilities

  • A unified model interface across providers, used as const ai = genkit({ plugins: [googleAI()] }); and then ai.generate({ model: googleAI.model('gemini-flash-latest'), prompt: '...' }).
  • Streamlined APIs for structured, type-safe output generation, agentic tool calling, context-aware generation, and multi-modal input and output.
  • Feature modules for text and image generation, prompt templating with dotprompt, persisted chat interfaces, AI workflows (flows), and AI-powered data retrieval (RAG).
  • Cross-language SDKs with consistent APIs across JavaScript/TypeScript, Go, Python (Beta), and Dart (Preview).
  • A local CLI and Developer UI for testing prompts and flows against individual inputs or datasets, comparing model outputs, and debugging with detailed execution traces.
  • A production monitoring dashboard tracking model performance, request volume, latency, error rates, and observability metrics.
  • Integration helpers for Next.js, React, Angular, iOS, and Android, plus deployment to Cloud Functions for Firebase, Google Cloud Run, or third-party platforms, with or without Google services.

Who uses it and how

  • Product teams building production chatbots, automations, and recommendation systems that need one interface across several model providers.
  • Full-stack web developers in Next.js, React, or Angular, and mobile developers on iOS or Android, using the purpose-built client SDKs and helpers.
  • Teams deploying AI logic to Cloud Functions for Firebase or Google Cloud Run, including groups running on third-party platforms without Google services.
  • Polyglot engineering groups that pick JavaScript/TypeScript, Go, Python, or Dart and expect consistent APIs across those languages.
  • Developers evaluating before committing, through the free Explore Genkit by Example sample apps at examples.genkit.dev.

Getting started

Install the genkit package for the chosen language together with a provider plugin such as @genkit-ai/google-genai, then initialize with genkit({ plugins: [googleAI()] }) and call ai.generate. A local CLI and Developer UI support testing, and examples.genkit.dev offers sample apps to explore at no cost.

How it compares

No competing tools are named in these facts, so Genkit stands alone in this registry rather than being measured against listed alternatives. Its position here rests on an Apache-2.0 licence, four language SDKs at different stability levels, and provider support spanning Google, OpenAI, Anthropic, and Ollama.

When to use it — and when not to

A self-hoster must operate their own deployment target, whether Cloud Functions for Firebase, Google Cloud Run, or a third-party platform, because Genkit ships an SDK rather than a hosted runtime. Teams needing a fully stable Dart SDK, or Python in production today rather than in Beta, should wait or choose JavaScript/TypeScript or Go instead. The repository also carries 741 open issues, and the README excerpt truncates mid-sentence, so some details of intended use are not visible from the description alone.

project readme (upstream, from github) — read inline

Genkit logo Genkit logo

Genkit 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 (Beta): Wide feature support approaching production-readiness
  • Dart (Preview): Early development with core functionality

It offers a unified interface for integrating AI models from providers like Google, OpenAI, Anthropic, 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:

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-flash-latest'),
    prompt: 'What is the meaning of life?'
});

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

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, Python (Beta), and Dart (Preview) 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:

Genkit is designed for server-side deployment in multiple language environments, and also provides seamless client-side integration through dedicated helpers and client SDKs.

Implementation path

1 Choose your language and model provider Select the Genkit SDK for your preferred language (JavaScript/TypeScript, Go, Python (Beta), Dart (Preview)). 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

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.

Connect with us

readme truncated — read the full docs on github

Frequently asked questions

Is genkit free to use?

genkit is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does genkit do?

Open-source framework for building agentic apps in JavaScript, Go, Dart, and Python, built and used in production by Google

What is genkit written in?

genkit is primarily written in TypeScript. Its source is publicly available at https://github.com/genkit-ai/genkit, and it has 6,448 GitHub stars.