zerolith

Documentation

Everything you need to deploy and call a function: the handler contract, HTTP invocation, environment variables, quotas, metrics and agent driving. Every example matches how the platform actually behaves.

Quickstart

  1. Create an account and verify your email address.
  2. Deploy a function from the dashboard. A working sample is prefilled; pick Python or Node.js.
  3. Try it from its page with the "Test the function" button.
  4. Create an API key to call it from outside (public functions need no key).

The free signup credit easily covers these first steps: an idle function costs nothing.

The handler contract

A function is a single file exposing a handler. It receives a request object and returns the response: a string, a JSON object, or a (status, body, headers) tuple.

python
# main.py — handler: main.handler
def handler(request):
    # request.method   -> "GET", "POST", ...
    # request.path     -> str
    # request.headers  -> dict[str, str]
    # request.query    -> dict[str, str]
    # request.body     -> bytes
    # request.json()   -> parsed JSON body
    name = request.query.get("name", "world")
    return {"message": f"hello, {name}"}

    # other return shapes:
    #   "text"                          -> 200 text/plain
    #   {"a": 1} | [1, 2]               -> 200 application/json
    #   (404, "not found")              -> (status, body)
    #   (201, body, {"X-My": "hdr"})    -> (status, body, headers)
node.js
// main.js — handler: main.handler
exports.handler = (request) => {
  // request.method   -> "GET", "POST", ...
  // request.path     -> string
  // request.headers  -> object (lower-cased names)
  // request.query    -> object (first value per key)
  // request.body     -> Buffer
  // request.json()   -> parsed JSON body
  const name = request.query.name || 'world';
  return { message: `hello, ${name}` };

  // other return shapes:
  //   'text'                          -> 200 text/plain
  //   { a: 1 }                        -> 200 application/json
  //   [404, 'not found']              -> [status, body]
  //   [201, body, { 'X-My': 'hdr' }]  -> [status, body, headers]
};

On Node.js, two more shapes run unchanged: an Express server (its app.listen() is intercepted, requests arrive already authenticated) and a standard fetch handler (export default { fetch }, or Deno.serve() like a Supabase edge function). The file may be ESM. npm: imports resolve to the bundled libraries. TypeScript works (types are stripped: no enum or namespace), and esm.sh or deno.land std imports are rewritten to the bundled libraries; any other jsr: or URL import is refused.

node.js — express / fetch / Deno.serve
// Node.js also runs, unchanged, an Express server or a web-standard fetch handler
// (the shapes Bolt.new and Supabase edge functions produce). Pick ONE per file.

// 1. Express: listen() is intercepted, requests arrive on the platform's port
import express from 'express';
const app = express();
app.use(express.json());
app.post('/api/chat', (req, res) => res.json({ got: req.body }));
app.listen(process.env.PORT || 3000);

// 2. fetch handler: Request in, Response out (streamed responses pass through)
export default {
  fetch: (request) => new Response('hello'),
};

// 3. Supabase / Deno style
import { createClient } from 'npm:@supabase/supabase-js@2';
Deno.serve(async (req) => {
  const supabase = createClient(Deno.env.get('SUPABASE_URL'), Deno.env.get('SUPABASE_KEY'));
  return Response.json({ ok: true });
});

The form's "Handler" field is module.function (default main.handler). Runtimes already bundle the common libraries: requests, httpx, pydantic, PyYAML on Python; axios, lodash, zod 4, dayjs, express, cors, dotenv, @supabase/supabase-js on Node.

Invoking a function

A private function is called with an API key (created in the app, shown once) passed in the Authorization header:

curl
curl -H "Authorization: Bearer $ZEROLITH_KEY" \
     "https://<function-url>?name=neo"

A public function is called without authentication, which is handy for webhooks:

curl
# public function — no key needed
curl "https://<function-url>?name=neo"

A presigned URL calls one private function with no key on the caller's side, until the date you set. Create one from the function page; it is shown once, and you can revoke it before its expiry:

