Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

daemons

БесплатноБез исполняемых скриптовНе проверен

Vercel Daemons guidance — long-running background workers built from a Dockerfile and declared under the `daemons` key in vercel.json. Use when running queue…

vercelот vercel★ 356 звёзд на GitHub

Об этом скилле

Vercel Daemons

You are an expert in Vercel Daemons, the long-running background processes that run from a container image in the same project as an app.

Daemons are in Public Beta on all plans. Say so when you recommend them.

What It Is

A daemon is a named resource in a project that runs a fixed number of identical instances of one container image in each region you list. Vercel builds the image from the daemon's Dockerfile or Containerfile, rolls it out when the deployment becomes the production deployment, restarts instances that exit, crash, or fail their livenessProbe, and forwards stdout/stderr to the project's Logs. Daemons run on Fluid compute.

Daemons cannot receive inbound traffic. They pull work from a queue, a workflow engine, or an external API.

When to Use Daemons

Use a daemon when the process owns a continuous loop that retrieves work.

Need Use Why
Always-on queue consumer (Vercel Queues poll mode, SQS, Kafka, Redis), Celery/Sidekiq/BullMQ worker, workflow-engine worker, self-hosted CI runner Daemons Long-running loop, fixed instances per region, no request needed
HTTP APIs, webhooks, streaming, WebSockets Vercel Functions (⤳ skill: vercel-functions) Daemons can't receive traffic
Fire-and-forget background job, fan-out, buffering with Vercel invoking your handler Vercel Queues push mode (⤳ skill: queues) Serverless, scales automatically, works in previews
Durable multi-step logic with sleep, hooks, or approvals Vercel Workflows (⤳ skill: workflow) Durable steps and replay
Run code on a schedule or once at a set time Vercel Schedules (⤳ skill: vercel-schedules) Time-based trigger; beta, replaces legacy Cron Jobs
Run untrusted or AI-generated code in isolation Vercel Sandbox (⤳ skill: vercel-sandbox) Ephemeral microVMs
Multiple frontends and backends in one project Vercel Services (⤳ skill: vercel-services) Daemons sit next to services; they are not services

If the user's work is request-driven, prefer Functions or Queues push mode. Reach for a daemon only when something must stay running.

Quick Start

Add a Dockerfile in the worker's source directory:

# worker/Dockerfile
FROM node:24-slim
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY . .
CMD ["node", "worker.js"]

Declare the daemon under the top-level daemons key:

{
  "$schema": "https://openapi.vercel.sh/vercel.json",
  "daemons": {
    "worker": {
      "root": "worker/",
      "entrypoint": "Dockerfile",
      "instances": { "iad1": 2 }
    }
  }
}

The same configuration works in vercel.toml as a [daemons.worker] table. Deploy to production. Vercel builds the image, pushes it to Vercel Container Registry as daemon.worker, and starts two instances in iad1.

Daemons are always declared at the top level, never inside services. They run alongside an existing app (Next.js, Services, or anything else) without changing how Vercel builds it.

Configuration Reference

Field Type Required Notes
root string Yes Source directory, relative to vercel.json. Must stay inside the repository. Files under it are not published as static assets
entrypoint string Yes Path to the Dockerfile or Containerfile, relative to root. Its directory is the build context
instances Record<region, number> Yes Instances per region ID, each 0–100. Vercel runs only in the listed regions
command string[] No Replaces the image's ENTRYPOINT and CMD. Not run through a shell
resources { requests: { memory } } No 1Gi (1 vCPU), 2Gi (1 vCPU, default), 4Gi (2 vCPU), 8Gi (4 vCPU)
terminationGracePeriodSeconds number No Seconds to wait after SIGTERM before terminating, 0–3600, default 30
livenessProbe { httpGet: { port, path }, initialDelaySeconds, periodSeconds, timeoutSeconds, failureThreshold } No HTTP GET health check from inside the instance; 200–399 passes, failureThreshold (default 3) consecutive failures restart it. Defaults: periodSeconds 10, timeoutSeconds 1, path /. Vercel CLI 65.2.0+
bindings ServiceBinding[] No { "type": "service", "service": "api", "format": "url", "env": "API_URL" } to call a service in the same deployment. Vercel CLI 65.0.0+
  • instances vs replicas: the published vercel.json schema and the Build Output API use instances. replicas is a deprecated alias that is ignored when instances is set. If the project already uses replicas, leave it working, but write instances in new configuration.
  • Names: lowercase letters only, joined by _, __, or one or more - (worker, email_sender, celery-beat; not Worker, worker1, _worker), 64 characters max. T
Полный SKILL.md на GitHub

Установить daemons в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл daemons?

Vercel Daemons guidance — long-running background workers built from a Dockerfile and declared under the `daemons` key in vercel.json. Use when running queue consumers, Celery/Sidekiq/BullMQ workers, workflow workers, or job runners next to an app on Vercel; configuring daemon instances per region, memory, or command; handling SIGTERM; or choosing between Daemons, Functions, Queues, and Workflows.

Как установить скилл daemons?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл daemons запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить daemons с