Server settings
Admin > Server Settings is where the host-designated instance operator changes how this server runs: sign-in, the database, the agent runtime, the analyst, models, file storage, security, integrations, testing and limits, and advanced options. You change values on the page and review them. Live limits apply on the next use. Each other setting says when its saved change takes effect. Initial operator designation and recovery require access to the host.
Who can open it
Section titled “Who can open it”The host-designated instance operator must be signed in with a real browser session and be an active owner of the current organization. Other organization owners see Only the instance operator can change server-wide settings and receive no configuration or history metadata. Workspace admins, API keys and bearer-only callers are refused. There is no first-account or oldest-owner exception.
Upgrade/setup requirement: Legacy installations without an actual host binding use Admin > Server settings > Instance operator for an explicit one-time claim with a code printed only to the host log. Only verified host CLI bindings grandfather automatically; no legacy account, login method or owner role is inferred. The panel supports transfer, revocation with a durable Disabled tombstone, and separately confirmed host-proof recovery/rebind. The CLI is emergency recovery only. Any defined CUTTLELY_INSTANCE_OPERATOR value disables panel lifecycle changes; JSON/none precedence and invalid/empty fail-closed behavior remain. See operator onboarding and recovery.
Community prompt
Section titled “Community prompt”After the first successful flow run on an install, Cuttlely may show a local-only “It worked!” prompt: one line in the server log and a dismissible UI toast with a link to the project on GitHub. It never calls out on its own — the link opens only when you click it — and it shows at most once per install or user. Set CUTTLELY_DISABLE_IT_WORKED=true to turn it off everywhere.
Set up your server
Section titled “Set up your server”A fresh server shows three optional first steps at the top: Sign-in for your team (AuthKit), Analyst, and A model key (Credentials). Each opens the same section of the page. Skip for now hides them; nothing waits on them.
Change a setting
Section titled “Change a setting”-
Pick a section on the left, or search. Search matches labels, help text and the variable name.
-
Change the value. Each setting says in plain words what it does, and shows its variable name in small type for reference.
-
The bar at the bottom counts your edits. Select Review and save.
-
Review lists each change from old to new. Secrets show only as set, replaced or removed. A change marked High risk (it could stop Cuttlely from starting, or keep people from signing in) needs
RESTARTtyped before Save changes works. -
A live limit applies on the next use. Agent runtime limits that need a restart show Pending: applies when idle when the server can restart itself. Other startup settings wait for a restart; select Restart now in the bar when one still needs it. When this server cannot restart itself, the button says How to restart.
Live limits apply on the next use. Restart-type limits apply when idle on supervised installations. Other startup settings apply at the next restart, and until then the server keeps running with what it started with. Discard puts the saved file back the way it was at start.
Failed sign-ins before lockout, the idle session lifetime, the absolute session lifetime, and the shutdown wait are runtime limits. A shorter session lifetime ends sessions that are already signed in, on the next request, including an AuthKit session. Every WorkOS callback creates its own Cuttlely database session, and using Cuttlely records activity at most once a minute to keep the idle clock moving. If WorkOS does not send a provider session id, the Cuttlely session still uses these limits; only hosted WorkOS sign-out is unavailable for that session. The shutdown wait is 0 to 300000 milliseconds. 0 does not wait. A queue worker picks up a saved value within 5 seconds. If one of these locks people out, set the same variable on the host and start Cuttlely again. The host value overrides the saved one. How many settings changes to keep is the exception: on Security & network, under History, Settings changes to keep (CUTTLELY_HISTORY_KEEP, 1000, from 100 to 10000) is saved on this page, and that saved value wins over the environment variable. The field shows the number in effect and whether it came from the panel, the environment, or the default. A number outside 100 to 10000 is refused. The field stays editable when the environment sets the variable. Server settings API.
Where a value comes from
Section titled “Where a value comes from”| Order | Source | On the page |
|---|---|---|
| 1 | The host: Docker’s .env and compose file, Render’s Environment page or Blueprint, the shell that starts Cuttlely, and packages/server/.env from source. |
Locked, with where to change it |
| 2 | Server settings, saved in the data folder or in configured Postgres settings storage | Editable |
| 3 | The built-in default | Editable; the default is named under the field |
A blank value counts as not set. For ordinary startup settings, a value set by the host wins. The agent team fields in Time limits and caps use a saved value first. A runtime limit is the exception when the host value is outside the range or is not a whole number: that value is ignored and is not clamped. The saved value is used when it is in range, and otherwise the default. The field stays Locked until the variable is removed from the host. Invite and mail settings are the other exception: a value saved here overrides the host, the field stays editable, and the change applies to the next invite or message. The mail password is not one of those: it stays in the environment, and the page only shows whether it is set.
CUTTLELY_FILE_SIZE_LIMIT is the same limit as the existing upload size variable, and DISABLE_CUTTLELY_TELEMETRY is the usage-event switch. When both names of one of those settings are set, the CUTTLELY_ name is used. The encryption key is not on this page. CUTTLELY_SECRETKEY_OVERWRITE is that key’s compatibility alias. If it and the existing overwrite variable are both set to different values, Cuttlely refuses to start. METRICS_PREFIX, under Metrics, is optional. Empty keeps the metric names this server already publishes.
Secrets
Section titled “Secrets”API credentials, passwords, and the AuthKit setup-test seal are write-only. After saving, the field says that a value is saved and never shows it again; type a new one to replace it, or clear it to remove it. They are encrypted with the same value that protects Credentials. They never appear in an answer from the server, the review, History, the log, or Copy as .env.
If the encryption key changes, a saved secret shows Saved, but this server cannot read it; enter it again. With filesystem settings storage, it counts as unset and startup continues. Postgres settings storage requires the original installation key to read the store during startup.
Inspect records before credential-key rotation
Section titled “Inspect records before credential-key rotation”From a built checkout, run pnpm keys:inventory with the deployment’s environment on a trusted host. It uses read-only database connections and reports counts and fixed status codes. On a supported SQLite or Postgres installation, it inspects credential, custom MCP and webhook ciphertext, settings and recovery copies, Analyst role secrets, and key-derived proofs in saved Live and draft flows. It also reads the dedicated Postgres settings store when configured. Access-key digests require reissue and pinned-query and AuthKit proofs require retesting.
A blocked report means the inspection could not read or identify part of the current installation. Keep the active key and investigate the blocked consumer before staging a rotation.
On an installation with a host-supplied encryption key, set CUTTLELY_REQUIRE_KEY_OVERRIDE=true on the server and queue workers to refuse a missing or blank override. Back up the application database and confirm that credentials work with the current key before enabling the guard. The first guarded start records an encrypted verifier in the application database using the supplied key. Later starts refuse a different key. If the guard is off, a mismatch with an existing verifier produces a warning. Recover by restoring the original key from your deployment secret or backup.
Rotate the installation encryption key
Section titled “Rotate the installation encryption key”Rotate during a maintenance window. Stop the web server, queue workers, schedulers and agent-runtime workers that use the installation. Keep backups of the application database, settings store, data and secret directories, hosting configuration and the original key. Restore them into an isolated staging copy and test that the backup opens with the original version and key. Stop that test copy before staging.
- Use a dedicated absolute staging directory named
cuttlely-rotation-<label>. PointCUTTLELY_DATA_DIRandSECRETKEY_PATHat separate restored subdirectories inside it. Create the restored settings directory even when it has no documents. SetDATABASE_TYPEon the host. On SQLite, pointDATABASE_PATHat the restored database directory inside the staging root. On PostgreSQL, set the application connection on the host and restore into an offline database namedcuttlely_rotation_<label>. If the settings store is in PostgreSQL, restore it into a separate offline database whose name also starts withcuttlely_rotation_. - In the built staging checkout, supply the existing key through
CUTTLELY_SECRETKEY_OVERWRITEand the replacement throughCUTTLELY_ROTATION_NEW_KEY, using the host secret store. SupplyCUTTLELY_ROTATION_STAGING_ROOTas the staging directory. For an already rotated copy, also supply its existingCUTTLELY_CREDENTIAL_GENERATION. Runpnpm keys:stage-rotation. Supported sources use a host key and SQLite or PostgreSQL. External credential references are carried over without rewriting their provider secrets. Installations that use a separateCUTTLELY_POSTGRES_URLfor Analyst must handle that store separately before attempting this workflow. - Proceed only if
credential-rotation.jsonin the staging root recordsready. A staging interruption or failure requires a fresh restore into a new staging directory and databases. The original database and files remain the recovery copy. - Start the replacement deployment on the staged paths and databases. Set
CUTTLELY_CREDENTIAL_GENERATIONto the reported generation on the server and all workers and set the host encryption key to the replacement. Remove the temporary rotation inputs from the runtime environment. Keep traffic paused until the replacement process starts and you verify the replacement inventory, settings, a configured credential, OAuth refresh and custom MCP auth where used, webhook signing and Analyst authentication. - Issue replacement modern access keys through Access Keys and update their clients before reopening traffic. Staging revokes the old modern digests on the replacement database. Retest pinned queries and run the AuthKit setup test again if configured. These proofs depend on the key and need new values.
- For rollback, stop all replacement processes and point the deployment back to the retained original database, settings, files, key and generation as a set. Confirm sign-in and a real credential-backed run on the restored deployment. Keep the original key and backups until you have tested that recovery and explicitly accepted the replacement. Finalization is a separate operator decision to retire the old deployment and key under your retention policy.
Test connection
Section titled “Test connection”Analyst, Storage and Models & keys have a Test connection card that tries the values on the page before you save:
- Analyst: signs in to the separate Postgres and says whether its user is read-only (safer for analyst work). Query previews in the run trace is on by default. Each analyst query step stores a short table with the run, the same rows that query already returned. Turn it off to leave those values out of new traces. The row count can still show. Restart to apply.
- Storage: S3, Google Cloud or Azure find the bucket, write a small test file and remove it again. Without an access key, the S3 test uses the server’s own AWS sign-in (for example an instance role), exactly as Cuttlely will.
- Models: fetches your model list and checks its shape.
Errors come back in plain words, never with a secret in them. Model keys themselves live in Credentials; the Models section links there.
Time limits and caps
Section titled “Time limits and caps”The agent team limits below use saved admin setting > host environment variable > default. A host value does not lock these fields. Clear a saved value to return to the original host value, or the default when no host value was set. The review shows that fallback before saving. With nothing saved, existing defaults and runtime behavior are unchanged.
Each editable limit shows the existing source chip: Saved here, Host, or Default. Review and save uses the same operator/owner authorization, validation and History as other Server settings. Values outside the minimum or maximum, or fractional raw values for an integer field, are refused. Fields shown in seconds with an _MS variable store raw milliseconds.
Live applies to the next call or query without restarting or stopping current work. The chat lock lease is also read at each renewal. A saved Restart limit that needs a profile rewrite or an agent runtime restart shows Pending: applies when idle when the server runs under the start script. It stays in the existing restart banner until applied.
Cuttlely waits at least 10 seconds after the last save, then checks for an idle runtime every 5 seconds while limits are pending. Work in progress is never cut off to apply these limits: open chat turns, async agent team runs, pipeline work and other tracked background runs finish first. At idle, new runs receive the short restarting answer, and Cuttlely checks once more before restarting through the same path as Restart now. That restart reloads saved settings, recompiles outdated profiles and restarts the agent runtime. If a run arrives during the check, Cuttlely resumes admission and waits for the next idle moment. An earlier manual or service restart also applies the saved values.
Without a supervisor or an available restart handler, the chip says Pending: applies at the next restart; saving does not restart the server. If the same limits are still pending after an automatic attempt, automatic application stops, the page flags it and the log lists the keys. Restart manually after checking the installation. History records an idle restart as system, listing keys without values.
| Setting | Environment variable | Default | Minimum | Maximum | Applies |
|---|---|---|---|---|---|
| Model call time limit | CUTTLELY_HARNESS_MODEL_CALL_TIMEOUT_MS |
2 minutes | 1 | 3600 | Live |
| Silent model stream limit | CUTTLELY_HERMES_STREAM_STALE_SECONDS |
45 seconds | 5 | 3600 | Restart |
| Shell command time limit | CUTTLELY_HERMES_TERMINAL_TIMEOUT |
180 seconds | 1 | 3600 | Restart |
| Longest shell command in the foreground | CUTTLELY_HERMES_TERMINAL_MAX_FOREGROUND |
600 seconds | 1 | 3600 | Restart |
| Code run time limit | CUTTLELY_HERMES_CODE_TIMEOUT |
300 seconds | 1 | 3600 | Restart |
| Tool call time limit | CUTTLELY_HARNESS_TOOL_TIMEOUT_MS |
Not set: the agent runtime waits 300 seconds for a tool, the bridge 130 seconds | 1 | 3660 | Restart |
| Agent run time | CUTTLELY_HARNESS_RUN_TIMEOUT_MS |
4 minutes | 0 | 3600 | Restart |
| Max ad hoc SQL attempts per specialist turn | CUTTLELY_HARNESS_MAX_AD_HOC_SQL_ATTEMPTS |
2 attempts | 1 | 6 | Live |
| Chat lock lease | CUTTLELY_HARNESS_LOCK_MS |
Turn time limit plus 5 seconds, or 2 minutes when the turn time limit is off | 0 | 86400 | Live |
| Turn time limit | CUTTLELY_HARNESS_TURN_BUDGET_MS |
45 seconds | 0 | 3600 | Live |
| Query timeout | CUTTLELY_ANALYST_STATEMENT_TIMEOUT_MS |
15 seconds | 1 | 3600 | Live |
| Health check timeout | CUTTLELY_HERMES_HEALTH_TIMEOUT |
2 seconds | 1 | 30 | Restart |
| Grace period after a start | CUTTLELY_HERMES_HEALTH_GRACE |
60 seconds | 0 | 3600 | Restart |
| Misses before a restart | CUTTLELY_HERMES_HEALTH_FAILS |
3 | 1 | 100 | Restart |
| Continuous misses before a restart | CUTTLELY_HERMES_HEALTH_WINDOW |
15 seconds | 0 | 3600 | Restart |
Each specialist has a separate ad hoc SQL allowance under verified read-only fallback. Failed queries, corrections and additional pages count. Saved queries use no allowance. The server snapshots the setting when a turn begins, including when workers or the agent runtime run separately. Changing it does not require a runtime restart. The specialist trace shows usage and exhaustion.
Ranges are in seconds except Misses before a restart, which counts failed checks. Agent run time and Turn time limit accept 0 for unlimited. The tool-call field has no single default: when unset, the agent runtime waits 300 seconds for an MCP tool and the bridge waits 130 seconds. When set, the bridge wait and the runtime per-tool deadline use the chosen value plus 60 seconds. The model-call cap defaults to two minutes; shorter turn, agent-run, provider and transport deadlines still apply. External harness workers refresh the three live limits from the shared settings file before each job, so saves and clears apply to the next run without restarting a worker. Saving does not stop work already running.
Chat lock lease refuses a second message in the same chat with HTTP 409: “A reply is still in progress in this chat. Try again in a moment.” The chat shows a notice and keeps the message for retry. Cuttlely renews the lease while the turn runs and releases it when the turn finishes or fails; cancellation and the earliest enabled turn or agent-run deadline stop renewal even if cleanup hangs. With both deadlines off, renewal continues until cancellation or completion. A crashed process stops renewing, so its lock expires one lease after the last renewal. The field displays seconds and stores whole milliseconds; clearing it restores the turn time limit plus 5 seconds, or 2 minutes when the turn time limit is off. 0 means Never expires: a crashed run can then keep the chat busy indefinitely, including across restarts. Lease renewal does not change the queue’s or startup recovery’s extra 15-second stale-run allowance.
Shell commands longer than the foreground maximum move to the background. The agent runtime per-tool deadline still applies to shell and code runs. Increasing the code-run timeout does not increase the fixed tool-call response wait below.
| Fixed field | Value | Note |
|---|---|---|
Code tool-call response wait (CUTTLELY_FIXED_HERMES_CODE_RPC_WAIT) |
300 seconds | Fixed in this version. |
HTTP MCP data wait (CUTTLELY_FIXED_HERMES_MCP_HTTP_READ) |
300 seconds | Fixed in this version. A remote HTTP MCP tool that runs longer than 300 s must use streamable HTTP (SSE) and send progress at least every 300 s; otherwise run that work as a pipeline job. |
Fixed fields are read-only text. Their keys identify the display rows; no environment variable is read for them. They cannot be saved or exported as settings. The code tool-call response wait covers both its socket wait and response deadline. The HTTP MCP data wait covers SSE silence and Streamable HTTP reads. A remote HTTP MCP tool that runs longer than 300 s must use streamable HTTP (SSE) and send progress at least every 300 s; otherwise run that work as a pipeline job. A tool call time limit of 3660 seconds does not lift it: an HTTP MCP tool that stays silent for about 300 seconds still fails with a timeout. Stdio MCP tools, such as the Analyst and the specialist bridge, are not affected.
Other product limits, including publish checks and sign-in limits, keep the precedence described in their sections below.
Agent run time
Section titled “Agent run time”Under Agent runtime > Limits, Agent run time controls how long Cuttlely waits for a specialist’s agent runtime run, including a nested run_specialist task. The default is 240 seconds (four minutes). Enter 300 for five minutes, or 0 for unlimited waiting. The field accepts 0 to 3600 seconds. Review and save; a supervised installation applies it when idle, or an earlier restart applies it. Without a supervisor it applies at the next restart. A saved value takes precedence over the host.
The variable is CUTTLELY_HARNESS_RUN_TIMEOUT_MS. The API and host use milliseconds: 300000 for five minutes, 0 for unlimited, and 240000 for the default. Its range is 0 to 3600000 milliseconds. Nested specialist tasks use this same setting; their previous separate 90-second wait is replaced by the four-minute default. They have no additional five-minute MCP wrapper limit.
Turn time limit separately bounds the whole team turn and defaults to 45 seconds. A shorter turn limit still stops unfinished work, so raise it too when a turn needs longer, or set it to 0 to turn that limit off. Unlimited agent run time still permits cancellation and does not remove model, provider, other MCP tool, SQL query, or HTTP request limits. How long a turn should take explains the whole-turn budget.
Long-running queries and tasks
Section titled “Long-running queries and tasks”Set these limits in Admin, Server settings (see Time limits and caps), or as environment variables on the host. A saved value comes first, then the host variable, then the default.
| Variable | Default | Host range and behavior |
|---|---|---|
CUTTLELY_ANALYST_STATEMENT_TIMEOUT_MS |
15000 ms (15 s) | Up to 3600000 ms (1 hour). Positive values below 1000 become 1000; invalid values and values above the maximum use 15000 and warn once. |
CUTTLELY_HARNESS_RUN_TIMEOUT_MS |
240000 ms | Up to 3600000 ms; 0 means no deadline. |
CUTTLELY_HARNESS_TURN_BUDGET_MS |
45000 ms | 0 turns the whole-turn budget off. |
CUTTLELY_HARNESS_TOOL_TIMEOUT_MS |
Unset | Positive integer from 1 to 3660000 ms; seconds are rounded up. Unset, blank, invalid or out-of-range values keep the 300 s MCP default and 420 s agent-runtime per-tool default. |
CUTTLELY_HERMES_HEALTH_TIMEOUT |
2 s | 1–30 s for the agent-runtime health probe wait; invalid or out-of-range values use 2 s with a warning. |
For example, to allow a query longer than 300 seconds:
CUTTLELY_ANALYST_STATEMENT_TIMEOUT_MS=360000CUTTLELY_HARNESS_RUN_TIMEOUT_MS=3600000CUTTLELY_HARNESS_TURN_BUDGET_MS=0CUTTLELY_HARNESS_TOOL_TIMEOUT_MS=3660000A 300-second query needs every limit around it to be larger than 300 seconds. With the tool setting above, specialist MCP servers wait 3660 s, the stdio bridge waits 3720 s, and both Hermes per-tool deadlines (timeouts.tools.sequential_call and timeouts.tools.concurrent_batch) are 3720 s. The bridge and deadlines follow the tool setting with a 60 s margin. The roster MCP server always has an unlimited MCP wait; the agent run and whole-turn limits still apply. When the tool setting is unset, the bridge keeps its existing 130 s wait.
This tool-call setting covers MCP tools only. Shell and code timeouts have separate controls in Time limits and caps. The fixed 300 s code tool-call response wait still applies; use a pipeline job when work needs longer than that response wait. A long-running remote HTTP MCP tool must use streamable HTTP (SSE) and send progress at least every 300 s; a server that replies with a single JSON response can’t, so run that work as a pipeline job. The built-in Analyst and database tools run through the local bridge, not HTTP, so they’re limited only by the tool and query settings.
Set any proxy or load-balancer idle timeout to at least 3720 s for harness streams with this example. Proxy stream timeouts explains the separate limits for streams and reusable connections.
Maximum concurrent agent runs
Section titled “Maximum concurrent agent runs”Under Agent runtime > Limits, Maximum concurrent agent runs caps how many agent runs the agent runtime works on at the same time, across every agent team. The default is 10. The field accepts 1 to 50, or 0 for no limit, which the page shows as Unlimited. A negative number or a number above 50 is refused when you save. A run over the limit is turned away as busy, and the agent team turn reports it unless the specialist’s Capacity wait is on (see Agent teams). Higher values use more memory and CPU, and send more model requests at once. The page shows a warning under the field for a value above 25, and a stronger one for Unlimited, because a burst of questions can then use all the memory and CPU on the server. Review and save, then restart Cuttlely to apply it. A value set on the host locks the field.
The variable is CUTTLELY_HERMES_MAX_CONCURRENT_RUNS. When the agent runtime starts, scripts/cuttlely-hermes-api.py writes it to gateway.api_server.max_concurrent_runs in the agent runtime’s config.yaml ($HERMES_HOME/config.yaml). Only that key changes; the rest of the file is kept. A saved value replaces a value typed into that file by hand. Clearing the setting removes the value Cuttlely wrote, so the runtime default of 10 applies again, and leaves a value someone typed into the file afterwards alone.
Agent runtime recovery
Section titled “Agent runtime recovery”The start script supervises the agent runtime inside the image, including with plain docker run and no restart policy. The health check timeout, startup grace, miss count and continuous-miss window are editable under Advanced > Agent runtime health and apply after restart. These host environment variables apply after restarting the service; they are not controls in the settings panel. When the runtime starts (on the first start, after a runtime restart, and after a whole-stack restart in place), agent calls get 503 RUNTIME_UNAVAILABLE with Retry-After until it answers its first health check. A runtime that has not answered within twice CUTTLELY_HERMES_HEALTH_GRACE plus CUTTLELY_HERMES_HEALTH_WINDOW (135 seconds by default) counts as a failed restart.
| Variable | Default | What it controls |
|---|---|---|
CUTTLELY_HERMES_MAX_RESTARTS |
5 |
Restarts allowed in one consecutive failure burst. |
CUTTLELY_HERMES_HEALTHY_RESET_SECONDS |
600 |
Continuous successful runtime /health checks needed to reset the burst counter. Process uptime alone does not reset it. |
CUTTLELY_HERMES_RESTART_BACKOFF_MAX_SECONDS |
60 |
Maximum restart delay. Backoff starts at a fixed two seconds and doubles: 2, 4, 8, 16, 32, 60, … |
CUTTLELY_HERMES_EXHAUSTED_COOLDOWN_SECONDS |
300 |
Wait after budget exhaustion before restarting the whole stack in place. Capped at 3600 seconds. |
CUTTLELY_HERMES_STOP_GRACE_SECONDS |
15 |
Whole seconds to allow the runtime to stop after SIGTERM before escalating to SIGKILL. Zero escalates immediately. Container shutdown caps it by the time remaining in a 28-second budget shared with Node draining, with at least 2 seconds (or the configured grace if lower); runtime-only restarts use the full grace. |
CUTTLELY_EXIT_ON_EXHAUSTED |
Unset | Set exactly 1 to exit the container non-zero after exhaustion, handing recovery to a host restart policy. |
Invalid numeric values, including negative values, produce a warning and use the default. Each SIGKILL escalation logs the process id, stop reason and grace used. A normal service stop drains Cuttlely first, then stops the runtime; the default 25-second drain leaves about 2–3 seconds of runtime grace inside the 28-second shutdown budget. Supplied Compose files allow 35 seconds and Render allows 30 by default. The runtime always gets at least 2 seconds (or the configured grace if lower), even after the budget expires. A longer custom drain can exceed the platform budget. Lifetime restart totals persist across healthy-window resets and whole-stack restarts in hermes-supervisor.json. A failed health check interrupts the healthy window. Startup grace and active-stream protection continue to apply.
After the runtime returns from a completed shutdown, the launcher records a clean lifecycle exit and drains queued logs before the process ends. The startup path and SIGTERM exit status stay unchanged. Earlier launchers skipped that record even after a prompt SIGTERM shutdown, causing a false “exited UNCLEANLY” warning at the next start; increasing the stop grace alone did not fix it. SIGKILL, an OOM kill or a machine failure can still leave an unclean-exit warning.
By default, an exhausted burst writes a diagnostic snapshot and an exhausted/cooldown status, then waits 300 seconds with Node, the UI and recovery routes still available. Runtime readiness is 503 throughout the cooldown. The supervisor resets the burst and restarts the server and runtime together through the existing restart-in-place loop. This repeats while the container lives, without requiring Docker, Render or a VM service manager to restart it. Shutdown interrupts the cooldown promptly. For this recovery restart only, server shutdown is capped at five seconds and CUTTLELY_GATEWAY_STARTING_WAIT_SECONDS at ten seconds to keep the liveness interruption within Render’s running-instance health window. The first cold startup and strict readiness semantics stay unchanged. Supplied Compose services retain their restart policies for other process failures; they do not enable CUTTLELY_EXIT_ON_EXHAUSTED.
Before killing the runtime, the supervisor attempts a time-bounded Linux descriptor snapshot. One stderr line contains only descriptor counts by type (socket, pipe, anon_inode, regular file and other), soft/hard open-file limits, failure reason and restart counters. Paths, descriptor targets and environment values are excluded. A missing process or unavailable /proc reports diagnostics unavailable and does not prevent recovery. These counts help diagnose exhaustion; they do not fix the descriptor leak.
Use /api/v1/ping/live for gateway and container liveness, and /api/v1/ping separately for strict readiness. Agent execution while the runtime is unavailable returns HTTP 503 with code: "RUNTIME_UNAVAILABLE" and Retry-After, after authorization. Health checks and probe timing.
Analyst storage
Section titled “Analyst storage”Analyst > Analyst storage chooses the private store. Unset is Auto: each workspace gets a store the analyst can create tables in. Off saves the value off and leaves that store off. A value already set on the host, including off, false, 0, or no, stays as it is and locks the field. A Postgres URL credential on a Postgres (MCP) node, or Separate Postgres for the analyst (CUTTLELY_POSTGRES_URL), still uses the read-only path. Auto does not replace that URL. Analyst mode.
Analyst limits
Section titled “Analyst limits”Analyst also sets how much one query may return and how long it may run. The row cap applies the next time the server starts. The query timeout applies to the next query and can be up to 3600 seconds (1 hour). A host row cap above the maximum is treated as the maximum. A host query timeout above 3600000 milliseconds uses the 15-second default and logs a warning once. A positive query timeout below 1 second is raised to 1 second. Zero, a negative number, or text that is not a number uses the default and logs a warning once.
| Setting | Variable | Default | Host range |
|---|---|---|---|
| Row cap | CUTTLELY_ANALYST_ROW_CAP |
100 rows | 1 to 1000 rows |
| Query timeout | CUTTLELY_ANALYST_STATEMENT_TIMEOUT_MS |
15 seconds | 1 to 3600 seconds |
The row cap is the page size. A lower cap puts fewer rows into the specialist’s prompt and into the handoff Harness Prime reads, so the turn uses less context. Say show more for the next page. The rows stay in the database.
The query timeout stops a statement that runs too long, on the private store and on a Postgres URL. A Postgres (MCP) node can set a lower Most rows per query or a shorter Query time limit (seconds) under Limits in its settings panel. Those fields cannot go above the values here. Leave them empty to use these settings. Analyst mode.
Testing and Limits
Section titled “Testing and Limits”Testing and Limits holds the publish check, its limits, and the rated-answer caps. Publish check is on unless you turn it off. The switch is CUTTLELY_PUBLISH_CHECK. A number shows its unit and its range. When the host set the variable, the field shows a lock and Set by the host, and this page cannot change it. Below those fields, Set by the host lists the values that stay on the host. Each row is Set or Not set. The value is not shown.
The picture is from a local demo install. The account is a made-up owner. It shows no chat text, no token, and no host name.
The full list of startup options, with the default, the range, where each one can be set, and whether a restart is needed, is Startup options. Secret values and host-only values are named and marked not shown.
On Security & network, under Network, Idle connection timeout (HTTP_KEEP_ALIVE_TIMEOUT_MS) defaults to 65000 milliseconds. Request headers timeout (HTTP_HEADERS_TIMEOUT_MS) defaults to 1000 milliseconds more and must stay above it. Both apply after a restart. Keep a reverse proxy’s upstream idle timeout below the idle connection timeout. See Run Cuttlely behind a reverse proxy.
Let HTTP building blocks call localhost
Section titled “Let HTTP building blocks call localhost”On Security & network, under Building blocks, Allow HTTP building blocks to call localhost (HTTP_ALLOW_LOCALHOST) is off by default. HTTP building blocks, such as HTTP, Execute Flow, the API loader and the request tools, refuse loopback addresses while it is off.
When it is on, any flow author can reach any service listening on this server’s own localhost: 127.0.0.0/8, ::1, and the names localhost and ip6-localhost, including a host name that resolves to one of those addresses. Nothing else is opened. 0.0.0.0, ::, link-local and cloud metadata addresses such as 169.254.169.254, and the private ranges 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 and fc00::/7 stay blocked, including their ::ffff: forms. Every address and name in Blocked addresses for HTTP building blocks (HTTP_DENY_LIST) stays blocked too.
How far the check goes depends on the building block. HTTP, Execute Flow, the API loader, the request tools and the Cheerio loader connect to the exact address that was checked, and check every redirect again. The Playwright and Puppeteer loaders check each request the page starts, but the browser looks up the name again itself, so the connection is not tied to the checked address, and Playwright follows a redirect without checking it again. MCP over HTTP and the chat models that take a base address (such as Ollama, LocalAI and OpenAI Custom) check the address once before they connect; after that, the client looks up the name and follows redirects on its own.
The switch is read on each request, so a saved change applies to the next request without a restart. Only the instance operator, signed in as an active owner, can change it, and each change is kept in History with who made it and when. A host value of true or false wins and locks the switch. A queue worker that reads the same data folder picks up a saved change within 5 seconds. A worker in another container follows its own host value.
When HTTP_SECURITY_CHECK is false on the host, the built-in block list is off, loopback and private addresses are already reachable, and this switch changes nothing. Only HTTP_DENY_LIST entries are blocked then.
Limits that apply immediately
Section titled “Limits that apply immediately”These limits are read on each use. A saved change applies to the next check, import, or page load. A restart is not required. The host value wins when it is a whole number inside the range. A host value outside the range, or that is not a whole number, is ignored. It is not clamped. The saved value is used when it is in range, and otherwise the default. The field stays locked until that variable is removed from the host. On Testing and Limits the chip says Set by the host. Other sections say Locked. A value outside the range is refused when you save it on this page. An in-range host value on a pair is kept and is not loosened so the other side can fit. That other setting falls back through its saved value, then its default. If none of those fit, it is bounded by the host value. A host question cap of 1 makes the question default 1. A host rating scan of 300 makes the rated-answer import cap 300. When both sides are host values and they conflict, the host cap is kept and the other side uses the first saved or default candidate that fits. bounded applies only when no candidate fits. The page marks that setting Limited by the host variable, for example Limited by CUTTLELY_CHECK_COUNT_MAX. It is not Locked unless that same variable is also set on the host, so it can still be edited here. pnpm settings list prints source bounded and that same line. The review step says these limits apply on the next use when every change is one of them. When the review also changes a setting that waits for a restart, it says the limits apply now and the rest apply at restart.
The question count default cannot be above the question cap. The rating scan must be at least the rated-answer import cap. Saving a pair that breaks either rule is refused.
| Setting | Variable | Default | Range |
|---|---|---|---|
| Publish check | CUTTLELY_PUBLISH_CHECK |
On | on or off |
| Publish check token cap | CUTTLELY_CHECK_MAX_TOKENS |
100000 tokens | 1000 to 2000000 tokens |
| Publish check time limit | CUTTLELY_CHECK_MAX_SECONDS |
180 seconds | 10 to 1800 seconds |
| Questions at once | CUTTLELY_CHECK_CONCURRENCY |
2 | 1 to 8 (always 1 for harness checks) |
| One run timeout | CUTTLELY_CHECK_RUN_TIMEOUT_MS |
60000 ms | 10000 to 600000 ms |
| Keep a finished check | CUTTLELY_CHECK_KEEP_MINUTES |
30 minutes | 5 to 1440 minutes |
| Question cap | CUTTLELY_CHECK_COUNT_MAX |
100 | 1 to 500 |
| Questions by default | CUTTLELY_CHECK_COUNT_DEFAULT |
4 | 1 to the question cap |
| Messages scanned | CUTTLELY_CHECK_SCAN_CAP |
2000 | 500 to 20000 |
| Harness turns scanned | CUTTLELY_HARNESS_TURN_SCAN_CAP |
2000 | 500 to 5000 |
| Rated answers added | CUTTLELY_RATING_IMPORT_CAP |
500 | 50 to 5000 |
| Ratings scanned | CUTTLELY_RATING_SCAN_CAP |
1000 | at least the import cap, and at most 20000 |
| Page loads a minute | CUTTLELY_UI_PAGE_LIMIT_MAX |
3000 | 100 to 50000 |
Page loads a minute is also the per-client budget for sign-in, API-key check, OAuth, MCP server, and icon requests. Each of those routes keeps its own count, so loading the canvas icons does not use up sign-in. The two icon routes have larger budgets. The node icon route (/api/v1/node-icon) adds three times the number of loaded nodes, because the node palette asks for every node icon at once. The credential icon route (/api/v1/components-credentials-icon) adds three times the number of loaded credentials, because the credential dialogs ask for every credential icon at once. For example, with 289 loaded nodes and the default 3000, the node icon budget is 3,867 a minute. Each count is read on every request, so an optional node pack loaded or left out changes it. Icons are sent with Cache-Control: public, max-age=86400, so a browser asks for each one at most once a day. Behind a reverse proxy, set TRUST_PROXY (check /api/v1/ip), or every client shares one counter and sign-in can be blocked for all.
The routes are in the Server settings API. Publish check behaviour is in History settings.
Invite and reset
Section titled “Invite and reset”Sign-in & identity sets invite and reset links and the mail used to send them. A saved value overrides the environment. The next invite, reset, or message uses it. A restart is not required. The field stays editable when the environment also sets it.
A lifetime outside the range is refused on this page. An environment value below the minimum is raised to the minimum, and one above the maximum is lowered to the maximum. A blank, zero, negative, or non-integer environment value is ignored. The saved value is used when it is usable, and otherwise the default.
| Setting | Variable | Default | Range or values |
|---|---|---|---|
| Invite link lifetime | INVITE_TOKEN_EXPIRY_IN_HOURS |
72 hours | 1 to 168 hours |
| Reset link lifetime | PASSWORD_RESET_TOKEN_EXPIRY_IN_MINS |
60 minutes | 5 to 1440 minutes |
| Invite delivery | INVITE_DELIVERY |
Follow the request | Follow the request, Copy link, or Email |
| Mail server | SMTP_HOST |
Not set | The SMTP host |
| Mail port | SMTP_PORT |
587 | 1 to 65535 |
| Mail TLS | SMTP_SECURE |
Off | On opens TLS immediately. Port 465 does that too |
| Mail user | SMTP_USER |
Not set | The SMTP account name |
| Sender address | SENDER_EMAIL |
Not set | One email address |
Invite delivery applies when POST /api/v1/account/invite omits link. Follow the request returns an id only with Local active. With WorkOS or generic OIDC active it returns the one-time URL, because a pending invite can join only through that link. Copy link returns the URL for every method. Email sends it and returns only the id and mail status. A request that sets link still wins. Reset links are unchanged: omitting link returns the URL.
Mail password (SMTP_PASSWORD) stays in the environment. The invite field shows Set or Not set and does not accept a value. The same key is on the read-only status list as env when it is set and unset when it is not. That row does not include the password. SMTP_STARTTLS stays in the environment too. Mail is configured when the mail server and the sender address are both set. The sign-in page still has no Forgot password form.
pnpm settings list prints the effective value and whether it came from the panel, the host, or the default. The password is (set, hidden) or (not set).
Set up AuthKit
Section titled “Set up AuthKit”In Sign-in & identity, Set up AuthKit walks through four steps:
- Keys: the API key and Client ID from WorkOS. Staging or Production is read from the key.
- Addresses: the redirect address, filled in from the address you opened Cuttlely at, plus the sign-out, homepage and sign-in addresses to paste into WorkOS, each with a copy button.
- Session seal: Generate seal makes one. Also the first owner email.
- Test sign-in: Cuttlely checks the values (including one read-only call to WorkOS), then opens AuthKit with them. Sign in as yourself and you come straight back. Nothing is saved until the test passes and you select Save AuthKit settings.
The owner password form stays on by default. Removing the last ordinary local login requires an established replacement: selected WorkOS with a passed test for these exact AuthKit values and matching installation identity, or a selected, tested active OIDC provider. With Local selected, usable local-user passwords can retain ordinary login independently of the owner-only form. Owner recovery and the CLI remain recovery paths. A change that leaves no established ordinary login is refused with NO_WAY_IN; unrelated settings and effective no-ops skip this readiness check. Sign-in safety on saves.
Switch database
Section titled “Switch database”Database shows the database Cuttlely runs on. Switch database goes to SQLite or Postgres:
- Choose SQLite or Postgres, and fill in the connection for Postgres.
- The test always runs: sign-in, whether Cuttlely can create tables, and whether the database is empty, already holds Cuttlely data, or holds other tables (refused).
- The dialog says how the owner gets back in afterwards. An empty database is a fresh start, so it needs the password sign-in on or AuthKit with a first owner email.
- Type
RESTARTto switch. Cuttlely restarts on the new database.
Nothing is copied. Flows, credentials and accounts stay in the old database, and Switch back returns to it. A database that already holds Cuttlely data from another server needs that server’s encryption key, or its saved credentials won’t open; the dialog warns. With Analyst storage on Auto, the analyst’s private stores follow the new database.
Restart
Section titled “Restart”| Install | What Restart does |
|---|---|
Docker, and from source with bash scripts/start-cuttlely.sh |
Restarts Cuttlely and the agent runtime in place, in the same container or terminal. |
| Render | Restarts in place inside the running service, with no new deploy. Without the start script, the page shows the steps instead. |
From source without the start script (for example pnpm dev) |
The button says How to restart and shows the steps: stop Cuttlely and start it again. |
| Queue mode with separate workers | Restarts this server; the page reminds you to restart each worker too, so it uses the new settings. |
When Cuttlely restarts in place, a full-screen view follows it: the settings it saved, any runs it lets finish, stopping, each start-up step as Cuttlely works through it, and back. Continue reloads the page with the new settings. If it takes more than three minutes, the view says so and points you to the server log.
If chats or agent team runs are still answering when you select Restart now, Cuttlely asks first. Let them finish waits for them, for up to the turn time limit (45 seconds unless CUTTLELY_HARNESS_TURN_BUDGET_MS says otherwise), and new runs get a short “restarting” answer meanwhile. Restart now stops them.
Other tabs open on Cuttlely during a restart may ask for part of a page while the server is not answering. Such a tab shows Loading the latest version of this page…, waits until Cuttlely answers again (for up to about a minute), then reloads once to recover. If Cuttlely does not answer in that time, or the part still fails right after that reload, the tab shows Reload; select it once Cuttlely is back.
When Cuttlely cannot restart itself, How to restart opens the steps with Copy steps, so you can paste them where you keep notes.
The instance operator, signed in as an active owner, can also start this path from Experimental. Its card explains that Dashflows BETA is a startup setting and asks for confirmation before continuing. It uses the same run choice and supervised in-place restart described above. Without supervision, it shows the same manual steps and does not stop the process.
When a setting stops Cuttlely from starting
Section titled “When a setting stops Cuttlely from starting”If two starts in a row don’t finish after a change, safe boot puts back the last settings that started and shows a banner. A start that can’t open the database with changed settings stops right away instead of running half-started, and the start script tries again, so this takes a few seconds, not a page that never loads. Settings that didn’t start never count as the last settings that worked. If you were on the restart screen, it says The new settings did not start and See what changed opens History. Try it again puts the set-aside settings back for the next restart.
From a terminal (in Docker, prefix with docker compose exec -u node cuttlely):
| 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 |
CUTTLELY_IGNORE_ADMIN_SETTINGS=1 on the host starts Cuttlely with the saved settings ignored. For Compose, set it in the host .env (or your --env-file) and recreate the container with docker compose up -d --force-recreate, using the same file/options as the install. A plain docker compose restart does not reload host environment values. An empty ignore flag is off.
All settings and History
Section titled “All settings and History”All settings lists every setting, where its value comes from and its value (secrets as set or not set), plus the settings that stay out of the browser and why: the encryption key and sign-in secrets, paths and ports, code execution and safety checks, queue workers, start script plumbing, and test-only values. The instance operator can also ask the API whether an env-only value is set. That answer is set and source only. The value, its length, and any hash stay off the response. Server settings API. Copy as .env copies the values saved here for a .env file or a host’s environment page; secrets are left out and listed as comments.
History keeps every save, discard, restore, test sign-in, rollback and restart: when, who, and which settings, never a secret value. A secret is recorded only as changed. The same list is GET /api/v1/server-settings/history. It is paged, newest first, and only the instance operator can read it. The newest 1000 changes are kept (CUTTLELY_HISTORY_KEEP, 100 to 10000). A value saved on this page wins over the environment variable. Older ones are removed when a new change is saved. Those same changes also appear on the audit log. Audit log retention (CUTTLELY_AUDIT_RETENTION_DAYS, 90, from 1 to 3650) is how many days that log keeps. A valid host value wins over the saved value. It does not delete this history.
Protected source evidence
Section titled “Protected source evidence”Under Agent runtime > Limits, Evidence budget (bytes) controls the protected source detail available to specialists for analysis. The default is 40000, with a range of 4096 to 262144. Review and save, then restart to apply. A host-set value locks the field.
To increase this for one specialist, set Evidence budget (bytes) in that Harness Specialist’s additional parameters. Blank inherits the Admin default. Larger budgets can reduce extra calls for long descriptions but increase input-token use; small model-context limits still apply. Output tokens and report validation are unchanged. See Evidence budget.
Inbound access keys
Section titled “Inbound access keys”Manage inbound API and SDK keys on Access Keys, not in provider Credentials. SDK/Settings keys and per-flow keys share this workspace list. With enforcement on, each key has resource/operation grants, expiry, RPM and UTC quotas, exact-origin/IP allowlists, rotation/revocation, counters and audit events. New keys grant no resources or operations.
Security & network > Access keys > Access-key enforcement is a service-wide off / shadow / on selector, editable only by the host-designated instance operator who manages Server settings. It defaults to off. Saving applies on the next request and persists across restarts without changing the host environment. Review and type APPLY to confirm: existing keys retain migration compatibility, private custom ASSISTANT key integrations return 401 under On, unmatched Harness names lose access, and RPM/quota/origin/IP checks apply. Return to Off to disable enforcement; scoped keys are then refused. The field shows the effective mode and source. A nonempty host INBOUND_ACCESS_V2 overrides the saved setting and locks the control; force off there and restart to recover access. With Compose, put it in the host .env (or your --env-file) and run docker compose up -d --force-recreate with the same file/options as the install. A plain restart does not reload the container environment. An empty host rollout value is unset, so the saved mode remains effective and unlocked. Invalid host values keep the existing 503 behavior; invalid saved values resolve to Off with an explanation. CUTTLELY_IGNORE_ADMIN_SETTINGS=1 ignores the saved mode. History records each change’s actor, from/to and sources. General Discard, Try it again, CLI restore and safe boot preserve this rollout choice; change it explicitly through its selector. Validate migration on a restored backup with node scripts/access-keys-migration-report.cjs, then compare legacy/scoped flow decisions with shadow before enabling on. Existing keys need no rotation. Admission supports one API instance (CUTTLELY_API_KEY_INSTANCES=1); minute counters reset on restart. Page loads a minute and flow/IP limits still apply independently. Access-key controls and rollout.






