curl
# presigned URL — one function, until its expiry date
curl "https://<function-url>?faas_token=faast_..."

The token authorizes that function and nothing else, not your account and not your other functions. Calls made through it are billed to you like any other invocation, and the owner gates still apply (a suspended function or an empty balance refuses it).

Authentication is checked at the edge, before your function even wakes, so an unauthorized call costs you nothing. All HTTP methods (GET, POST, PUT, PATCH, DELETE) and paths are forwarded to the handler.

Environment variables

Define reusable variables (config or secret) at the account level, then attach them per function. They are injected as plain environment variables:

env
# Python                      # Node.js
import os                      process.env.MY_VAR
os.environ["MY_VAR"]

Everything is also driven through the API: create, list, update and delete your variables, then attach them to a function through its env_var_ids field:

curl
# create a secret — its value is write-only, it can never be read back
curl -X POST -H "Authorization: Bearer $JWT" \
     -d '{"name": "API_TOKEN", "kind": "secret", "value": "s3cr3t"}' \
     https://zerolith.io/api/env-vars

# attach it to a function (rolls a new revision)
curl -X PATCH -H "Authorization: Bearer $JWT" \
     -d '{"env_var_ids": ["<env-var-id>"]}' \
     https://zerolith.io/api/functions/<id>

Updating a variable's value automatically rolls a new revision of every function using it. Deleting a variable still attached to a function is refused (409) until it is detached.

Secret values are write-only: stored only in the cluster, never readable back through the API. The FAAS_ prefix is reserved for the platform.

Third-party dependencies

Most handlers need nothing: the Python image bundles flask, requests, httpx, pydantic, python-dateutil, PyYAML and libsql-client; the Node.js image bundles axios, lodash, dayjs, uuid, zod, js-yaml, @libsql/client, express, cors, dotenv and @supabase/supabase-js.

For any other package, put a requirements.txt (Python family) or a package.json with its package-lock.json (Node.js) at the root of your files. Only the root is read. Nothing is installed at deploy time: it is a separate step, in three moves:

  1. Start a build: build_dependencies (MCP), POST /api/dependencies/builds (API) or the "Dependencies" page of the dashboard (/app/dependencies). The answer is building (202), or ready at once (200) if that exact file has already been built: nothing is started or billed then.
  2. Wait for ready: get_dependency_build or GET /api/dependencies/builds/{id}. The statuses are building, ready, failed (with an error field) and purged.
  3. Deploy with the SAME files. A deploy whose lockfile has no ready build is refused (409), with a sentence saying which call to make.
curl
# 1. build — the file goes in the body (python: requirements.txt, node: package.json + lockfile)
curl -X POST -H "Authorization: Bearer $JWT" \
     -d '{"language": "python", "files": {"requirements.txt": "pillow==13.0.0"}, "force": false}' \
     https://zerolith.io/api/dependencies/builds
# -> 202 { "id": "…", "status": "building" }   (200 "ready" if already built)

# 2. poll until "ready" (or "failed", with an "error")
curl -H "Authorization: Bearer $JWT" \
     https://zerolith.io/api/dependencies/builds/<build_id>

# 3. deploy with the SAME files — without a ready build the deploy is refused (409)

The build runs as a Job in your own namespace (the same isolation as your functions), with the exact interpreter of the language you picked: python = CPython 3.12, python313, python314, nodejs22, nodejs24. That is why compiled packages such as Pillow work: a wheel built on a Mac or under another Python version would not load. The result is mounted read-only when the pod starts (Python: /deps/python, on the import path).

force: true rebuilds the same lockfile, to refresh unpinned versions. Listing (list_dependency_builds, GET /api/dependencies/builds) and deleting (delete_dependency_build, DELETE /api/dependencies/builds/{id}, status purged) exist too. Deleting is refused (409) while a build is running or while a function uses it; a later deploy of that file then needs a new build.

