Skip to content

Sign in

A new Cuttlely install has no users. You create one local account, the owner, and sign in with its email and password. Owner recovery keeps that account available when another sign-in method is selected. When several people need to sign in, the instance operator, signed in as an active owner, can select Local login, WorkOS, or generic OIDC under Admin > Auth / SSO. See Choose the sign-in method. To let people who already have a password use Local login, see Users without AuthKit. That option is off by default. Invited people still have no password until a sign-in link exists. Step-by-step setup for each method is in Set up local login and Set up generic OIDC.

Install first: Docker, From source, or Render. The Render blueprint defaults to WorkOS. The instance operator can choose another supported sign-in method; ordinary password sign-in requires Local login and local users to be enabled.

The owner password form shows when the durable active method is Local login, the server runs with CUTTLELY_LOCAL_ADMIN=true, and CUTTLELY_LOCAL_USERS is off. Creating the first owner with the setup link or pnpm user selects Local login in the same database transaction, so a fresh local install has that owner-only combination. An already-selected durable method is left unchanged. Existing owner-only installations that upgrade keep recovery access without automatically enabling ordinary Local login. When Local login is active and CUTTLELY_LOCAL_USERS=true, /signin shows the shared local-user form instead; the owner uses that form like any other active local user.

Install Default
From source On for the default owner-only Local method. scripts/start-cuttlely.sh sets the flag unless you set it yourself, packages/server/.env sets it, or WORKOS_API_KEY is set.
Docker On for the default owner-only Local method. The start script turns the flag on when it is unset or blank. Set CUTTLELY_LOCAL_ADMIN=false in .env, then docker compose up -d, for a WorkOS deployment.
Render Off. Owner recovery is always available at /owner-recovery; run pnpm user first if the owner needs a password.

With the flag off, Local users off, and no available selected remote method, the sign-in page says Sign-in is not configured. and still offers Owner recovery. With local sign-in already enabled on the host, a server with no account opens the account-only /setup flow. Without a configured sign-in method, configure one on the host first. When accounts already exist, that page also says how to turn an ordinary sign-in method back on.

The Sign In page. Under the Cuttlely logo and the Sign In title, the only line is Sign-in is not configured.

Configure sign-in on the host before browser setup. Enable CUTTLELY_LOCAL_ADMIN=true, restart, and create the first owner with pnpm user --email you@example.com (password prompt), or use the account-only setup link from the server log. A setup code cannot write service configuration or designate an operator. For WorkOS-only setup, configure its credentials and bootstrap email on the host before signing in.

If accounts already exist, use /owner-recovery, with the host user CLI as emergency password recovery if nobody can sign in. 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.

The first account is the owner, shown as Super User. You can create it in the browser, in a terminal, or from host configuration when the server starts. Each way works only while the install has no users.

On a new install with local sign-in enabled on the host, opening the app goes to the account-only /setup flow. Open the link in the ready block, or paste the setup code. The account form appears only after the code is accepted. Fill in your name, email, and password, then select Create account. The page is pictured in From source.

Show the block with:

Terminal window
docker compose logs cuttlely | grep "Setup code"
2026-10-09 12:00:00 [INFO]: http://localhost:43117/setup#code=madeupcode000001 ← open on this machine
2026-10-09 12:00:00 [INFO]: Setup code: madeupcode000001 (valid 60 min, works once)

The code is in the link fragment. It lasts 60 minutes from when it is printed and stops working once the first account exists. A restart or a second copy of the server keeps a live code, so the first printed link still works for register and the setup page. A second running copy logs that the code was printed by another copy. A restart of this install logs that the setup code from the last start is still valid, with the time it expires. An expired code is replaced when register or a setup page finds it, or on a one-minute check, and the new link is printed. The same link works through Docker’s published port: open it on that host, or open /setup and paste the code. Without the code, the form does not appear.

After Create account you are signed in and land in Cuttlely. Browser account creation does not designate an operator. When the authority state is Unclaimed and the host operator override is entirely unset, an eligible active owner with recent authentication enrolls through Admin > Server settings > Instance operator > CLAIM, using the one-time code printed only to the host log. See operator onboarding for the state-specific proof flow. The emergency CLI remains available; it is not a mandatory onboarding step. Keeping a copy in GitHub is optional and waits in Version History; see Right after setup.

Run pnpm user with the email. It asks for the password and doesn’t show what you type.

