Render
Use this guide to run Cuttlely on Render with the Blueprint in this repository. A Blueprint is a YAML file that describes services. Render creates them from the Dashboard. You get a public HTTPS address, a Postgres database, and a disk that keeps Cuttlely’s files across deploys. People sign in with WorkOS.
Use Render when a team needs one shared Cuttlely on the internet. On your own computer, use Docker or From source. Both stay on SQLite.
For timeout and streaming concepts that also apply to managed gateways, see the reverse proxy guide. The Blueprint already sets its required proxy hop count.
These steps were checked against render.yaml and Render’s documentation. No deploy was made for this guide, so there are no screenshots of the Dashboard.
Deploying on ephemeral storage
Section titled “Deploying on ephemeral storage”The supplied Blueprint attaches a disk. To operate a diskless service with 1.7.15, use a durable PostgreSQL database and set the database connection, CUTTLELY_APP_DATABASE_STORES=1 and a stable CUTTLELY_SECRETKEY_OVERWRITE on every web service and worker before first boot. Optionally configure a private S3-compatible bucket for application files. The service still needs writable temporary space.
For an existing service, back up the original volume and encryption key before changing environment variables or deploying an image. An ephemeral filesystem can disappear on that very deploy. Recover the backup onto temporary persistent storage if necessary, perform the applicable migrations there, and rehearse with empty web and worker directories. A new empty PostgreSQL database alone cannot recover an existing SQLite application. Choose the matching migration and verify recovery.
What the Blueprint creates
Section titled “What the Blueprint creates”| Resource | Value in render.yaml |
|---|---|
Web service cuttlely |
runtime: docker, built from the root Dockerfile (Node 24, Chromium, the agent runtime). It starts scripts/start-cuttlely.sh. |
| Web plan | 1c-2g (Standard): one CPU and 2 GB of RAM for light QA. Use 2c-4g as a starting point for general use. Concurrent evaluations and browser specialists may need 2c-8g. |
| Instances | numInstances: 1. A service with a disk can’t be scaled out. |
Disk cuttlely-data |
10 GB at /var/cuttlely. It can grow later and can’t shrink. |
| Health check | GET /api/v1/ping/live. It returns 503 during the boot compile gate on the first boot only, or while the application database is unreachable. A runtime-only failure keeps UI traffic available. Strict /api/v1/ping is a separate monitoring and agent-readiness check. |
| Deploys | autoDeployTrigger: commit on branch main: every push to main deploys. |
Database cuttlely-db |
Postgres 16, plan basic-1gb, database and user cuttlely |
| Region | oregon for both, so the service reaches the database on Render’s internal network |
| Preview environments | Off (previews.generation: off) |
The repository never calls the Render API. You apply the Blueprint in the Dashboard yourself.
Before you start
Section titled “Before you start”- A Render workspace that can create paid services. The web plan, the disk, and the database plan are all paid. Disks aren’t available on the free plan.
- Access to this repository from Render, through your Git provider.
- A WorkOS AuthKit application. The values you need are in WorkOS AuthKit setup. The redirect URIs come after the deploy, when you know the service’s address.
- The email of the first owner. It goes in
CUTTLELY_BOOTSTRAP_EMAIL.
Apply the Blueprint
Section titled “Apply the Blueprint”-
In the Render Dashboard, select New > Blueprint.
-
Select Connect next to this repository.
-
Give the Blueprint a name and select the
mainbranch. Leave Blueprint Path empty, so Render usesrender.yamlat the repository root. -
Render asks for a value for each variable marked
sync: false:Variable Value WORKOS_API_KEYFrom WorkOS. WORKOS_CLIENT_IDFrom WorkOS. WORKOS_REDIRECT_URIhttps://<your-service>.onrender.com/api/v1/auth/callback. Fix it after the first deploy if the address differs.WORKOS_COOKIE_PASSWORDA random value of at least 32 characters for the AuthKit setup test. Current sessions use the database. CUTTLELY_BOOTSTRAP_EMAILThe verified email of the first owner. Render asks only now, when the Blueprint is created. Later Blueprint syncs ignore
sync: falsevariables. To change one, edit it on the service’s Environment page.Configure sign-in on the host before browser setup. For WorkOS, supply its credentials, redirect URI and bootstrap email on Environment, then restart/redeploy. If you use local sign-in first, explicitly enable
CUTTLELY_LOCAL_ADMIN=trueon the host and restart; the log’s setup link creates only the first account. A setup code cannot configure AuthKit or designate an operator. See When nobody can sign in yet. -
Review the list of resources, then select Deploy Blueprint.
Render creates the database, the disk, and the service, then builds the image. The service is live when the health check passes. Render shows the address on the service page, for example https://your-service.onrender.com.
The Blueprint uses application liveness so a runtime-only failure does not remove the UI and operator recovery routes from traffic. On an existing service, verify Health Check Path is /api/v1/ping/live after upgrading; also check any custom gateway or load balancer. Use strict /api/v1/ping separately for monitoring. Both endpoints remain unauthenticated and expose the existing runtime, Analyst and database headers. On exhaustion, recovery runs inside the image: Node keeps serving during the 300-second cooldown, then the whole stack restarts in place with a fresh burst. The Blueprint does not enable the optional container-exit mode. On a containment restart only, shutdown is capped at five seconds and the boot wait at ten seconds, leaving 45 seconds for Node/database startup before Render’s 60-second running-instance restart threshold. The first cold startup keeps its existing compile gate; an unreachable database still fails liveness. Health checks and restart timing · Runtime recovery.
Stopping and deploys. Render sends SIGKILL after its shutdown delay, 30 seconds by default, and does not allow a custom delay for a service with a persistent disk. This Blueprint has a disk, so it does not set maxShutdownDelaySeconds. Cuttlely keeps the agent runtime available during Node’s default 25-second drain, then sends it SIGTERM. The runtime’s configured 15-second stop grace is capped by the time left in a 28-second total shutdown budget; a full drain leaves about 2–3 seconds, with roughly two seconds reserved for remaining process cleanup before Render’s deadline. A shorter drain gives the runtime up to 15 seconds. Runtime-only restarts keep the full configured grace. Each supervisor SIGKILL logs the effective grace. The runtime always gets at least 2 seconds (or the configured grace if lower), so custom drains longer than about 26 seconds can exceed the platform budget. No Dashboard setting changes are required.
Point WorkOS at the service
Section titled “Point WorkOS at the service”In WorkOS, set these URIs to the service’s real address:
| WorkOS field | Value |
|---|---|
| Redirect URI | https://your-service.onrender.com/api/v1/auth/callback |
| Sign-out URI | https://your-service.onrender.com/signin |
| Initiate login URI | https://your-service.onrender.com/api/v1/auth/login |
WORKOS_REDIRECT_URI on the service must match the redirect URI exactly. After you change it on the Environment page, save and redeploy the service.
First sign-in
Section titled “First sign-in”- Open
https://your-service.onrender.com/signin. The page shows Sign in with WorkOS. - Sign in with the email in
CUTTLELY_BOOTSTRAP_EMAIL. You become the owner. - Add other people under Admin > Users, then send each person the one-time invite link Add User shows. They join only through that link. See Invite people.
Tenant ownership does not confer server-wide administration; use operator onboarding for the explicit panel designation with host-log proof.
WorkOS is the durable selected method, so /signin has no ordinary password form. CUTTLELY_LOCAL_ADMIN is not in render.yaml and is not needed for owner recovery.
Model keys are not environment variables here. The Blueprint has no OPENAI_API_KEY or XAI_API_KEY. Save keys under Credentials in the app.
Settings in the Blueprint
Section titled “Settings in the Blueprint”The app database is Postgres. Cuttlely does not read DATABASE_URL. It reads the separate DATABASE_* variables, which the Blueprint fills from cuttlely-db.
| Variable | Blueprint value | Notes |
|---|---|---|
PORT |
set by Render | Don’t set it in the file. |
HOST |
0.0.0.0 |
|
NODE_OPTIONS |
--max-old-space-size=4096 |
The runtime heap. The image build uses a larger heap. |
DATABASE_TYPE |
postgres |
|
DATABASE_HOST |
from cuttlely-db |
The internal host. |
DATABASE_PORT |
from cuttlely-db |
The server’s default is 5432 when it’s unset. |
DATABASE_NAME |
from cuttlely-db |
|
DATABASE_USER |
from cuttlely-db |
|
DATABASE_PASSWORD |
from cuttlely-db |
|
DATABASE_SSL |
false |
The internal host doesn’t use TLS. An external address would need true. |
DATABASE_PATH |
/var/cuttlely/data |
A directory. App rows are in Postgres. The key files live here. |
SECRETKEY_PATH |
/var/cuttlely/data |
|
BLOB_STORAGE_PATH |
/var/cuttlely/storage |
Uploads. |
STORAGE_TYPE |
local |
Files go on the disk. |
CUTTLELY_DATA_DIR |
/var/cuttlely |
Harness records and version history (/var/cuttlely/versions). |
CUTTLELY_HERMES_HOME |
/var/cuttlely/hermes |
HERMES_HOME matches it. |
CUTTLELY_ETL_DIR |
/var/cuttlely/etl |
ETL runs, local vector stores, and uploads. See ETL. |
LOG_PATH |
/var/cuttlely/logs |
Also shown under Admin > Logs for an owner or a role with logs:view. Presets use a range token on the server clock. Redaction runs on the joined text. |
TRUST_PROXY |
1 |
One Render proxy hop. |
WORKOS_*, CUTTLELY_BOOTSTRAP_EMAIL |
sync: false |
Entered when you create the Blueprint. |
FLOWISE_SECRETKEY_OVERWRITE |
generated | The credential encryption key. Render generates it once and keeps it. |
CUTTLELY_ANALYST |
not set | Unset is Auto. Set off on the Environment page to turn the private store off. See Analyst database. |
CUTTLELY_POSTGRES_URL |
not set | See Analyst database. |
CUTTLELY_LOCAL_ADMIN |
not set | WorkOS stays the ordinary method; owner recovery remains available. |
CUTTLELY_VERSIONS |
not set | Version history is on. Set off on the Environment page to turn it off. |
CUTTLELY_DRAFTS |
not set | Drafts are on. Set off on the Environment page to save to Live. |
A Blueprint sync sets every variable that has a value in the file back to that value. Change those in render.yaml. Variables the file doesn’t list, such as CUTTLELY_ANALYST, stay as you set them in the Dashboard.
Analyst database
Section titled “Analyst database”Analyst storage is Auto when CUTTLELY_ANALYST is unset. Set it to off on the service’s Environment page to turn the private store off. The Blueprint leaves that variable and CUTTLELY_POSTGRES_URL out on purpose, so a later sync doesn’t clear a Dashboard value of off.
With auto, Cuttlely creates an analyst schema in cuttlely-db and a login that can’t read the app’s tables. The cuttlely-db user has to be allowed to create roles, and Render’s managed Postgres often doesn’t allow it. When it can’t, analyst mode stops. It doesn’t fall back to the app’s login. Then create a separate database and set CUTTLELY_POSTGRES_URL to it. Don’t use the connection string of cuttlely-db: the tool refuses it. If that host requires TLS, add sslmode to the URL yourself. Cuttlely doesn’t add it.
What auto mode creates, which URL wins, and the canvas steps are in Analyst mode.
Deploys and data
Section titled “Deploys and data”- Every push to
maindeploys. With a disk attached, Render stops the old instance before it starts the new one, so each deploy has a short outage. - A browser tab left open across a deploy or a restart can fail to load part of a page, because the files it asks for were replaced or the server was not answering yet. The page then shows Loading the latest version of this page…, checks
/api/v1/pinguntil the server answers (for up to about a minute), and reloads once. If the server does not answer in that time, or the part still fails right after that reload, the page says it could not be loaded and shows Reload; reload again once the service is live. Files under/assets/have content-based names and are sent withCache-Control: public, max-age=31536000, immutable; a name that is not in the current build answers 404. The page itself is sent withCache-Control: no-cache, so a browser checks for a new build on every load. - Everything Cuttlely writes outside Postgres is on the disk at
/var/cuttlely: the key files, uploads, harness records, the agent runtime home, ETL files, logs, and version history. Render takes a snapshot of the disk every day, and you can restore one from the service’s Disk page. - Render backs up paid Postgres databases continuously, for point-in-time recovery. The window depends on your workspace plan.
- Keep
FLOWISE_SECRETKEY_OVERWRITE. If it changes or is lost, stored credentials can’t be read.
Recover access
Section titled “Recover access”When WorkOS sign-in isn’t working, use the always-available owner recovery page. It does not require CUTTLELY_LOCAL_ADMIN:
- On the service’s Shell page, in the app folder
/usr/src/cuttlely, run recovery as the application OS user:setpriv --reuid=node --regid=node --init-groups -- pnpm user --email you@example.com, then type a password for the existing owner. A root invocation is refused when the data directory belongs tonode; do not change its ownership to bypass the check. - Open
/owner-recoveryand sign in with that owner email and password./signincontinues to show Sign in with WorkOS and Owner recovery because WorkOS remains the durable selected method. - Fix the WorkOS configuration and restart. Environment settings configure the WorkOS candidate; they do not change the durable selection. The instance operator with active ownership can change the ordinary method, when needed, under Admin > Auth / SSO.
More about the local account: Sign in.
Troubleshooting
Section titled “Troubleshooting”| You see | What to do |
|---|---|
| The health check stays red | Check the service logs. Usually the instance ran out of memory, or Postgres isn’t reachable. A browser specialist starts Chromium on the same instance. |
Sign-in is not configured. |
Configure WorkOS on Environment, restart/redeploy and sign in through WorkOS. For local first-account setup, host-enable CUTTLELY_LOCAL_ADMIN=true before opening the account-only setup link; it cannot configure AuthKit. |
| WorkOS shows a redirect URI error | The redirect URI in WorkOS and WORKOS_REDIRECT_URI must match exactly, including https:// and /api/v1/auth/callback. |
First-user setup is not available. |
On an empty database, CUTTLELY_BOOTSTRAP_EMAIL is unset or doesn’t match the email you signed in with. Fix it on the Environment page. |
| A WorkOS variable is empty after you changed the Blueprint | Render asks for sync: false values only when the Blueprint is created. Set them on the Environment page. |
| A Dashboard change to a variable came back after a sync | The variable has a value in render.yaml, and the sync set it back. Change it in the file. |
| Analyst mode stops with a role error | cuttlely-db can’t create roles. Set CUTTLELY_POSTGRES_URL to a separate database. See Analyst database. |
Failed to fetch dynamically imported module |
A file was asked for during a deploy or a restart. The page reloads once the server answers; if it stays, reload the tab once the service is live. |
| Stored credentials stop working | FLOWISE_SECRETKEY_OVERWRITE changed. Put the original value back. |
WorkOS setup field by field: WorkOS AuthKit setup.