After each build, the installed packages are checked against the OSV database (osv.dev): vulns lists {name, version, ids}, is [] when nothing is known and null until the check has run. It is an indicator, never a gate.

One build at a time per account, at most 6 per hour: a refusal (429) carries a Retry-After header saying when to retry. The maximum size of the compressed artifact is in "Sizes and limits".

Build time is billed like compute (container seconds at the usual rates), failed builds included. Storage: 10 MB free per account; beyond that a paid account pays €0.40 per GB per month, and a trial account is capped at 100 MB instead of being billed. An unused build is deleted automatically after 30 days.

A layer lengthens the cold start: on the og-image example, at size small, about 1.8 s more than a Python function without a layer (mean 4.15 s against 2.32 s, measured three times over the internet). A warm call stays at 0.14–0.16 s; minScale (billed warmth) removes the cold start, and a minimal requirements.txt limits it.

Example: og-image draws a 1200×630 Open Graph image with Pillow and a font shipped as a PyPI package (pillow==13.0.0, font-source-sans-pro==0.0.1). Measured: build ready 14 s after the request, 9.8 MB compressed. It is among the live examples below.

Tutorial: generating an Open Graph image with Pillow →

Databases

Every account can provision a private database: network-accessible SQLite, replicated continuously to object storage. It lives in your isolated space, is never publicly exposed, and is reachable only by your own functions.

It sleeps just like a function. With no query for the configured idle window (10 minutes by default, adjustable from 6 seconds to 1 hour) the instance stops: you pay no compute at all, only the storage tier you hold, because your data sits in object storage and never moves. The next query wakes the database automatically and pays a few seconds of cold start, restore included. A longer idle window avoids paying that wake-up between two spaced-out requests. If you would rather have consistently flat latency, always-on keeps one instance up permanently, at the corresponding compute cost. Both settings can be changed at any time, without moving the data.

Attach the database to a function and the platform injects these two variables into its pod. The token is never displayed, it is mounted from a write-only secret.

env
# Python                                  # Node.js
import os                                  const url = process.env.DATABASE_URL;
url = os.environ["DATABASE_URL"]           const tok = process.env.DATABASE_AUTH_TOKEN;
token = os.environ["DATABASE_AUTH_TOKEN"]
python
# main.py — the libSQL client ships with the runtime
import os, libsql_client

def handler(request):
    db = libsql_client.create_client_sync(
        url=os.environ["DATABASE_URL"],
        auth_token=os.environ["DATABASE_AUTH_TOKEN"],
    )
    db.execute("CREATE TABLE IF NOT EXISTS notes (id INTEGER PRIMARY KEY, body TEXT)")
    db.execute("INSERT INTO notes (body) VALUES (?)", ["hello"])
    rows = db.execute("SELECT body FROM notes").rows
    db.close()
    return {"notes": [r[0] for r in rows]}

A database attached to a function cannot be deleted (409): detach it first. The storage tier is a hard cap; writes fail past it.

The database server cannot call your functions, so migrations are explicit. Deploy the migrator with the “migrate” kind — no service, no route, no hostname, so private by construction — designate it, then trigger it on demand from the UI, the API or an MCP agent.

Billing: the database instance costs the same per GB-second as a function of the same size (and nothing while it sleeps), plus the storage tier you hold, prorated per month. Raising the tier takes effect immediately; it cannot be lowered.

Backups and retention: generate a portable SQL export of your database at any time, downloadable for 24 h and restorable anywhere (gunzip -c export.sql.gz | sqlite3 mine.db). The service is in beta, so keep your own backups. If your balance stays at zero, the data is kept for 7 days and then PERMANENTLY DELETED; topping up before the deadline cancels it. Deleting a database also erases its data from object storage, but your exports are kept.

Dedicated page: how databases work, who can access them, backup and cost →

Static sites

A static site is your build output (the folder with an index.html at its root) served at its own address, https://<name>.sites.zerolith.fr, with no pod of its own. The name is 3 to 40 characters: lowercase letters, digits, hyphens. Nothing is built on our side: you (or your agent) upload the folder already built.

