A collection of open-source templates for building AI-powered applications using LLM Gateway - a unified API gateway for accessing multiple Large Language Models.
| Template | Description | Stack |
|---|---|---|
| Image Generation | Full-stack web app for AI image generation | Next.js 16, React 19, Tailwind CSS |
| AI Chatbot | Streaming chat with conversation history and model selector | Next.js 16, React 19, Tailwind CSS |
| OG Image Generator | AI-powered Open Graph image generator with preview and download | Next.js 16, React 19, Tailwind CSS |
| Feedback Dashboard | Customer feedback sentiment analysis dashboard | Next.js 16, React 19, Tailwind CSS |
| Writing Assistant | AI writing assistant with text actions (rewrite, summarize, expand) | Next.js 16, React 19, Tailwind CSS |
| Slack Q&A Bot | Slack bot that streams AI answers and keeps thread context | Chat SDK, AI SDK, Hono, Redis |
| Weather Agent | CLI agent that answers weather queries using tools | Node.js, TypeScript, Vercel AI SDK |
| Lead Agent | CLI agent that researches people and posts to Discord | Node.js, TypeScript, Vercel AI SDK |
| Changelog Generator | CLI agent that generates changelogs from git history | Node.js, TypeScript, Vercel AI SDK |
| Email Drafter | CLI agent that drafts polished emails from notes | Node.js, TypeScript, Vercel AI SDK |
| Sentiment Analyzer | CLI agent that analyzes text sentiment | Node.js, TypeScript, Vercel AI SDK |
| Data Extractor | CLI agent that extracts structured entities from text | Node.js, TypeScript, Vercel AI SDK |
Claude Code skills for working with LLM Gateway — drop a SKILL.md into .claude/skills/ and trigger it by name. See skills/ for installation details.
| Skill | Trigger | Description |
|---|---|---|
| Changelog | changelog |
Writes a new LLM Gateway changelog entry in the house style, plus a gpt-image-2 prompt for its OpenGraph image |
The easiest way to get started is with the CLI:
# Create a new project (interactive)
npx @llmgateway/cli init
# Or specify a template directly
npx @llmgateway/cli init --template image-generation
npx @llmgateway/cli init --template weather-agentThe @llmgateway/cli provides tools for scaffolding templates and managing AI projects:
npx @llmgateway/cli init # Create a new project from a template
npx @llmgateway/cli list # List available templates
npx @llmgateway/cli models # Browse available AI models
npx @llmgateway/cli add tool weather # Add tools to your project
npx @llmgateway/cli auth login # Manage your API key
npx @llmgateway/cli docs # Open documentationSee the CLI documentation for all available commands.
- Node.js 20+
- pnpm 9.15+
- LLM Gateway API Key
# Clone the repository
git clone https://github.com/theopenco/llmgateway-templates.git
cd llmgateway-templates
# Install dependencies
pnpm install
# Copy environment variables
cp templates/image-generation/.env.example templates/image-generation/.env.local
cp agents/weather-agent/.env.example agents/weather-agent/.env.local
# Add your API key to the .env.local files# Run all templates in development mode
pnpm dev
# Or run a specific template
cd templates/image-generation && pnpm dev
cd agents/weather-agent && pnpm dev# Build all templates
pnpm buildllmgateway-templates/
├── packages/
│ └── llmgateway-cli/ # @llmgateway/cli package
├── templates/
│ ├── image-generation/ # Next.js image generation app
│ ├── ai-chatbot/ # Next.js streaming chatbot
│ ├── og-image-generator/ # Next.js OG image generator
│ ├── feedback-dashboard/ # Next.js sentiment dashboard
│ ├── writing-assistant/ # Next.js writing assistant
│ └── slack-qa-bot/ # Chat SDK Slack Q&A bot
├── agents/
│ ├── weather-agent/ # CLI weather agent
│ ├── lead-agent/ # CLI lead research agent
│ ├── changelog-generator-agent/ # CLI changelog generator
│ ├── email-drafter-agent/ # CLI email drafter
│ ├── sentiment-analyzer-agent/ # CLI sentiment analyzer
│ └── data-extractor-agent/ # CLI data extractor
├── package.json # Root workspace config
├── pnpm-workspace.yaml # pnpm workspace config
└── turbo.json # Turbo build config
- AI SDK: Vercel AI SDK with @llmgateway/ai-sdk-provider
- Package Manager: pnpm
- Monorepo: Turborepo
- Runtime: Node.js 20+
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.