Upgrading Cuttlely
An upgrade has three steps: back up, upgrade, and check. If something goes wrong, you roll back by restoring the backup and starting the version you had before.
Read the release’s entry in the changelog first. Anything you have to change yourself is listed under Upgrade notes / breaking changes. Releases and support explains which versions get fixes.
On the starting page after an in-place restart, liveness can already answer 200 while sign-in and /api still answer 503. Wait for startup to finish before signing in or calling the API.
Upgrading to 1.7.17
Section titled “Upgrading to 1.7.17”For an existing installation, quiesce writers and verify an off-host backup of the application database, runtime data and original installation key before replacing the container. Start with the original data or a restored copy, then use Server Settings → Database → Upgrade storage. The screen lists blockers and the required PostgreSQL space.
Supply the same external PostgreSQL configuration and installation key to each replacement. After cutover, acknowledged runtime messages, settings and memory notes survive loss of the web and worker disks. Direct shell edits and files generated by code execution in local workspaces can disappear. Migration and replacement checks.
Upgrading to 1.7.16
Section titled “Upgrading to 1.7.16”If bundled skills blocked Upgrade storage in 1.7.15, keep the original disk attached and reopen Application database storage after updating. The inventory recognizes unchanged bundled skills and rebuildable metadata. Review any custom or modified files that still appear. For a source installation, run runtime setup for the updated checkout to generate the skill catalog. Operator-supplied files.
Upgrading to 1.7.15
Section titled “Upgrading to 1.7.15”Before updating a 1.7.14 Dashflows PostgreSQL pilot: check whether the service already has CUTTLELY_APP_DATABASE_STORES=1. In 1.7.15 the same flag also selects durable server settings when the host supplies DATABASE_TYPE=postgres. Put the existing installation encryption key and complete database connection in the web and worker host environments before starting the new version. Preserve any separately configured settings database URL. Missing settings can block startup. Back up the original disk before changing a hosted environment, since the change itself may replace the disk. A pilot with local side stores still needs the operator cutover.
For a new installation on disposable disks, supply the PostgreSQL connection, a stable installation key and CUTTLELY_APP_DATABASE_STORES=1 through the host before first startup. PostgreSQL stores the installation, managed files and flow version history. You can select a private S3-compatible bucket for application uploads. Supply that same configuration to every web server and worker.
For an existing PostgreSQL installation, retain the original volume, drain writers and run Server Settings → Database → Upgrade storage. For SQLite, first take an off-host backup, run the verified application copy on the original disk and switch to its PostgreSQL destination with the existing encryption key. Then complete the side-store upgrade. Verify sign-in, saved credentials, workflows and files on a replacement before releasing the original volume. Local runtime sessions and temporary work can restart empty. Operator guide · Disk inventory.
Upgrading to 1.7.14
Section titled “Upgrading to 1.7.14”Back up the application database, settings, installation key and data directory. Use matching server and widget packages. The instance operator can keep authority and saved settings in a separate PostgreSQL database on an ephemeral host. Operator storage and recovery.
Keep your existing installation key for a normal upgrade. To rotate it, first restore an isolated copy and follow the staging and rollback procedure. Rotation retires modern inbound access-key digests on the staged copy. Plan to issue replacements before reopening traffic and to retest pinned queries and AuthKit. Access-key enforcement remains off by default.
New application credential, MCP auth and webhook records use authenticated encryption immediately. A previous Cuttlely version cannot read those new records. To downgrade, restore the pre-upgrade backup and its original key together.
Upgrading to 1.7.13
Section titled “Upgrading to 1.7.13”Analyst on Postgres now keeps each role’s encrypted password and legacy workspace mapping in the application database. Provisioning imports existing .enc files unchanged and leaves them untouched; new passwords are stored only in the database. Back up the application database, encryption key and settings before upgrading.
One-time upgrade behavior on ephemeral or unshared disks: the new instance has no .enc file to import, so it sets a new Analyst role password once. While the old instance is still running, its Analyst queries fail authentication (28P01) until it exits.
- Only Analyst is affected. Other features and stored credentials are not.
- It happens once per environment. After that, every restart and every extra instance reads the same password from the database.
- Stop the old instance before starting the new one to avoid it, so only one instance runs during that deploy.
- Installs whose new instance sees the same
SECRETKEY_PATH(single host, persistent volume) import the existing file and are not affected.
If the legacy analyst-role.enc workspace mapping was already lost before this upgrade, it cannot be recovered automatically. Keep the same credential encryption key: a changed key refuses the stored secret rather than resetting the role password. Analyst storage.
Harnesses and runtime limits. Router mode remains the default. Try profiles are reused per flow and owner, and a new chat clears the previous chat’s runtime memory. A second turn for a busy profile returns HTTP 409. Where the supervisor is available, saved limits that need a restart apply after current work finishes. Review their status in Admin → Server settings. Time limits and caps.
Upgrading to 1.7.12
Section titled “Upgrading to 1.7.12”Back up the application database, encryption key and settings first. Use matching 1.7.12 server and widget packages. This patch adds no schema migration or required configuration change and preserves default-Off access-key enforcement.
- Roster stdio framing. Roster now connects over the stdio framing the agent runtime uses; it had never connected since 1.0. Boot is about 60 seconds faster per mixed-model harness (about 2 minutes with two), and the chief’s
run_specialisttool now registers. Router traffic is unchanged. The direct chief path is fixed in 1.7.13 through agent mode. - ETL run control. Starting, resuming, pausing and cancelling ETL runs at the same moment no longer leaves a cancelled or paused run running or starts a second run for one pipeline. A start during a pipeline delete returns HTTP 409 and a resume is refused, and a pause or cancel that reaches a finishing run returns HTTP 409 without overwriting its final status. ETL.
- 1.7.11 and 1.7.10 changes. If you are upgrading from 1.7.10 or earlier, the 1.7.11 startup-tool-list fix also applies. If you are upgrading from 1.7.9 or earlier, the 1.7.10 health-check path and runtime-recovery changes also apply. Follow Upgrading to 1.7.11 and Upgrading to 1.7.10.
Upgrading to 1.7.11
Section titled “Upgrading to 1.7.11”Back up the application database, encryption key and settings first. Use matching 1.7.11 server and widget packages. This patch adds no schema migration or required configuration change and preserves default-Off access-key enforcement.
- Agent runtime startup. The runtime’s startup tool list is no longer refused while the runtime status is
restarting, so it can answer health and come up. Tool calls and chat completions are still refused until then. #542. - 1.7.10 health checks and recovery. If you are upgrading from 1.7.9 or earlier, the 1.7.10 health-check path and runtime-recovery changes also apply. Follow Upgrading to 1.7.10.
Upgrading to 1.7.10
Section titled “Upgrading to 1.7.10”Back up the application database, encryption key and settings first. Use matching 1.7.10 server and widget packages. This patch adds no schema migration or required configuration change and preserves default-Off access-key enforcement.
- Health check path (operators). The Docker image
HEALTHCHECK, the Compose files and the Render BlueprinthealthCheckPathnow probeGET /api/v1/ping/liveinstead of/api/v1/ping. If you run your own gateway, load balancer, orchestrator probe or a Render service created before this change, update its health check path to/api/v1/ping/liveafter upgrading. Keep/api/v1/pingfor readiness monitoring. Plaindocker runshould use--restart unless-stopped. Details are in the containment section below. - Dash Flows on Postgres (preview).
CUTTLELY_APP_DATABASE_STORESstays off by default. Storage on Postgres. - Known issue in 1.7.10 (fixed in 1.7.11). The agent runtime could deadlock on a cold start and restart in a loop (
x-cuttlely-hermes: restarting). RaisingCUTTLELY_HERMES_HEALTH_GRACEdid not help. Upgrade to 1.7.11 (#542).
Agent runtime containment upgrade
Section titled “Agent runtime containment upgrade”Back up the application database, encryption key and settings before upgrading. This containment change adds no schema migration and preserves default-Off access-key enforcement. It improves recovery and availability; the runtime descriptor-leak fix is separate.
Verify your gateway probe path. Gateways, load balancers and container health checks should use GET /api/v1/ping/live. The supplied Dockerfile, Compose files and Render Blueprint now use it. It stays available during a runtime-only failure, so the UI, sign-in and operator recovery routes remain reachable. It returns 503 during the boot compile gate on the container’s first boot only (after a restart in place it answers 200 while the recompile gates readiness), and whenever the application database is unreachable. Both health endpoints are unauthenticated and expose the existing health headers. Use strict /api/v1/ping separately for monitoring and agent-capacity checks; do not use it to remove the UI from traffic. Health checks.
The supervisor now recovers inside the image, including with plain docker run and no restart policy. After an exhausted burst it writes a diagnostic snapshot/status, waits 300 seconds with liveness green and readiness 503, resets the burst, then restarts the server and runtime together in place. Only CUTTLELY_EXIT_ON_EXHAUSTED=1 requests a non-zero container exit. Review the new reset, backoff and cooldown defaults in Agent runtime recovery, and point custom probes at the liveness and readiness routes.
Agent calls made while the supervisor reports down, restarting, cooldown or exhausted return HTTP 503 with a JSON RUNTIME_UNAVAILABLE code and Retry-After. In 1.7.13, Orchestrate and A2A execution calls also refuse before charging the access key or starting a stream; A2A puts the code in the JSON-RPC error data. A2A discovery and task reads remain available. Authentication and authorization still run first. Wait for runtime recovery before starting another run; UI and service administration requests remain available while Node and its database are healthy.
Upgrading to 1.7.9
Section titled “Upgrading to 1.7.9”Back up the application database, encryption key and settings first. Use matching 1.7.9 server and widget packages. This patch adds no schema migration and preserves sign-in configuration, roles, memberships and default-Off access-key enforcement.
- LangSmith. A chatflow containing only a Harness node uses its existing Analytics credential and project. Save LangSmith as enabled in Configuration → Advanced → Analytics. A Tool Agent wrapper is no longer required. Callbacks remain in process; separate workers do not receive serialized credentials or callbacks. LangSmith tracing.
- ETL. Source scans and unchanged-source bookkeeping yield to HTTP and cancellation requests. Interrupted repository files resume without false duplicate errors. If a run reaches its document-error limit, inspect the first cause now included in its failure message before retrying. Existing validation and error limits still apply. ETL recovery.
- First owner from host configuration (optional). On an empty database with local password sign-in enabled and no AuthKit, set
CUTTLELY_INITIAL_OWNER_EMAILand exactly one password source. Prefer a secret file containing the hash generated bypnpm hash-password. This creates the owner once, preserves every existing account and does not bind an instance operator. Remove the bootstrap variables after the first successful start. Invalid configuration on an empty installation stops startup. Host configuration. - Imports. An edge whose source output or target input no longer exists is dropped and reported, instead of being moved to another port. Review the import report and reconnect the intended ports. Bring your flows.
- Operator requests. Refused code requests and confirmations appear as errors. Your own active-code message explains how to use it; shared limits keep neutral wording. Existing proof, expiry and rate-limit checks remain enforced. Instance operator.
- Dependency security. The XML parser override includes the fix for quadratic CPU use on unterminated stop-node tags. No operator setting is needed.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from earlier versions.
Upgrading to 1.7.8
Section titled “Upgrading to 1.7.8”Back up the application database, encryption key and settings first. Use matching 1.7.8 server and widget packages. This patch adds no schema migration and preserves stored roles, memberships and the selected sign-in method. Access-key enforcement remains Off by default.
Existing Version History GitHub connections keep their current branch. To select another branch, disconnect and reconnect using the new Branch dropdown. On a standard Dev/Prod pair, choose the same branch on both servers. Named environment chains keep the branch mappings in their environment list. Repository protection rules still apply; choose a branch the token can write to. Version History.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from earlier versions.
Upgrading to 1.7.7
Section titled “Upgrading to 1.7.7”Back up the application database, encryption key and settings first. Use matching 1.7.7 server and widget packages. Stopping an agent-team chat now cancels only that chat’s runtime run and model connection; other chats using the same specialist keep running. This patch adds no schema migration or configuration change and preserves stored roles and memberships. Access-key enforcement remains Off by default.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from earlier versions. Harnesses.
Upgrading to 1.7.6
Section titled “Upgrading to 1.7.6”Back up the application database, encryption key and settings first. Use matching 1.7.6 server and widget packages. This patch adds no schema migration, keeps stored roles and memberships, and does not change your selected sign-in method or enforcement mode. Enforcement remains Off by default.
- Imported queries. Import & verify chooses required date, calendar and numeric test inputs automatically. Optional filters without defaults stay unset. Imported test stamps are still untrusted: run Import & verify on the target server and resolve every required check before Publish.
- Unpublished harness previews. New draft previews keep their conversation state outside runnable profiles. Files left by previews on an older build are not deleted automatically. If Publish reports an unowned leftover profile, use a new unused harness name or ask the instance operator to inspect it; do not delete unattributed files blindly.
- User administration. Password reset links and account controls retain the existing server permissions and owner protections. Disable user ends local sessions, revokes invite/reset links and disables the user’s access keys. Automations using those keys may stop. Reactivate user preserves roles but does not restore those sessions, links or keys. Review Users without AuthKit before using these actions.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from earlier versions. Installing this patch does not enable local users, mail delivery or access-key enforcement.
Upgrading to 1.7.5
Section titled “Upgrading to 1.7.5”Back up the application database, encryption key and settings before upgrading. Use matching 1.7.5 server and widget versions. This patch fixes follow-up prompts that sent blank or invalid temperature values, or a temperature for OpenAI reasoning models that do not accept one (#491). It also fixes Import & verify reporting false output contract mismatches (#494) and reporting untested contracts as mismatches (#495). Version History can now connect a GitHub repository that already has files or commits (#482); an existing connection keeps working, and the server takes ownership only of paths its own copied commits wrote. It adds no schema migration and changes no configuration. It preserves the existing enforcement mode, which remains Off by default.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from older versions.
Upgrading to 1.7.4
Section titled “Upgrading to 1.7.4”Back up the application database, encryption key and settings before upgrading. Use matching 1.7.4 server and widget versions. This patch adds one migration at startup: a nullable importVerify column on flow_version_state. Existing rows are unchanged and Publish behaves as before. It preserves the existing enforcement mode.
Analyst storage is Auto when CUTTLELY_ANALYST was never set. A host or saved value of off, false, 0, or no stays off. Auto creates a private store. On Postgres that store is a schema and a login in the application database, created the first time the analyst runs. If that database user cannot create roles, the analyst tool fails and says so. Cuttlely still starts, and GET /api/v1/ping still returns pong. Set off, or set CUTTLELY_POSTGRES_URL to a separate database, before upgrading when you do not want that private store. See Analyst mode.
Importing a harness attaches one existing credential with the same name and type, including a nested credential id next to an empty credential slot, and stops when the match is missing or ambiguous. Import & verify retests saved queries on this server before Publish. Try the demo on a fresh install saves the staged team.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from older versions. Enforcement remains Off by default; preparing or installing this patch does not activate it.
Upgrading to 1.7.3
Section titled “Upgrading to 1.7.3”Back up the application database, encryption key and settings before upgrading. Use matching 1.7.3 server and widget versions. This patch adds no schema migration and preserves the existing enforcement mode.
If a request gets no answer, the page stays in place and says the server could not be reached, instead of showing Something went wrong. Importing a saved chatflow keeps a connection that still points at the same input when only the handle type name changed.
Brief connection drops while you edit are retried quietly for reads and option loads. A save that finished while you kept editing no longer marks later edits as saved. Draft and Live saves of an existing flow, without new file data, are kept and retried quietly when a request gets no answer; if that still fails, the canvas keeps the edits and offers Retry. A save with new file data is attempted once per Save and is not resent automatically. After an unanswered create, check your flows in another tab before trying again. Self-hosted installs behind a reverse proxy keep idle connections open for 65 seconds by default; tune this with HTTP_KEEP_ALIVE_TIMEOUT_MS and HTTP_HEADERS_TIMEOUT_MS. See the reverse proxy guide.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from older versions. Enforcement remains Off by default; preparing or installing this patch does not activate it.
Upgrading to 1.7.2
Section titled “Upgrading to 1.7.2”Back up the application database, encryption key and settings before upgrading. Use matching 1.7.2 server and widget versions. This patch adds no schema migration and preserves the existing enforcement mode.
Show tool events starts Off on chatflows and On on agentflows, multiagent flows and Harness canvases. Choose it in Configuration > Chat and select Save for that flow. Answers, sources, attachments and Harness run cards remain visible. Shared links and website embeds do not display the other live tool or step status cards; see Share and embed a chat.
Same-server calls between flows and Harnesses use the parent caller’s permissions. With access-key enforcement On, grant every target and its required scopes rather than relying on a saved card credential. Calls from an external Harness worker recheck the key and permissions against the application database. Remote Base URL overrides keep their configured HTTP credential path.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from older versions. Enforcement remains Off by default; preparing or installing this patch does not activate it.
Upgrading to 1.7.1
Section titled “Upgrading to 1.7.1”Back up the application database, encryption key and settings before upgrading. Use matching 1.7.1 server and widget versions. No new schema migration is needed for the PostgreSQL delete fix. Existing bearer values, grants, quotas and enforcement mode are preserved.
For an existing prediction key that was saved without view permission, edit it in Access Keys and add the permission named by the refusal (chatflows:view or agentflows:view). A referenced Harness needs its own grant and harness:run; execution uses view permission while edits still need edit rights. New flow-first presets include these prerequisites.
Duplicated flows start Private and explicitly omit copied key grants. Pick or create access for the copy’s new ID before calling it. API Endpoint reloads saved access and confirms saves. Review workspace-wide keys, which can also call private flows.
The 1.7.0 operator onboarding and recovery requirements below still apply when upgrading from older versions. Enforcement remains Off by default; upgrade preparation does not activate it.
1.7.0 security-exception upgrade
Section titled “1.7.0 security-exception upgrade”The 1.7.0 security-exception release changes previously allowed browser service administration under the approved security exception. Back up before upgrading and retain a host/CLI recovery route.
- Back up the application database, installation encryption key and saved settings, including the host-only operator binding when one exists.
- Only an actual valid host CLI operator binding is inherited automatically. Legacy accounts without one—including older CLI-password owners—must complete the one-time Admin > Server settings > Instance operator > CLAIM flow with a code printed only in the host log, available in the hosting dashboard or Docker/Compose logs. No account is inferred. The CLI is emergency recovery when nobody can sign in or host files are unsafe; run it as the application OS user.
- On a fresh install, configure sign-in on the host, create/sign in to the intended active owner, then explicitly claim from the panel with host-log proof. Browser setup codes create accounts only. A supported host CLI first-owner create/reset already records a verified binding and needs no claim.
- Only the designated instance operator can change service-wide settings; other owners retain tenant permissions. With
CUTTLELY_INSTANCE_OPERATORentirely unset, a valid managed binding applies. JSON overrides it;none, empty or invalid overrides close claims and browser authority. Every defined override disables panel transfer/revoke/rebind/recovery. Removing an override can reveal a prior managed binding. - Use the panel for routine transfer or revoke. Revocation leaves a Disabled tombstone. Disabled/corrupt state needs separately confirmed host-log recovery proof; a changed database requires a fresh host-log REBIND by the previously bound active owner. No ordinary bootstrap reopens after revocation or a DB change. Keep authority/tombstones outside generic database/settings restores.
- Recreate containers with the same Compose file/options for host override changes. All shipped root/directory/queue/worker services omit an unset operator override and preserve explicit empty/none/JSON values; a plain restart retains the old container environment.
- Access-key enforcement remains Off by default. Back up the encryption key and database, rehearse migrations on a restored test installation, resolve review findings and custom-assistant incompatibilities, then plan the separate confirmed Off → Shadow → On activation. MySQL/MariaDB migrations can commit partially; see access-key rollout.
Read operator onboarding and recovery before deployment. Operator enrollment and access-key activation are separate steps.
These sanitized figures were captured on product 1.6.1 at feature head 5c08b125, before the 1.7.0 version bump. Enrollment did not enable enforcement.
What to back up
Section titled “What to back up”For PostgreSQL-only after verified cutover, back up the entire application database, including every Cuttlely-owned schema, and keep an independent protected copy of the installation key and host boot configuration. If settings, identity, queues or workflow data use separate services, include those services in the recovery plan. For hybrid, also back up the bucket and its object versions or retain equivalent recoverable copies. Restore the database and bucket to compatible points so attachment references resolve. A database-only restore cannot restore deleted bucket objects.
For SQLite and for either stage of a migration, retain the original directories and key as well. Stop writers or use a consistent filesystem snapshot, including SQLite WAL data. A live copy of only the main .sqlite file can miss committed writes. These are the default locations:
| Install | Folder |
|---|---|
| Docker Compose | The volume cuttlely_cuttlely-data, mounted at /var/cuttlely |
npx cuttlely |
The Docker volume cuttlely-data, mounted at /var/cuttlely |
| Render | The disk mounted at /var/cuttlely, plus the Postgres database |
| From source | ~/.cuttlely (database and key) and <checkout>/.cuttlely (history, harnesses, ETL, uploads) |
In the standard SQLite container volume, data/database.sqlite is the database and data/encryption.key is the key that decrypts your credentials. A database backup without its key leaves every stored credential unreadable. versions/ holds every saved version of your flows. harnesses/, etl/ and storage/ hold harness records, pipelines and uploads.
settings/ holds the server settings file the admin panel saves (server.json, its last good copy and a change history). Secrets in it are encrypted with the same key. The separate host-only instance-operator.json binds the CLI break-glass account to the database connection; browser/CLI settings restore never restores it.
If you set DATABASE_PATH, SECRETKEY_PATH, CUTTLELY_DATA_DIR or FLOWISE_SECRETKEY_OVERWRITE yourself, back up what they point to, and keep the key value. CUTTLELY_SECRETKEY_OVERWRITE is the same key. If both are set and the values differ, Cuttlely refuses to start.
An existing Dashflows PostgreSQL pilot can still have other local stores. Check the operator storage report and complete an empty-disk recovery rehearsal before retiring the source volume.
1. Back up
Section titled “1. Back up”Stop Cuttlely first, so the database file is complete.
Docker. Run these from the folder with docker-compose.yml. Compose names the volume cuttlely_cuttlely-data; docker volume ls shows it.
docker compose stop cuttlelydocker run --rm -v cuttlely_cuttlely-data:/var/cuttlely -v "$PWD":/backup busybox \ tar czf /backup/cuttlely-backup.tgz -C /var/cuttlely .Keep cuttlely-backup.tgz somewhere safe. It holds your encryption key.
npm launcher. Run cuttlely stop, then use the same docker run with the volume name cuttlely-data.
From source. Stop the server (Ctrl+C in its terminal), then:
tar czf cuttlely-backup.tgz -C ~ .cuttlelytar czf cuttlely-checkout-data.tgz -C <checkout> .cuttlelyRender. Render snapshots the disk once a day and keeps each snapshot for at least seven days. You can restore a snapshot from the service’s Disk page. For the database, export it with pg_dump using the connection string on the database’s page in the Render Dashboard, or use the backups your Postgres plan includes.
2. Upgrade
Section titled “2. Upgrade”Docker, published image.
docker compose pulldocker compose up -dIf you pinned a release with CUTTLELY_IMAGE=ghcr.io/cuttlely/cuttlely:X.Y.Z in .env, change the tag to the new version first.
Docker, built from your checkout.
git pulldocker compose up -d --buildFrom source.
git pullpnpm install --frozen-lockfilepnpm buildCUTTLELY_LOCAL_ADMIN=true bash scripts/start-cuttlely.shTo move to a specific release instead of the newest main, run git checkout vX.Y.Z in place of git pull.
Render. Every push to main deploys. To move to a release, deploy that release’s commit.
On the first start, Cuttlely updates its database by itself. That start can take a little longer. Do not stop it part way. A Flowise database that already has application data but not the 3.1.4 workspace schema is refused first, with unsupported upgrade path, upgrade via Flowise 3.1.4 first, and that database is not changed. Upgrade it in Flowise 3.1.4 first, then move it: Move a whole install. A database with no application data, including a first start that stopped part way, continues migrating.
3. Check
Section titled “3. Check”- Wait for application liveness to answer
pong. On Docker:docker compose exec cuttlely curl -fsS http://127.0.0.1:43117/api/v1/ping/live, ordocker compose psuntil it sayshealthy. Check strict/api/v1/pingseparately before testing agent runs. - Check the version:
curl -fsS http://localhost:43117/api/v1/version, or open the About dialog from the profile menu. - Sign in. Open a flow, its Version history, Credentials and your harnesses. Ask a flow one question.
If you moved a whole Flowise 3.1.4 install into Cuttlely before this start, existing passwords still work. Flowise stored bcrypt password hashes; Cuttlely accepts them and rehashes to its current scheme after the first successful sign-in for each account. If the owner cannot sign in after the move (for example the email changed), reset it from a terminal with:
pnpm --filter @cuttlely/server user --email you@example.comRoll back
Section titled “Roll back”A new version can change the database in ways the version before it cannot read. To roll back, restore the backup you took and start the version you had before. Do not start an older version on a database a newer one has already opened.
Docker.
docker compose downdocker run --rm -v cuttlely_cuttlely-data:/var/cuttlely -v "$PWD":/backup busybox \ sh -c 'rm -rf /var/cuttlely/* /var/cuttlely/.[!.]* ; tar xzf /backup/cuttlely-backup.tgz -C /var/cuttlely'Then set CUTTLELY_IMAGE=ghcr.io/cuttlely/cuttlely:<the version you had> in .env and run docker compose up -d.
From source. Stop the server, run git checkout v<the version you had>, pnpm install --frozen-lockfile and pnpm build. Put the two backed-up .cuttlely folders back in place, then start the server.
Render. Restore the disk snapshot from before the upgrade on the Disk page, restore the database from your export or backup, and deploy the commit you had before.
If a server setting stops Cuttlely from starting
Section titled “If a server setting stops Cuttlely from starting”Settings saved from Admin, Server Settings apply when Cuttlely starts. If two starts in a row do not finish after a change, Cuttlely puts back the last settings that started and says so in the log. The settings that did not start are kept beside them as server.rolled-back.json.
You can also fix it by hand. Most changes apply at the next start. The sign-in failure limit, the two session lifetimes, and the shutdown wait apply without a restart. A host value overrides the saved one. Secret values are never printed.
| Command | What it does |
|---|---|
pnpm settings list |
What is set, and whether it comes from the host or the file |
pnpm settings unset NAME |
Removes one saved setting, for example CUTTLELY_LOCAL_ADMIN |
pnpm settings restore |
Goes back to the last settings that started |
In Docker, run them as the node user: docker compose exec -u node cuttlely pnpm settings list. To start once without the file, set CUTTLELY_IGNORE_ADMIN_SETTINGS=1 (in .env for Docker, in the shell from source, or as an environment variable on Render).
Publish check limits set outside their range
Section titled “Publish check limits set outside their range”Ignoring a host value outside its range, instead of pulling it into range, is intentional. It applies to CUTTLELY_CHECK_MAX_TOKENS, CUTTLELY_CHECK_MAX_SECONDS, and CUTTLELY_CHECK_CONCURRENCY. A number outside the range used to move to the nearest bound. It is now ignored. A saved value inside the range is used, otherwise the default. CUTTLELY_CHECK_MAX_SECONDS=5 now uses 180, not 10. The log line is [server]: CUTTLELY_CHECK_MAX_SECONDS is not a usable runtime limit, so another value is used. The same line names whichever of those variables was ignored. Set a value inside the range if you wanted the old bound.
AuthKit after local passwords
Section titled “AuthKit after local passwords”Configure WORKOS_API_KEY and WORKOS_CLIENT_ID, restart, then select WorkOS under Admin > Auth / SSO. That method change ends existing interactive sessions. A verified AuthKit email links the one existing user with that mailbox; two users with the same mailbox are not linked. A later restart does not repeat the session change. Environment-only inference applies only when the first boot after this upgrade has no durable authentication state. Turn AuthKit on.
Legacy WorkOS subjects before OIDC activation
Section titled “Legacy WorkOS subjects before OIDC activation”An upgrade copies legacy WorkOS subjects from externalId into provider-scoped links when the installation has a stable WorkOS provider identity. That attributable state must finish before generic OIDC can be activated. If an installation used WorkOS and later returned to Local login without retaining a stable WorkOS provider identity, those subjects are recorded as unmigrated and inert. They cannot match the configured OIDC provider, do not block OIDC activation, and remain visible as a count on Admin > Auth / SSO.
Inbound access-key migration and opt-in
Section titled “Inbound access-key migration and opt-in”For a build containing the inbound access-key migration, back up the application database and installation encryption key together. Validate on a restored backup before changing live enforcement. With a built server and the restored database’s normal connection environment, run:
node scripts/access-keys-migration-report.cjsThis read-only report prints aggregate counts for legacy bindings and Harness-name resolution, without secrets. On SQLite and PostgreSQL, startup applies the migration in a single transaction and a failure rolls it back. On MySQL and MariaDB, ALTER TABLE and CREATE TABLE commit implicitly, so a failed migration can leave a partially applied schema; recover by stopping the server and restoring the database and installation encryption key from the backup taken before the upgrade, then fix the cause and restart. MySQL/MariaDB migration paths have not been exercised against a live server in this release’s validation. Review orphan/cross-workspace bindings and unresolved names; none grant access. Existing bearer values, owners and workspaces are preserved without forced rotation. Existing flow bindings and Harness lists become exact resource grants, never all-resource access. Public share/embed transports and provider credentials remain separate.
INBOUND_ACCESS_V2=off is the default. It preserves legacy authorization and leaves new issuance, policy edits and rotation unavailable; revocation remains available. Save Shadow in Admin > Server settings > Security & network > Access keys (or set host INBOUND_ACCESS_V2=shadow and restart) to serve legacy flow decisions while comparing scoped flow authorization. Review access-key use events in Admin > Audit log for shadowMismatch, legacyAllowed and scopedAllowed. This does not simulate quota admission or every route: exercise the route matrix separately. Enable on only after migration diagnostics and measured parity have been reviewed. The instance-operator panel control applies on the next request and survives restarts. A host mode always overrides it and locks the field; an operator can force off there even when the saved mode is on. The effective mode and its source are displayed. Review confirmation warns about private custom ASSISTANT integrations returning 401, unresolved Harness names, caller restrictions, quotas and single-instance admission. Disabling is reversible to Off. No installation is activated automatically.
Access Keys now holds SDK/Settings and per-flow keys in one workspace list. New keys have no operations or resources. Policy saves replace migration compatibility with the explicit grants/scopes shown, without changing the bearer. Keep CUTTLELY_API_KEY_INSTANCES=1 (default); RPM is per process and resets on restart, while daily/monthly UTC counters persist in SQL. Redis/multi-instance limiting is not implemented.
To roll back enforcement, restore off and restart. Scoped principals are then refused and legacy principals use the compatibility path. Retain the added schema: modern credentials cannot be reconstructed as legacy secrets by downgrading tables. Full migration and rollback reference.
User Management also supports cancellation of a pending invitation, including another pending owner invitation, by an active organization owner or by an Admin in Users (/users). Admin is the built-in Admin role, or any active team role with users:manage. Invite links are revoked. Removing an active or disabled person from every team stays limited to an active organization owner. Accepted invitations, self-removal and the last active owner are refused. Active owners remain read-only in the UI.
Invites after 1.3.0
Section titled “Invites after 1.3.0”From 1.3.0 an invited person joins only through their own one-time invite link. The link is single use, expires after the invite link lifetime (72 hours by default), works only for that person and the email it was sent to, and stops working when a newer link replaces it or the person is disabled or removed from the team or the organization. A sign-in whose email matches a pending invite never activates it, even when the email is verified, and shows You have a pending invite. Open the invite link from your email to join.
Check the people who had not joined yet when you upgraded:
- Listed as
invited. They are pending. An invite link they already have still works until it expires. Otherwise make a new one withPOST /api/v1/users/:id/reset-linkfrom their team and send it to them. - Added with Add User before 1.3.0 and never signed in. Those were stored as
active, so they are not pending and can still join by email match. To make them use a link, remove them and add them again. The new invite shows the link.
An invite link issued before the upgrade keeps working until it expires (at most 168 hours). With Local sign-in active it still sets a password. With a remote sign-in method active, open the link and select Accept invite with provider; the button names the selected provider, and the link cannot set a local password.
The full rules are in Invite people and Security.
Upgrading to 1.3.1
Section titled “Upgrading to 1.3.1”1.3.1 fixes two security issues in versions up to and including 1.3.0: GHSA-2v98-33pc-jj6f (setup code) and GHSA-4p9j-8j59-gwr7 (public config endpoints). Upgrade as above. What else changed is in the changelog.
- New installs. A server with no account opens one
/setuppage. The server log prints a ready block with the/setup#code=link and a setup code, and prints it again every five minutes while setup is open. The code lasts 60 minutes and works once. An install that already has an owner is not affected. - Building from source.
pnpm installnow fails on a Node version below 24 (engine-strict=true). The Docker image already uses Node 24. - MCP and Orchestrate callers. JSON bodies over 1 MB are refused with
413. MCPPOST /api/v1/mcp/<flow id>now applies the flow’s Rate Limit, andGETanswers405. - Shared chat pages. The public chatflow config no longer returns
overrideConfig, so a shared chat page no longer sends saved overrides with each question.
How upgrades are tested
Section titled “How upgrades are tested”Every full pnpm verify runs an upgrade check. It starts the current server on data written by an older cuttlely: a chatflow with two saved versions, an agentflow, a harness with two specialists, and a credential. It then checks that each of these survived, and that a question to the chatflow still gets an answer, which proves the credential still decrypts. It also checks that a new save records a version and that a second start works. Run it on its own with pnpm upgrade:check.
For maintainers: the data is in scripts/fixtures/upgrade/, made by node scripts/upgrade-fixture.mjs --server-root <built checkout of the older version>. After each release, refresh it from that release’s tag so the check always starts from the last version people run.