Three ways to publish: drop the folder on the Sites page of the dashboard, ask your agent through the MCP server (deploy_site in one call for a small site, create_site_deploy then publish_site_deploy beyond that), or the API, in three calls:

curl
# 1. the site
curl -X POST -H "Authorization: Bearer $JWT" \
     -d '{"name": "demo"}' https://zerolith.io/api/sites

# 2. a deploy: the LIST of files, with their sha256 and size
curl -X POST -H "Authorization: Bearer $JWT" \
     -d '{"files": [{"path": "index.html", "sha256": "9f2c…", "size": 812}]}' \
     https://zerolith.io/api/sites/<site_id>/deploys
# -> { "deploy": {…}, "uploads": [ {"sha256": "…", "url": "https://…"} ] }

# 3. PUT each requested file to its presigned URL, then publish
curl -X POST -H "Authorization: Bearer $JWT" \
     https://zerolith.io/api/sites/<site_id>/deploys/<deploy_id>/publish

Storage is content-addressed (SHA-256): step 2 only asks for the files the site does not already hold, so a redeploy uploads only what changed. Each upload URL is signed for the declared size and expires after 60 minutes. A .env* file, a .git folder or a file under api/ is refused as soon as it is declared.

What the site serves: a file that exists, with its MIME type and an ETag (fingerprinted assets as immutable, HTML as no-cache); /docs/ serves docs/index.html; an unknown path WITHOUT an extension returns index.html with a 200 for the client-side router; a missing file WITH an extension returns a real 404 (your 404.html if there is one). The fallback to index.html can be turned off per site ("spa": false in a PATCH /api/sites/<id>).

Your functions answer on the same origin, under /api/<name>/: no absolute URL, no CORS. Only public functions answer there (a private function returns 401, since a page cannot keep any key secret), and /api/<name>/ always leads to the function of that name on the site owner's account, never to another account's.

javascript
// from a page of the site: same origin, no absolute URL, no CORS
const res = await fetch("/api/contact/", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ email, message }),
});

A password (PUT /api/sites/<id>/password, DELETE to remove it) protects the whole origin, /api/ included; a visitor stays signed in for 7 days.

Every publish is kept: 3 versions on a trial account, 10 on a paid one. Rolling back means publishing an older version again (POST …/deploys/<deploy_id>/publish), with nothing to upload. An older version is deleted with DELETE …/deploys/<deploy_id>. The live version is never deleted.

Per site: 1000 files and 10 MB on trial, 4000 files and 500 MB on a paid account; one file is at most 25 MB. Sites per account: 1 on trial, 10 on a paid account.

Storage is free up to 10 MB per account, all sites together; beyond that, a paid account pays €0.40 per GB per month, billed daily, prorated. Functions behind /api/ are billed separately, at the usual rates. On trial, the site is not indexed by search engines until the account has been topped up.

Not supported yet: server-side rendering (Next.js other than output: "export"), configurable redirects or headers (_redirects, _headers), a global CDN (sites are served from France).

Dedicated page: publishing a static site, its API on the same origin, versions and pricing →

Read the article: hosting a static site with its API →

Custom domains

Serve a function on a hostname you own: api.example.com instead of the platform address. The platform terminates TLS for it and obtains the certificate itself, so you never upload one.

Add the domain from the function's page and publish the two records it shows you:

  • a TXT under _zerolith-challenge.your-domain, holding a token that proves you control the zone;
  • a CNAME from your hostname to the function's own platform address; no new record from us, and the target follows the platform if that address ever moves.

Nothing is routed on an unproven claim. The platform re-checks periodically; once the TXT record is seen it provisions the route and orders the certificate, which is usually ready within a minute. Only then does the domain report that it is serving.

Once verified, the TXT record has done its job and can be removed, since it is read exactly once. The CNAME is what carries traffic and must stay.

