tabbify.io
Documentation
Product directionEDGE BOX
ReferenceArchitecture

The tabbify.toml manifest

tabbify.toml declares how an application builds and runs. It sits at the root of your repository next to your Dockerfile. Every component reads it through one shared schema, so tcli, the supervisor and the node give each field the same meaning. Every TOML example on this page is parsed against that schema in CI.

There is one public runtime: an OCI image built from your Dockerfile and booted as a CPU-only Firecracker microVM. The manifest sets the ports, lifecycle, CPU and memory; it does not select an execution engine.

A repository can hold several apps: tabbify.toml at the root and any number of <name>.tabbify.toml files. Each is its own app. Over MCP, repo_manifests lists them and create_app_from_repo {repo, manifest_path} deploys one.

A minimal manifest

A web app that listens on port 3000:

[app]
name = "notes"

[build]
kind = "docker"

[[runtime.ports]]
port     = 3000
protocol = "http"
expose   = "public"
primary  = true

Only [app] name is required. Everything else has a default, listed below. The port declaration is optional too, but declare it: it is how the platform knows where to send requests and what to health-probe.

Identity: [app]

KeyDefaultMeaning
namerequiredDisplay name.
description""Human-readable description.
idmintedThe app's UUID. Leave it out and the platform mints one.
[app]
id          = "0191e7c2-1111-7222-8333-444455556666"
name        = "booking-site"
description = "Apartment search API"

The UUID deterministically derives the app's private mesh address and public URL - see Private Mesh and Routing.

Build: [build]

KeyDefaultMeaning
kind"docker"Always docker: the build produces an OCI image.
context"."Build context directory.
dockerfile"Dockerfile"Dockerfile path.
builderany capable builderName of the supervisor that builds the image.
stable_tagnoneAlso push the image under this moving tag (for example current).
[build]
kind       = "docker"
context    = "."
dockerfile = "Dockerfile"

A missing [build] table means exactly these defaults.

Runtime: [runtime]

KeyDefaultMeaning
lifecyclesee belowalways_on or on_request.
idle_timeout_sec300Idle time before an on_request app is stopped.
memory_mb512Memory of the microVM.
vcpus1vCPUs of the microVM.
statefulfalseGive the app a persistent data disk, mounted at /data.
data_disk_mbhost defaultSize of that disk.
ready_within_s30How long the app may take to pass its readiness probe.
[runtime]
lifecycle        = "on_request"
idle_timeout_sec = 300
memory_mb        = 512
vcpus            = 1
  • lifecycle: always_on starts at deployment and is never idle-stopped; on_request starts on the first request and stops after idle_timeout_sec without traffic. Leave it out and the platform picks on_request, or always_on when every declared port is tcp (nothing would wake it). An app started explicitly through the API is never idle-stopped.
  • stateful: the disk is always mounted at /data. The old data_mount key is refused by name.
  • ready_within_s: raise it for an app with a slow first boot (migrations, a large JIT warm-up) instead of letting the deploy fail at the health stage.

Ports: [[runtime.ports]]

One entry per port the app listens on. Nothing undeclared is forwarded.

KeyDefaultMeaning
portrequiredThe port the app listens on inside the microVM. It is not remapped.
protocolrequiredhttp, or tcp for anything else (pgwire, RESP, SSH).
exposerequiredpublic (the platform edge, HTTP only), mesh (mesh peers with a grant) or none.
primaryfalseThe port the HTTP proxy and the readiness probe use.
[[runtime.ports]]
port     = 8080
protocol = "http"
expose   = "public"
primary  = true

[[runtime.ports]]
port     = 5432
protocol = "tcp"
expose   = "mesh"

The rules, checked at deploy:

  • a port is not 0 and is declared once;
  • expose = "public" and primary = true need protocol = "http";
  • at most one port is primary; with several HTTP ports, mark one.

Declare no ports at all and the platform falls back to probing the ports your image EXPOSEs, and 8080. public means reachable through the edge, not open to everyone: a new app stays private until its owner publishes it. See Routing & public access.

Routes: [routes]

