back
loading skill details...
Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript,…
Build AI-powered applications in Node.js/TypeScript using Genkit flows, models, and tools.
Supports multiple AI providers (Google AI, OpenAI, Anthropic, Ollama) with a unified API; defaults to Google AI if unspecified
Define flows with input/output schemas using Zod, call models, and chain operations with built-in streaming and error handling
Integrates with frameworks like Next.js, Firebase, and Express through dedicated plugins
Requires Genkit CLI v1.29.0+; use genkit docs:search and genkit docs:read to access authoritative documentation and troubleshoot errors
Genkit JS
Prerequisites
Ensure the genkit CLI is available.
Run genkit --version to verify. Minimum CLI version needed: 1.29.0
If not found or if an older version (1.x < 1.29.0) is present, install/upgrade it: npm install -g genkit-cli@^1.29.0.
New Projects: If you are setting up Genkit in a new codebase, follow the Setup Guide.
Hello World
import { z, genkit } from 'genkit';
import { googleAI } from '@genkit-ai/google-genai';don't have the plugin yet? install it then click "run inline in claude" again.