Up to 10 domains per account. Wildcards are not supported: the certificate is obtained over HTTP-01, which cannot validate a `*` name. Hostnames the platform already serves cannot be claimed.

A claim that is never verified is released after 14 days, so a hostname you stop wanting does not stay reserved for ever.

Releasing a domain stops it serving immediately. Because re-adding it means ordering another certificate, the hostname cannot be claimed again for 60 minutes.

Cron triggers

Any HTTP function can be fired on a schedule with a cron expression (UTC): in the create form (“Schedule” field), in the function's “Schedules” tab, or through the API. A migration function cannot.

curl
curl -X POST -H "Authorization: Bearer $JWT" \
     -d '{"cron": "*/15 * * * *"}' \
     https://zerolith.io/api/functions/<id>/schedules

Cron invocations go through the same credit gate as external calls: a dry account wakes nothing.

Lifecycle & scaling

A function scales up and down on its own (Knative). While idle it runs at zero instances and costs nothing; the first request triggers a brief cold start, then subsequent calls are served warm.

Invocation lifecycle
1 instance0 instancesmax durationsleeprequestresponsescale → 0

max duration = longest a call may run; sleep = time without a call before the function goes to sleep (zero instances).

Every deployment (new code, config or environment variable change) creates a new immutable revision of the function. Traffic only switches to it once it is ready to serve, so an update causes no downtime.

Tunable from the function form: timeout bounds a single execution (1–600 s); the stable window is the idle time before scaling back to zero; min scale at 0 enables scale-to-zero (on demand), ≥ 1 keeps warm instances (billed continuously); max scale caps concurrency. Billing only runs during execution (reserved memory × time), plus invocations.

Agent driving (MCP)

zerolith.io is also an MCP server with OAuth 2.1: connect Claude or any MCP client to your account and deploy, edit and invoke your functions in natural language, with no key to copy.

Set up MCP »

The server exposes 63 tools, all scoped to your account. Read tools require the mcp:read scope; the others require mcp:write and a verified account:

