inngest/inngest-skills/inngest-setup
Claude Code and agent skill by inngest/inngest-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Use when adding durable execution to a TypeScript project — building retry-safe webhook handlers, background jobs that survive crashes, scheduled tasks, or long-running workflows that outlive a single request. Covers Inngest SDK installation, client config, environment variables, serve endpoints (Next.js, Express, Hono, Fastify), connect-as-worker mode, and the local dev server.
Install
npx vskill@latest install inngest/inngest-skills/inngest-setupSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Inngest Setup
This skill sets up Inngest in a TypeScript project from scratch, covering installation, client configuration, connection modes, and local development.
These skills are focused on TypeScript. For Python or Go, refer to the Inngest documentation for language-specific guidance. Core concepts apply across all languages.
Prerequisites
- Node.js 18+ (Node.js 22.4+ recommended for WebSocket support)
- TypeScript project
- Package manager (npm, yarn, pnpm, or bun)
Step 1: Install the Inngest SDK
Install the inngest npm package in your project:
Step 2: Create an Inngest Client
Create a shared client file that you'll import throughout your codebase:
Key Configuration Options
- `id` (required): Unique identifier for your app. Use a hyphenated slug like
"my-app"or"user-service" - `eventKey`: Event key for sending events (prefer
INNGEST_EVENT_KEYenv var) - `env`: Environment name for Branch Environments
- `isDev`: Force Dev mode (
true) or Cloud mode (false). v4 defaults to Cloud mode, so setINNGEST_DEV=1env var for local development. Never hardcode `isDev: true` in source code — it will silently break in production. Always use the env var. - `signingKey`: Signing key for production (prefer
INNGEST_SIGNING_KEYenv var). Moved fromserve()to client in v4 - `signingKeyFallback`: Fallback signing key for key rotation (prefer
INNGEST_SIGNING_KEY_FALLBACKenv var) - `baseUrl`: Custom Inngest API base URL (prefer
INNGEST_BASE_URLenv var) - `logger`: Custom logger instance (e.g. winston, pino) — enables
loggerin function context - `middleware`: Array of middleware (see inngest-middleware skill)
Typed Events with eventType()
Environment Variables Setup
Set these environment variables in your .env file or deployment environment:
⚠️ Common Gotcha: Never hardcode keys in your source code. Always use environment variables for INNGEST_EVENT_KEY and INNGEST_SIGNING_KEY.
CRITICAL: Enable Dev Mode for Local Development
Before creating serve endpoints or connecting workers, ensure dev mode is enabled. Without it, Inngest defaults to Cloud mode and your endpoints will fail with 500 errors.
Add to your .env file (or your dev script in package.json):
Or in package.json scripts:
Symptoms of missing INNGEST_DEV:
- GET
/api/inngestreturns{"code":"internal_server_error"} - Server logs: "In cloud mode but no signing key found"
- Dev server can't sync with your app
Step 3: Choose Your Connection Mode
Inngest supports two connection modes:
Mode A: Serve Endpoint (HTTP)
Best for serverless platforms (Vercel, Lambda, etc.) and existing APIs.
Mode B: Connect (WebSocket)
Best for container runtimes (Kubernetes, Docker) and long-running processes.
Step 4A: Serving an Endpoint (HTTP Mode)
Create an API endpoint that exposes your functions to Inngest:
🔧 Framework-Specific Notes:
- Express: Must use
express.json({ limit: "10mb" })middleware to support larger function state. - Fastify: Use
fastifyPluginfrominngest/fastify - Cloudflare Workers: Use
inngest/cloudflare - AWS Lambda: Use
inngest/lambda - For all other frameworks, check the
servereference here: https://www.inngest.com/docs-markdown/learn/serving-inngest-functions
⚠️ v4 Change: Options like signingKey, signingKeyFallback, and baseUrl are now configured on the Inngest client constructor, not on serve(). The serve() function only accepts client, functions, and streaming.
⚠️ Common Gotcha: Always use /api/inngest as your endpoint path. This enables automatic discovery. If you must use a different path, you'll need to configure discovery manually with the -u flag.
Step 4B: Connect as Worker (WebSocket Mode)
For long-running applications that maintain persistent connections:
Requirements for Connect Mode:
- Node.js 22.4+ (or Deno 1.4+, Bun 1.1+) for WebSocket support
- Long-running server environment (not serverless)
INNGEST_SIGNING_KEYandINNGEST_EVENT_KEYfor production- Set the
appVersionparameter on theInngestclient for production to support rolling deploys
v4 Connect Changes:
- Worker thread isolation is enabled by default — WebSocket connections execute in a worker thread to prevent event loop starvation. Set
isolateExecution: falseto use a single process (orINNGEST_CONNECT_ISOLATE_EXECUTION=false) - `rewriteGatewayEndpoint` callback has been replaced with the
gatewayUrlstring option (orINNGEST_CONNECT_GATEWAY_URLenv var)
Step 5: Organizing with Apps
As your system grows, organize functions into logical apps:
Each app gets its own section in the Inngest dashboard and can be deployed independently. Use descriptive, hyphenated IDs that match your service architecture.
⚠️ Common Gotcha: Changing an app's id creates a new app in Inngest. Keep IDs consistent across deployments.
Step 6: Local Development with inngest-cli
Start the Inngest Dev Server for local development:
The dev server will be available at http://localhost:8288 by default.
Configuration File (Optional)
Create inngest.json for complex setups:
Environment-Specific Setup
Local Development
Production
Custom Dev Server Port
If your app runs on a non-standard port (not 3000), make sure the dev server can reach it by specifying the URL with -u flag.
Common Issues & Solutions
Port Conflicts: If port 8288 is in use, specify a different port: -p 9999
Auto-discovery Not Working: Use manual URL specification: -u http://localhost:YOUR_PORT/api/inngest. If using --no-discovery flag, the -u flag is required — the dev server will not find your app without it.
Functions Not Showing in Dev Server: Your app must register with the dev server. This happens automatically when your serve endpoint receives its first request from the dev server. If registration isn't happening: (1) verify INNGEST_DEV=1 is set, (2) verify the dev server can reach your app URL, (3) try restarting your app while the dev server is running.
Signature Verification Errors: Ensure INNGEST_SIGNING_KEY is set correctly in production
WebSocket Connection Issues: Verify Node.js version 22.4+ for connect mode
Docker Development: Use host.docker.internal for app URLs when running dev server in Docker
Next Steps
- Create your first Inngest function with
inngest.createFunction() - Test functions using the dev server's "Invoke" button
- Send events with
inngest.send()to trigger functions - Deploy to production with proper environment variables
- See inngest-middleware for adding logging, error tracking, and other cross-cutting concerns
- Monitor functions in the Inngest dashboard
The dev server automatically reloads when you change functions, making development fast and iterative.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/inngest-setup/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 1
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 8 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/inngest/inngest-skills/inngest-setup)