Skip to content
whisk
FeaturesExamplesGuidesDocsPricingStatus
Sign inStart free
whisk

Websites, shops, apps, portals and tools, built with AI. Run your own.

ProductFeaturesExamplesPricingUsage allowancesStatus
LearnDocsGuidesComparisonsLearnResearchSkill
CompanyAboutContactSecurity
LegalTermsAcceptable usePrivacyData processingTakedown
System statusPrices in US dollars.

Docs

  • Getting started
  • The rules
  • Manifest
  • Headers
  • Environment
  • Errors
  • Doctor rules
  • CLI reference

Files

  • SKILL.md
  • whisk.schema.json
  • graph.schema.json
  • webhook-presets.yaml
  1. Docs
  2. Environment

Environment

From environment.md, the same document your agent reads.

Every variable the platform injects into an app's process. Names are stable within a conventions version. Read them from the environment at start; never commit values; never rename them.

Always present

VariableValue
PORT8080. Listen here, on all interfaces.
WHISK_APP_IDULID of the app
WHISK_APP_NAMEthe manifest name
WHISK_ORG_IDULID of the org
WHISK_ENVproduction or preview:<branch>
WHISK_PUBLIC_URLhttps://<hostname> for this environment
WHISK_QUEUE_URLhttps://api.whisk.run/v1/orgs/<org>/apps/<app>/events; POST events here
WHISK_FLAGS_URLhttps://api.whisk.run/v1/orgs/<org>/apps/<app>/flags/on; GET ?user=<id> with WHISK_SERVICE_TOKEN for the feature flags on for a person, from a background job (CONTRACT.md §3.3)
WHISK_SERVICE_TOKENbearer token for WHISK_QUEUE_URL, the uploads, customers, email and custom domain endpoints, and app-to-app calls. It stays valid as long as the container's deploy is the live one, so an app that never sleeps keeps it; the next deploy gives the next container a new one. Never write it to a file.
WHISK_INNGEST_URLorigin of the workflow API the Inngest SDK talks to (scheme and host, no path); pass it as the SDK's base URL
WHISK_INNGEST_SIGNING_KEYthis app's own; verifies function-run requests to queue.endpoint, and tells the platform which app the SDK is
WHISK_INNGEST_EVENT_KEYthis app's own; lets the Inngest SDK send events from inside a function
WHISK_PUSH_KEYthis app's public push key, base64url; /.whisk/push.js reads it for itself, and a page that subscribes with its own code passes it to PushManager.subscribe as applicationServerKey. Public, the same in every environment of the app
WHISK_DELIVERY_KEYbase64, 32 bytes, this app's own; verifies X-Whisk-Delivery-Signature on webhook deliveries (headers.md, delivery headers)
SENTRY_DSNerror tracking; initialise any Sentry SDK with it
OTEL_EXPORTER_OTLP_TRACES_ENDPOINThttps://api.whisk.run/v1/otlp/v1/traces, where an OpenTelemetry SDK sends the app's traces
OTEL_EXPORTER_OTLP_TRACES_HEADERSAuthorization=Bearer%20<service token>, the exporter's header; a credential, scrubbed from logs
OTEL_EXPORTER_OTLP_TRACES_PROTOCOLhttp/protobuf
OTEL_SERVICE_NAMEthe app's name
OTEL_RESOURCE_ATTRIBUTESdeployment.environment=<WHISK_ENV>, percent-encoded
OTEL_METRICS_EXPORTER, OTEL_LOGS_EXPORTERnone: the platform keeps traces, and the app's stdout is its logs
WHISK_STOP_GRACEseconds between SIGTERM and SIGKILL, default 28
WHISK_MEMORY_BYTESthe app's memory limit in bytes, set by the org's plan (Free 268435456, 256 MiB). Above it the process is killed at once, with no SIGTERM, and the next run's log starts with APP_OUT_OF_MEMORY; at 85 % the log shows APP_MEMORY_HIGH. Absent only when there is no limit (whisk dev).
WHISK_TMP_BYTESthe size of /tmp in bytes. /tmp is held in memory, so what the app keeps there counts against WHISK_MEMORY_BYTES: a run that fills /tmp has that much less for the process.
TZUTC

Present by manifest

VariableWhenValue
DATABASE_URLdatabase is app or shared:<name>postgres://…?sslmode=require, pooled in transaction mode. For shared:, the app's own schema is first on search_path. With database_role: restricted the running app's is the run login, <owner>_run, which reads and writes rows and cannot change the schema; the migrate step's is the owner over a direct connection.
WHISK_STORAGE_ENDPOINT, WHISK_STORAGE_BUCKET, WHISK_STORAGE_ACCESS_KEY, WHISK_STORAGE_SECRET_KEY, WHISK_STORAGE_PREFIX, WHISK_STORAGE_REGIONstorage: trueS3-compatible credentials of this environment's own, which reach its prefix in the app's own bucket (the business's, before the app has one) and nothing else; the bucket's name can change once, keys staying where they are; list with the prefix. A preview has a prefix and key of its own, apart from production's. On a bucket the owner brought the key is the owner's, which Whisk cannot narrow. Use path-style addressing; the endpoint is reachable from the container and from browsers.
WHISK_KV_URLkv: trueredis://… to a Valkey the app has to itself: no prefix, no sharing. Empty after the app sleeps; sized by the plan, and full means the app's own least recently used keys go.
WHISK_CONNECTION_<NAME>_URLeach entry under connectionshttp://connect.internal.whisk:8443/<name>, the broker's address for that connection. The connection's secrets are never set.
every name in secrets:alwaysthe value a human set; absent until then
every name in env:alwaysthe literal value from the manifest
WHISK_PAUSEDa managed app a person pausedtrue; the app does no work on a run and answers its routes 503 APP_PAUSED until it is resumed
WHISK_LINKED_<ROLE>a managed app with a linkthe linked app's id, one per role the product names, e.g. WHISK_LINKED_SHOP
WHISK_LINKED_<PRODUCT>an app a managed app is linked tothe copy's id, e.g. WHISK_LINKED_ERP_LINK; set from the app's next start or deploy after the link is made. When the product has a link_key and the app has several copies, or one with a value for it, every copy, comma-separated: one without a value as its bare id, first, and each other as <value>=<id>, by value (01J…,au=01J…)
a managed app's variant env and settingsa managed appthe variant's literal values and what the business set

Start any OpenTelemetry SDK's OTLP/HTTP trace exporter and it reads the OTEL_* variables itself; the templates do this only when OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is set. A name the manifest sets under env or secrets keeps the manifest's value, so an app can send its traces to a service of its own instead. Traces are kept 7 days and read with whisk traces and on the app's Traces page.

Local development

WHISK_DEV=1 is set only by whisk dev and by the stub, which set no OTEL_* variable. Apps may use it to relax things that only make sense in production, for example Sentry sampling. Nothing else changes: the same headers arrive, the same variables exist.

Reserved

Any name beginning WHISK_ is reserved for the platform. The manifest refuses them in secrets and env. The Inngest SDKs also read INNGEST_* names; the templates set the SDK's options from the WHISK_INNGEST_* variables in code rather than relying on that.

On this page

  • Always present
  • Present by manifest
  • Local development
  • Reserved