From source, in the repository root, against the same database the server uses:

Terminal window
CUTTLELY_LOCAL_ADMIN=true pnpm user --email you@example.com

Docker:

Terminal window
docker compose exec -u node -it -e CUTTLELY_LOCAL_ADMIN=true cuttlely pnpm user --email you@example.com

It ends with:

[INFO]: Super User created for you@example.com.

A successful CLI create or reset for an active owner also saves the host-only operator binding. With no host override, that account can configure the service by default. This CLI path is emergency recovery only. Legacy accounts without an actual host binding claim explicitly from Server settings with host-log proof. If binding fails after a password update, the command exits nonzero with explicit recovery instructions; repair the host directory/history and rerun the bind-only command.

On a fresh owner-only install, this command selects Local login in the same transaction that creates the owner, just like browser setup. It does not replace a durable method that is already selected.

The password needs 8 to 128 characters, with a lowercase letter, an uppercase letter, a digit, and a special character. A password that misses a rule is refused, with one line for each rule it misses:

[ERROR]: Password must be at least 8 characters
[ERROR]: Password must contain at least one uppercase letter
[ERROR]: Password must contain at least one digit
[ERROR]: Password must contain at least one special character

Without a terminal, for example in a script, the command reads the password from standard input until the input closes. Never put the password on the command line.

For an install where nobody can open the setup link, such as a CI/CD deploy, a headless server or an air-gapped host, give the server the owner’s email and a password hash as deploy-time secrets. On an empty database it creates the owner before it starts listening, so no setup code is printed and /setup stays closed. It needs local password sign-in on the host (CUTTLELY_LOCAL_ADMIN=true, the Docker default) and no AuthKit. For AuthKit, use CUTTLELY_BOOTSTRAP_EMAIL instead (AuthKit setup).

  1. Make the hash on a machine you trust, from a source checkout. It asks for the password, applies the rules above, and writes only the hash to a new file that only you can read. An existing file is never replaced.

    Terminal window
    pnpm -s hash-password owner.hash

    Without a terminal it reads the password from standard input, like pnpm user. Without a file name it prints the hash. The hash is the exact form Cuttlely stores (scrypt$<salt>$<key>). Make it with this command, not another tool: the salt and the scrypt settings are specific to Cuttlely. A Docker install can run the same command from the image, docker compose run --rm --no-deps -T cuttlely packages/server/bin/run hash-password < password.txt > owner.hash, with an image from this release on.

  2. Give the server the email and the hash file. With Compose, set the email and the file path in .env and mount the file as a secret in docker-compose.override.yml:

    Terminal window
    CUTTLELY_INITIAL_OWNER_EMAIL=you@example.com
    CUTTLELY_INITIAL_OWNER_PASSWORD_HASH_FILE=/run/secrets/cuttlely_owner_hash
    services:
    cuttlely:
    secrets:
    - cuttlely_owner_hash
    secrets:
    cuttlely_owner_hash:
    file: ./owner.hash

    The server runs as the image’s node user (uid 1000), so that user must be able to read the file. Kubernetes secret volumes and other mounted secret files work the same way: name the file in a *_FILE variable.

  3. Start the server. The log says First owner from host configuration: the first owner was created. Sign in at /signin with that email and password.

  4. Remove the CUTTLELY_INITIAL_OWNER_* variables and the secret from the deployment.

Variable What it holds
CUTTLELY_INITIAL_OWNER_EMAIL The owner’s email. Turns this on.
CUTTLELY_INITIAL_OWNER_NAME Optional display name, up to 100 characters. Unset uses the part of the email before @.
CUTTLELY_INITIAL_OWNER_PASSWORD_HASH_FILE Path to a file with the hash from pnpm hash-password. Preferred.
CUTTLELY_INITIAL_OWNER_PASSWORD_FILE Path to a file with the password. The password rules apply.
CUTTLELY_INITIAL_OWNER_PASSWORD_HASH The hash itself.
CUTTLELY_INITIAL_OWNER_PASSWORD The password itself. The least safe choice: anyone who can read the deployment’s settings sees it.

Set exactly one of the four password variables. Two set is an error, not a choice between them. A file path must be absolute. One trailing line break is removed from the file; everything else, including spaces, is part of the password. A hash skips the password rules, so choose a strong password when you make it. The server reads the password and hash variables once and removes them from its own environment, and the start script does not pass them to the agent runtime. The server never logs the email, the password or the hash.