ToolScopeDescription
whoamimcp:readAuthenticated account and credit balance.
get_catalogmcp:readLanguages, size presets, deploy defaults and pricing.
list_functionsmcp:readList your deployed functions.
get_functionmcp:readOne function: config, URL, attached env vars and current source code.
deploy_functionmcp:writeDeploy a new function.
update_functionmcp:writeUpdate a function (code and/or config).
delete_functionmcp:writeDelete a function.
invoke_functionmcp:writeInvoke a deployed function (credit-gated).
get_function_metricsmcp:readLive metrics (rps, latency, instances, CPU/memory).
get_function_logsmcp:readRecent stdout/stderr of one function, newest first; optional substring filter.
get_function_scanmcp:readReturns the newest static analysis of a function: the note, the counts per severity, and each problem with its line.
build_dependenciesmcp:writeBuild the dependency layer for a lockfile (requirements.txt or package-lock.json).
get_dependency_buildmcp:readStatus of a dependency build: building, ready or failed, with the error.
list_dependency_buildsmcp:readList your dependency builds, newest first.
delete_dependency_buildmcp:writeDelete a dependency build's stored artifact so it stops counting against your storage.
get_database_logsmcp:readRecent sqld engine log of one database; platform storage identifiers are redacted.
get_usage_summarymcp:readBalance and billed totals (requests, GB-seconds, cost).
list_env_varsmcp:readList the account's environment variables.
get_env_varmcp:readOne variable (value readable for config; never for a secret).
create_env_varmcp:writeCreate a variable (config or secret).
update_env_varmcp:writeReplace a variable's value.
delete_env_varmcp:writeDelete a variable (409 if still attached to a function).
list_schedulesmcp:readList cron schedules (all, or one function's).
create_schedulemcp:writeCall a function on a cron schedule (UTC).
update_schedulemcp:writeChange the cron, or pause / resume it.
delete_schedulemcp:writeDelete a schedule (the function stays).
list_custom_domainsmcp:readList your custom domains and the DNS records to publish.
add_custom_domainmcp:writeAttach a domain name to a function (returns the DNS records to create).
delete_custom_domainmcp:writeRelease a custom domain and remove its route.
create_presigned_urlmcp:writeCreate a URL that invokes one function until a deadline, with no API key.
list_presigned_urlsmcp:readList a function's presigned URLs (never the tokens themselves).
revoke_presigned_urlmcp:writeRevoke a presigned URL before its deadline.
list_databasesmcp:readList your private databases.
get_databasemcp:readOne database: tier, size, scaling mode and attached functions.
create_databasemcp:writeCreate a private database (the token is never returned).
delete_databasemcp:writeDelete a database (409 if still attached).
attach_databasemcp:writeAttach a database to a function (injects the variables).
detach_databasemcp:writeDetach a database from a function.
get_database_metricsmcp:readLive status: CPU, memory, instances and disk used vs the tier.
set_database_sizemcp:writeChange a database's CPU/memory preset.
set_database_tiermcp:writeRaise a database's storage tier (upgrade only — it cannot be lowered).
rotate_database_tokenmcp:writeRotate a database's access token: the old one is withdrawn and attached functions redeployed.
set_database_always_onmcp:writeKeep a database always on, or let it sleep.
set_database_stable_windowmcp:writeChange how long a database stays up while idle before sleeping.
export_databasemcp:writeStart a SQL dump of the database (one export per hour per account).
get_database_exportmcp:writeThe latest export's status, with its download link once it is ready.
list_database_exportsmcp:writeA database's export history; only the newest is still downloadable.
set_database_migratormcp:writeDesignate one of your functions as the schema migrator.
unset_database_migratormcp:writeRemove the migrator designation (the function stays attached).
run_migrationmcp:writeRun the designated migration function, on demand.
list_sitesmcp:readList your static sites (address, live version, storage).
create_sitemcp:writeCreate a static site; its name becomes its address.
update_sitemcp:writeTurn a site's SPA routing on or off.
deploy_sitemcp:writeUpload a small build's files and publish it in one call.
create_site_deploymcp:writeStart uploading a large build (returns an upload URL per file).
publish_site_deploymcp:writeMake a version live, or roll back to an earlier one.
list_site_deploysmcp:readList a site's versions and which one is live.
delete_site_deploymcp:writeDelete one past version of a site (never the live one).
set_site_passwordmcp:writeProtect a site with a password (or change it).
remove_site_passwordmcp:writeMake a protected site public again.
delete_sitemcp:writeDelete a site and all its files.
set_tagsmcp:writeReplace the tags (key=value) of a function, site, database or domain.
list_tagsmcp:readList the tag keys in use, with their values and counts.

The whole sequence, from wiring the MCP server to calling the function. The last beat really calls a deployed function; nothing runs until you start the demo.

zerolith · mcpoffline

Observability & metrics

Every function exposes live metrics: requests per second, latency (p50 / p95 / p99), active instances, cold starts, CPU and memory. The app's Status page displays them, and the same API is open to your scripts:

curl
# live snapshot for all your functions (rolling window, default 5 min)
curl -H "Authorization: Bearer $JWT" \
     "https://zerolith.io/api/functions/metrics?window_seconds=3600"

# time series for one function — one point per step (feeds the Status graphs)
curl -H "Authorization: Bearer $JWT" \
     "https://zerolith.io/api/functions/<id>/series?window_seconds=3600&step_seconds=60"

Returned fields: rps, latency_p50_ms / p95 / p99, instances, cold_starts, cpu_millicores, memory_mb. Rolling window adjustable from 1 minute to 7 days (default 5 min). These metrics are measured live, nothing is stored.

On the billing side, the usage API returns the account totals (requests, GB-seconds, cost) and the detail of every billed window:

curl
# billed requests, GB-seconds and cost — CURRENT MONTH by default
curl -H "Authorization: Bearer $JWT" https://zerolith.io/api/usage/summary

# account lifetime, or any explicit range (since/until are half-open)
curl -H "Authorization: Bearer $JWT" "https://zerolith.io/api/usage/summary?period=all"
curl -H "Authorization: Bearer $JWT" \
     "https://zerolith.io/api/usage/summary?since=2026-06-01T00:00:00Z&until=2026-07-01T00:00:00Z"

# every billed window, filterable per function, paginated with limit/offset
curl -H "Authorization: Bearer $JWT" \
     "https://zerolith.io/api/usage/windows?function_id=<id>&limit=100&offset=100"

Usage windows are the billing source of truth: they are kept even after the function is deleted.

Code quality note

On every code deploy the platform runs a static analysis of your source and hands back a score out of 100 and a letter from A to E, with the problems behind it. It is an INDICATOR: the note has never blocked a deploy and changes nothing about what runs. It is there to catch, in code written fast — or written by an agent — the mistakes that cost the most: a command injection, a hardcoded secret, a deserialisation of untrusted input.

Scoring starts at 100 and subtracts a weight per problem according to its severity: high, medium, low. It does NOT divide by file size — one command injection is one command injection in twenty lines or two thousand, and normalising by length would hand everyone a way to improve their note by padding their code. One guarantee holds whatever the weights are: a high-severity problem can never be shown as an A or a B.

The note appears in the “Quality note” column of your functions list and at the top of each function's page; the problems themselves, with the line number and the snippet, are in that page's “Code scan” panel. It always describes the CURRENTLY deployed code: redeploy and a fresh scan is queued — nothing backfills, so a function deployed before the feature was turned on has no note until you push it again.

This is not a security audit and it is not a guarantee. Static analysis misses things and flags others wrongly; an A means “no rule fired”, never “this code is safe”. Your source is never kept: the scanner re-reads it at scan time and retains only the line a problem quotes. The note carries the rule version and the scoring version that produced it, so a note that moves while your code has not is explainable.

Sizes and limits

Sizes are resource presets (memory × CPU). The price follows the reserved memory and CPU, multiplied by the time the function is up — including the idle window after its last call:

Execution timeout configurable from 1 to 600 s. Scale from 0 (scale-to-zero) up to your function's max scale; min ≥ 1 keeps warm instances, billed continuously.

Per-account quotas:

Reserved compute in total (CPU / memory / pods) — before the first payment1 vCPU / 1 GiB / 10 pods
Reserved compute in total — after a first top-up4 vCPU / 4 GiB / 30 pods
Deployed functions50
Code size per function768 KiB
Environment variables100
… of which secrets50
Single value / total budget4 KiB / 512 KiB
API request body2 MiB
Request body received by a function4 MiB
Invocations per account (at the edge)600 / min
Dependency build artifact (trial / paid account)52 MB / 262 MB
Dependency builds per hour and per account6 / h

Throughput is controlled at the edge, before your function even wakes. Public functions called without a key get their own per-function counter, so a spike on a public webhook does not drain the rest of the account's budget.

Live examples

Five functions really deployed on the platform, public and scale-to-zero. The code shown is the actual handler, and the "Call it live" button really hits the public URL: what you see is the function's own answer, nothing is faked.

Nothing is invoked (or billed) until you click: that is also what lets these functions honestly sit at zero instances. The first call triggers a brief cold start; the next ones are served warm.

The examples repository collects these handlers and more, ready to deploy, with the commands that ship them: github.com/zerolith-faas/zerolith-examples

Security & isolation

Every account runs in its own Kubernetes space, walled off by a network policy that denies everything by default. Your functions, environment variables and database live there together and do not leave: another account's pods have no route to yours.

Calls are authenticated at the edge, before a container even starts: an invalid key, a suspended account or an empty balance are refused without ever waking your code, and therefore without billing you. Your secrets are read back by nobody, not even you: neither the API, the dashboard nor an AI agent returns their value. API keys are stored hashed and shown once, at creation.

Dedicated page: isolation, edge authentication, secrets, agents and data →