KeyDefaultMeaning
dynamic_prefixes[]Path prefixes routed to the app (["/"] is everything).
under_prefixfalseThe app is built to be served under /app/<uuid>/; the edge then keeps the prefix instead of stripping it.

The edge strips /app/<uuid> by default and tells the app in X-Forwarded-Prefix. Set under_prefix only for an app whose build bakes the prefix in (Next.js basePath). Every build receives it as the build argument NEXT_PUBLIC_BASE_PATH.

[routes]
under_prefix = true

Workload target: [[deploy]]

Leave [[deploy]] out and Tabbify places the app on a suitable host. Include one block to request a specific supervisor and add target-local environment values:

[[deploy]]
supervisor = "thinkpad"

[deploy.env]
LOG_LEVEL = "debug"

Use at most one [[deploy]] entry. Repeated entries do not create replicas or a highly available group.

Environment and secrets: [env]

[env] sets environment variables. [deploy.env] overrides it per key.

tabbify.toml carries no plaintext secrets. A credential lives in the encrypted per-environment store (tcli secret set NAME, value on stdin, or App → Settings → Secrets in the console) and the manifest references it by name. The node replaces each reference with the value at deploy time:

[env]
LOG_LEVEL   = "info"
STRIPE_KEY  = "secret:STRIPE_KEY"
TLS_CERT    = "secret-file:TLS_CERT"
DB_URL      = "${resources.db.uri}"
  • secret:NAME: the variable holds the secret's value.
  • secret-file:NAME: the variable holds the path of a file with the value (certificates, keys).
  • ${resources.<link>.<attr>}: an address of a [connect] link below. <attr> is uri, host or port; ${resources.<link>.roles.<role>.uri} (also .user, .password) carries a role's credentials. An S3 link also has public_endpoint (public instances only), the address presigned URLs for browsers must be signed against. A reference without a [connect] link is refused at deploy.

Over MCP, resource_bind {app_uuid, env_key, resource} wires a managed resource to an app in one call: it declares the link, issues the credential and adds KEY = "secret:KEY" for you. deployment_secret_bind does the same for a key a container deployment minted (such as a Supabase anon key). Both take effect on the app's next deploy.

Links to managed resources: [connect]

An app does not dial a managed resource by its mesh address. It declares a link and dials 169.254.169.2:<local_port> inside the microVM:

[connect.db]
kind       = "pg"
instance   = "i-pg-4f2c9a"
local_port = 5432

kind is pg, kv, s3, ch or streams. instance is the instance id that container_status reports. local_port cannot be 0, 8788 or 8789.

Links to your own machines: [connect_peer]

A machine you joined to one of your environments (an office server, an on-prem service) is reached the same way:

[connect_peer.office]
network    = "n_empf3qwx6sp5"
peer       = "office-nginx"
port       = 80
local_port = 8080

network is the environment's id (n_…), never its name. The app then calls http://169.254.169.2:8080. Naming a machine grants nothing: an access rule must let the app reach it (app_peer_access over MCP).

[connect_app] (links to the sibling services of a container deployment) is written by the platform. Do not write it yourself.

Logs: [logs]

Every app already has its own log pipe, written from its output. [logs] declares more:

[logs]
subscribe = ["logs/web"]
emit      = ["logs"]

subscribe reads another app's pipe, as logs/<source>. emit may only name your own pipe, logs.

Gotchas

  • Unknown keys are ignored, not refused. That keeps older components compatible with newer manifests, but a typo silently falls back to the default. The classic one is port = 3000 under [runtime]: there is no such key, so it does nothing and the readiness probe looks for the wrong port. Declare the port in [[runtime.ports]].
  • tabbify.toml takes precedence over a legacy manifest.toml if both exist.
  • Runtime-selection keys from older manifests are inert. Every public workload runs in Firecracker.
  • [runtime] changes take effect on a cold redeploy, not on a hot image swap.

Once your manifest is ready, deploy it. The simplest path is a git push: put the repo on GitHub with the deploy workflow and Tabbify clones, builds and runs it for you; see the quickstart. From an AI agent over MCP, push to your git host (GitHub or your own Forgejo) and call create_app_from_repo. From your own terminal, run tcli deploy --remote; see the CLI reference.