It runs once. When any account exists, the variables are ignored with a warning in the log, and the server never changes a password, an email or a role. Leaving them set has a risk: a restore or a wipe to an empty database, or a new database, creates the owner again with that password. Remove them after the first start.

It fails closed. On an empty database, a problem stops the start with exit code 1 and an error line that names the variable but not its value: a missing or invalid email, a file that cannot be read, a hash not made by pnpm hash-password, a password that misses a rule, two password sources, local password sign-in off, AuthKit configured, or another sign-in method already selected. The setup link is not offered in its place. Fix the variable, or remove all of them to use the setup link, and start again.

With several copies of the server on one database, one copy creates the owner and the others log that another copy did. The audit log records the owner as First owner created with source host_config. Browser setup records setup_code and pnpm user records cli. An owner created this way is not the instance operator; claim it in Admin > Server settings as after browser setup (Instance operator).

  1. Open /signin on your server, for example http://localhost:43117/signin. Opening any page while signed out also brings you here.
  2. Type your Email and Password.
  3. Select Sign in. On an owner-only Local installation, this posts to POST /api/v1/auth/login and creates an ordinary Local session.

The owner password form on the Sign In page, with empty Email and Password fields, an eye icon on the password, and a Sign in button.

The screenshot shows the password form only. The live page for an owner-only Local installation also shows the discreet Owner recovery link below the form.

The app opens Chatflows, or the page you were going to.

A wrong email or password shows Invalid email or password. After 10 failed tries in 15 minutes, the form says Too many sign-in attempts. Try again later. Wait, then try again.

The Sign In page with a red message: Invalid email or password. Email is rosa.diaz@example.com and the password is masked. The button is Sign in.

Select the gear at the top right. The menu shows your name, then Version and Logout. Select Logout.

The account menu open under the gear. It shows Rosa Diaz and Cuttlely, then Classic cards switched off, Version and Logout. Chatflows is the page behind it.

Task Command Result
List the accounts pnpm user, with no email Email addresses: ... and Email count: N.
Reset a forgotten password pnpm user --email you@example.com, with the email of an existing account Password updated for you@example.com. The new password works at once.
Add a second account Not from the terminal. pnpm user with a new email prints No account exists for ... Add people with WorkOS. See Sign in with WorkOS.

With the flag off, pnpm user can still reset the owner’s password. It refuses everything else, with Refusing to create a user while the local admin flag is off. for a new account, or Refusing to set a password for ... for another user.

There is no Forgot password link. A lost password is reset with pnpm user, on the server.

Use WorkOS when several people sign in. Cuttlely sends the browser to WorkOS AuthKit, and AuthKit checks who the person is. Teams, roles, permissions, workspaces, and API keys stay in Cuttlely’s database.

  1. Set WORKOS_API_KEY and WORKOS_CLIENT_ID on the server, plus the other WorkOS values in WorkOS AuthKit setup, and restart it. Then, as the instance operator with active ownership, open Admin > Auth / SSO and switch the ordinary method to WorkOS. That switch ends existing interactive sessions. Environment-only selection applies only to a fresh installation or a first boot with no durable authentication state. A verified AuthKit email links to the one user with that mailbox; two users with the same mailbox are not linked. See Turn AuthKit on.
  2. On an empty database, also set CUTTLELY_BOOTSTRAP_EMAIL. The first person to sign in through AuthKit must have that verified email, and becomes the owner.
  3. Open /signin. It now shows Sign in with WorkOS. The button opens /api/v1/auth/login, for example http://127.0.0.1:43117/api/v1/auth/login on a local server.

While WorkOS is the durable active method, /signin shows the WorkOS button and the discreet Owner recovery link. It does not show an ordinary password form, even when CUTTLELY_LOCAL_ADMIN=true; use /owner-recovery when the owner needs the recovery path.

To add people, see Invite people. Roles, teams, and the permission each page checks are in Roles and permissions.

The instance operator, signed in as an active owner, can also configure these values in the browser after sign-in is available: open Admin, then Server Settings, then Sign-in, and select Set up AuthKit. It fills in the redirect addresses, makes the value used to seal one temporary setup-test session, and runs a real test sign-in with the new values before anything is saved. Application sessions remain database-backed. Password sign-in can be turned off only after that test passes. The values apply when Cuttlely restarts.

