genkit-secrets-manager
NewSecure API key and secrets management for Genkit - Google Secret Manager, AWS Secrets, HashiCorp Vault integration
Overview
Build production-ready AI applications with Genkit directly from Claude Code
 
A comprehensive Claude Code plugin that streamlines Genkit development with intelligent commands, templates, and an AI assistant specialized in Genkit best practices.
๐ Now Available: VS Code Extension!
The official Genkit for VS Code extension is now live on the VS Code Marketplace!

Quick Install:
ext install amitpatole.genkit-vscodeFeatures:
- โขโก 6 Genkit commands in Command Palette
- โข๐ 7+ code snippets for rapid development
- โข๐ Genkit Explorer sidebar with project navigation
- โขโ๏ธ Customizable settings and auto-start dev server
- โข๐ฅ๏ธ Cross-platform: Windows, Linux, macOS
๐ค Autonomous Agents (NEW!)
This repository is monitored and maintained by autonomous agents running 24/7:
Schedule Enforcement Agent
- โขโ Runs every 5 minutes
- โขโ Enforces deployment window: 10 PM - 8 AM EST
- โขโ Blocks deployments outside allowed hours
- โขโ Generates violation reports
Monitoring & Maintenance Agent
- โขโ Runs every 10 minutes
- โขโ Auto-fixes compilation errors
- โขโ Auto-updates dependencies & security patches
- โขโ Responds to GitHub issues automatically
- โขโ Tracks marketplace metrics
- โขโ Researches new features
Learn More:
- โข๐ Agent Documentation - Full details on how agents work
- โขโก Quick Start Guide - Get started in 2 minutes
- โขโ๏ธ Configuration - Agent settings
Agent Status:
# Check if agents are running
cat .github/agent-status/*.txt
# View recent reports
ls -lt agent-reports/Features
๐ Quick Project Initialization
- โข`/genkit-init` - Create new Genkit projects with interactive setup
- TypeScript, JavaScript, Go, or Python support - Multiple AI providers (Claude, Gemini, GPT) - Pre-configured project structure - Example flows to get started
๐ป Development Tools
- โข`/genkit-run` - Start Genkit dev server with auto-configuration
- Automatic dependency detection - Smart .env file management - Genkit Developer UI at localhost:4000 - Hot reload support
๐ฆ Flow Generation
- โข`/genkit-flow` - Create flows from templates
- Simple Chat Flow - RAG (Retrieval Augmented Generation) - Tool Calling with function execution - Multi-step workflows - Streaming responses - Blank templates
๐ Deployment Support
- โข`/genkit-deploy` - Deploy to multiple platforms
- Firebase Cloud Functions - Google Cloud Run - Google Cloud Functions (2nd gen) - Vercel - Docker containers - Local builds
๐ฅ Health Monitoring
- โข`/genkit-doctor` - Comprehensive project health checks
- System requirements validation - Package installation verification - Configuration file checks - Environment variable validation - Flow detection - Dependency health
๐ค AI Assistant
- โขGenkit-specialized AI agent with deep expertise in:
- Genkit architecture and patterns - AI model integration - Production deployment strategies - Performance optimization - Security best practices
Installation
From GitHub (Recommended)
- Add the marketplace:
`` /plugin marketplace add https://github.com/amitpatole/claude-genkit-plugin.git ``
- Install the plugin:
`` /plugin install genkit ``
- Verify installation:
`` /genkit-doctor ``
From Local Directory
- Install the plugin:
`` /plugin install /path/to/claude-genkit-plugin ``
- Enable the plugin:
`` /plugin enable genkit ``
- Verify installation:
`` /genkit-doctor ``
Quick Start
Create Your First Genkit Project
# 1. Initialize a new project
/genkit-init
# Follow the interactive prompts:
# - Project name: my-ai-app
# - Language: TypeScript
# - AI Provider: Anthropic Claude
# 2. Navigate to your project
cd my-ai-app
# 3. Add your API keys to .env
# Edit .env and add:
# ANTHROPIC_API_KEY=your_key_here
# 4. Start development server
/genkit-run
# 5. Open Genkit Developer UI
# Visit http://localhost:4000Create a New Flow
# In your Genkit project
/genkit-flow
# Follow prompts:
# - Flow name: summarizeFlow
# - Template: RAG (Retrieval Augmented Generation)Deploy to Production
/genkit-deploy
# Choose deployment target:
# 1. Firebase Cloud Functions
# 2. Google Cloud Run
# 3. Vercel
# etc.Commands Reference
| Command | Description | Usage |
|---|---|---|
/genkit-init | Initialize new Genkit project | Interactive setup wizard |
/genkit-run | Start development server | Run from project directory |
/genkit-flow | Generate new flow from template | Choose from 6 templates |
/genkit-deploy | Deploy to production | Multiple platform support |
/genkit-doctor | Health check and diagnostics | Validates entire setup |
Supported Technologies
Languages
- โขโ TypeScript (Recommended)
- โขโ JavaScript
- โขโ Go (Beta)
- โขโ Python (Alpha)
AI Models
- โข๐ค Anthropic Claude (3.5 Sonnet, 3 Opus, etc.)
- โข๐ง Google Gemini (1.5 Pro, 1.5 Flash)
- โข๐ฌ OpenAI GPT (GPT-4, GPT-3.5)
- โข๐ Local Models (via Ollama)
Deployment Platforms
- โข๐ฅ Firebase Cloud Functions
- โขโ๏ธ Google Cloud Run
- โขโก Google Cloud Functions (2nd gen)
- โข๐บ Vercel
- โข๐ณ Docker
- โข๐ Custom platforms
Flow Templates
1. Simple Chat
Basic conversational AI flow with single-turn responses.
2. RAG (Retrieval Augmented Generation)
Query documents and generate answers with context.
3. Tool Calling
Execute functions and tools based on AI decisions.
4. Multi-step
Complex workflows with sequential AI operations.
5. Streaming
Real-time streaming responses for better UX.
6. Empty
Blank template for custom implementations.
AI Assistant
The plugin includes a specialized AI agent with expertise in:
- โขArchitecture Design - Design scalable Genkit applications
- โขCode Generation - Create production-ready flows and tools
- โขDebugging - Troubleshoot configuration and runtime issues
- โขOptimization - Improve performance, reduce costs
- โขBest Practices - Security, error handling, testing
Activate the assistant:
@genkit-assistant How do I implement a RAG flow with Claude?Examples
Example 1: Chat Application
import { defineFlow } from '@genkit-ai/flow';
import { claude35Sonnet } from '@genkit-ai/anthropic';
import { z } from 'zod';
export const chatFlow = defineFlow(
{
name: 'chat',
inputSchema: z.object({
message: z.string(),
history: z.array(z.object({
role: z.enum(['user', 'assistant']),
content: z.string(),
})).optional(),
}),
outputSchema: z.string(),
},
async (input) => {
const messages = [
...(input.history || []),
{ role: 'user', content: input.message },
];
const result = await claude35Sonnet.generate({
messages,
});
return result.text;
}
);Example 2: RAG with Vector Search
export const ragFlow = defineFlow(
{
name: 'rag',
inputSchema: z.object({
question: z.string(),
maxResults: z.number().default(5),
}),
outputSchema: z.object({
answer: z.string(),
sources: z.array(z.string()),
}),
},
async (input) => {
// Retrieve relevant documents
const docs = await vectorStore.search(input.question, {
limit: input.maxResults,
});
// Generate answer with context
const result = await claude35Sonnet.generate({
prompt: `Context:\n${docs.map(d => d.content).join('\n\n')}\n\nQuestion: ${input.question}\n\nAnswer:`,
});
return {
answer: result.text,
sources: docs.map(d => d.id),
};
}
);Configuration
Environment Variables
Create a .env file in your project:
# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...
# Google AI (Gemini)
GOOGLE_AI_API_KEY=AIza...
# OpenAI (GPT)
OPENAI_API_KEY=sk-...
# Optional: Custom configuration
PORT=3000
NODE_ENV=developmentGenkit Configuration
Create src/genkit.config.ts:
import { configureGenkit } from '@genkit-ai/core';
import { claude } from '@genkit-ai/anthropic';
import { googleAI } from '@genkit-ai/googleai';
export default configureGenkit({
plugins: [
claude({
apiKey: process.env.ANTHROPIC_API_KEY,
}),
googleAI({
apiKey: process.env.GOOGLE_AI_API_KEY,
}),
],
logLevel: 'debug',
enableTracingAndMetrics: true,
});Troubleshooting
Common Issues
Issue: "Genkit CLI not found"
# Install globally
npm install -g genkit-cli
# Or run without global install
npx genkit startIssue: "No API key configured"
# Copy example env file
cp .env.example .env
# Edit .env and add your keys
nano .envIssue: "Port 4000 already in use"
# Kill existing process
lsof -ti:4000 | xargs kill -9
# Or change port in your start script
PORT=4001 npm run devHealth Check
Run a comprehensive health check:
/genkit-doctorRequirements
- โขNode.js 18+ (for JavaScript/TypeScript)
- โขnpm 8+
- โขGo 1.21+ (for Go projects)
- โขPython 3.10+ (for Python projects)
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Test with
/genkit-doctor - Submit a pull request
Plugin Marketplace
This plugin is part of a comprehensive marketplace with 34 specialized plugins for Genkit development!
๐ฏ Core Plugin
- โขgenkit - Main Genkit integration with initialization, templates, and deployment
๐ ๏ธ Development & Testing (7 plugins)
- โขgenkit-test-writer - Automatic test generation
- โขgenkit-architect - Architecture design guidance
- โขgenkit-debugger - Interactive debugging
- โขgenkit-validator - Input/output validation
- โขgenkit-documentation - Auto-generate docs
- โขgenkit-starter-kits - Production templates
- โขgenkit-api-generator - REST/GraphQL APIs
๐ค AI Models & Optimization (4 plugins)
- โขgenkit-ollama - Local AI models
- โขgenkit-model-selector - Model comparison
- โขgenkit-prompt-optimizer - Prompt engineering
- โขgenkit-embedding-helper - Embeddings for RAG
๐พ Database & Storage (4 plugins)
- โขgenkit-firestore - Firestore integration
- โขgenkit-vector-db - Vector databases
- โขgenkit-cache - Caching strategies
- โขgenkit-session-manager - Session management
๐ Monitoring & Performance (4 plugins)
- โขgenkit-monitor - Real-time monitoring
- โขgenkit-cost-tracker - Cost tracking
- โขgenkit-performance-analyzer - Performance profiling
- โขgenkit-logger - Enhanced logging
๐ Security (3 plugins)
- โขgenkit-security-auditor - Security auditing
- โขgenkit-secrets-manager - Secrets management
- โขgenkit-auth-helper - Authentication
๐ Integration & Automation (5 plugins)
- โขgenkit-migration-helper - Framework migration
- โขgenkit-webhooks - Webhook integration
- โขgenkit-scheduler - Scheduled tasks
- โขgenkit-workflow-orchestrator - Workflows
- โขgenkit-rate-limiter - Rate limiting
๐จ Media Processing (3 plugins)
- โขgenkit-image - Image generation, editing, OCR
- โขgenkit-audio - Audio transcription, TTS
- โขgenkit-video - Video generation, editing
๐ Content Creation (2 plugins)
- โขgenkit-content-studio - Multi-modal content
- โขgenkit-analytics - Analytics insights
- โขgenkit-ui-generator - UI components
Install specialized plugins:
/plugin install genkit-test-writer
/plugin install genkit-monitor
/plugin install genkit-image
# ... and 31 more!Roadmap
โ Completed
- โขโ Plugin marketplace submission (34 plugins live!)
- โขโ Additional flow templates (6 templates)
- โขโ Firebase integration helpers (genkit-firestore)
- โขโ Advanced monitoring tools (monitor, performance-analyzer, logger)
- โขโ Testing utilities (genkit-test-writer)
- โขโ Migration helpers (genkit-migration-helper)
๐ Future Plans
- โขโ VS Code extension integration - COMPLETED!
- ๐ Published to VS Code Marketplace v1.0.1 - ๐ฆ Install from Marketplace - ๐ป 6 commands, 7+ snippets, Genkit Explorer sidebar - ๐ See vscode-extension/ directory for details
- โขโ CI/CD pipeline templates - COMPLETED!
- ๐ Production-ready templates for GitHub Actions, GitLab CI, Azure Pipelines - ๐ฆ Multi-environment support (dev, staging, production) - ๐ Security scanning, automated testing, health checks - ๐ฏ Multiple deployment targets (Firebase, Cloud Run, Vercel, AWS Lambda) - ๐ See cicd-templates/ directory for details
- โขโ Multi-region deployment - COMPLETED!
- ๐ Deploy across multiple geographic regions - โก Active-active, active-passive, and geo-routing strategies - ๐ก๏ธ Automatic failover and health monitoring - ๐ Load balancing and traffic management - ๐ See multi-region/ directory for details
- โขโ Advanced RAG patterns - COMPLETED!
- ๐ 8 production-ready RAG patterns (Hybrid, Hierarchical, Conversational, etc.) - ๐ Pattern comparison and use cases - ๐ก Best practices for chunking, embedding, reranking - ๐ Evaluation metrics and optimization strategies - ๐ See advanced-rag/ directory for details
- โขโ Real-time collaboration - COMPLETED!
- ๐ฌ WebSocket server for bidirectional communication - ๐ก Server-Sent Events for AI response streaming - ๐ค Multi-user collaboration examples - ๐ Presence tracking and broadcasting - ๐ See realtime-collaboration/ directory for details
- โขโ Plugin SDK for extensions - COMPLETED!
- ๐ง Complete plugin development framework - ๐ฆ Packaging and distribution tools - ๐งช Testing utilities and examples - ๐ Documentation generators - ๐ Publishing workflow to npm - ๐ See plugin-sdk/ directory for details
Resources
License
MIT License - see LICENSE file for details
Support
- โข๐ Issues: GitHub Issues
- โข๐ฌ Discussions: GitHub Discussions
- โข๐ง Email: [email protected]
Acknowledgments
- โขGenkit Team at Google
- โขAnthropic for Claude AI
- โขClaude Code Team at Anthropic
Made with โค๏ธ for the AI developer community
Build amazing AI applications with Genkit and Claude Code!
Install & Usage
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/genkit-secrets-manager.md https://raw.githubusercontent.com/amitpatole/claude-genkit-plugin/main/SKILL.md/genkit-secrets-managerFrequently Asked Questions
What is genkit-secrets-manager?
Secure API key and secrets management for Genkit - Google Secret Manager, AWS Secrets, HashiCorp Vault integration
How to install genkit-secrets-manager?
To install genkit-secrets-manager, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /genkit-secrets-manager.
What is genkit-secrets-manager best for?
genkit-secrets-manager is a community categorized under General. It is designed for: api, genkit, secrets, security, api-keys, vault. Created by Amit Patole.