Field-by-field setup, redirect URIs, and WorkOS troubleshooting are in WorkOS AuthKit setup.

An invited person joins only through their own invite link. Signing in through the active remote method with the invited email is not enough, even when the provider has verified that email.

  1. Open Admin, then Users, and select Add User. Give the person a name, an email, a team and a role, then select Create User.
  2. The dialog shows each returned one-time invite link, once. Select Copy link and send it to the matching person, then select Done. The dialog stays open while those links are visible. When the mail server is set in Server Settings, Cuttlely also emails them. With Invite delivery set to Email, Cuttlely only emails them and the dialog closes.
  3. The person opens the link, selects Accept invite with WorkOS or Accept invite with OIDC, and signs in with the email the invite was sent to. The button follows the active method.

That first sign-in through the link makes the person active and creates their provider link in the same transaction that consumes the invitation. After that they use the active remote sign-in method like everyone else. If AuthKit public sign-up is off, also create them in the WorkOS Users directory.

For an OIDC invitation, the provider asks the person to sign in again even when another account already has a provider session. They can then sign in with the account whose email received the invitation.

Until they accept, the person is a pending invite: the Users list shows them as invited, and they have no access to any team. Signing in through WorkOS or generic OIDC without the link shows You have a pending invite. Open the invite link from your email to join. and leaves them pending.

In User Management (/users), an active organization owner, or an Admin (the built-in Admin role or a role with users:manage), can use the trash action to cancel a pending invitation, including another pending owner invitation. Confirmation names the email and revokes invite links across the organization’s teams. Removing an active or disabled person from every team stays limited to an active organization owner. Cancellation is refused if acceptance has already completed; refresh the list. Self-removal and the last active owner are protected, and active owners stay Super User, read-only in this UI.

An invite link:

  • works once;
  • lasts 72 hours, or the Invite link lifetime in Server Settings (1 to 168 hours);
  • works only for the person it was made for, signed in with that email;
  • stops working when a newer link is made for that person, when they are disabled, and when they are removed from the team or the organization. Adding them back does not bring the old link back.

With WorkOS or generic OIDC active, the link cannot be used to set a password instead: the password route refuses an invite token and leaves it unused. A link that fails any of these shows This invite link is not valid. Ask for a new invite. To make a new link for someone who is still pending, call POST /api/v1/users/:id/reset-link from their team. For a pending invite it returns a new invite link and the older one stops working. On the Users page, editing a pending person offers Invited (pending) or Inactive. Turning a disabled pending invite back on with Invited (pending) does not make them active: they still need a new link.

Field names and status codes are in One-time links.

You see What to do
Sign-in is not configured. The candidate for the durable selected method is unavailable. Environment settings configure candidates; they do not change the recorded selection. Open /owner-recovery, use pnpm user --email you@example.com to set the owner password if needed, then fix that candidate on the host or, as the instance operator with active ownership, choose the ordinary method under Admin > Auth / SSO.
Invalid email or password. Check the email. To set a new password, run pnpm user --email with that email.
Too many sign-in attempts. Try again later. 10 failed tries in 15 minutes. Wait 15 minutes.
Refusing to create a user while the local admin flag is off. Run pnpm user with CUTTLELY_LOCAL_ADMIN=true.
No account exists for ... The install already has an owner, and the terminal only creates the first account. Use the owner’s email to reset it, or add people through the selected sign-in method.
Not Found while creating the first account An account already exists. Sign in instead.
Open the setup link from the server log ... on Create the owner account The setup code was missing or wrong. Look for Setup code in docker compose logs cuttlely, or create the first account with pnpm user this way.
First-user setup is not available. after WorkOS sign-in On an empty database, CUTTLELY_BOOTSTRAP_EMAIL is unset or doesn’t match the email you signed in with. Set it to your email and restart.
You have a pending invite. Open the invite link from ... You were invited and have not accepted yet. Open the invite link you were sent and select Accept invite with provider. The button names the selected remote provider.
This invite link is not valid. Ask for a new invite. The link was already used, expired, replaced by a newer one, or revoked, or you signed in with a different email. Ask an admin for a new invite.
After moving a legacy 3.1.4 installation you cannot sign in Passwords from that installation are accepted (bcrypt). Sign in once, or reset the owner with pnpm user --email you@example.com.