Web Administration

Last reviewed November 15, 2026 (checked against the app).

Admin is a section inside Settings, not a separate page. Open Settings -> Admin on desktop or web. On web, the section is listed only for users whose global role is admin, and the old /admin address redirects to it. It contains Users, Permissions, Security, and Audit Log tabs. Company-level management is handled in the company workspace and is separate from this global section.

Settings, Admin: users, permissions, security and the audit log.

Users

The Users tab lists name, email, global role, creation time, and actions. Administrators can create and edit users and assign one of the roles exposed by the form, including admin, operator, and viewer.

In the desktop app, saving a new password, email or role for an existing user opens a confirmation dialog that names each change. The change is made only when you select Change it. A name-only edit needs no confirmation. On the web dashboard, your signed-in session is the confirmation, and only the owner, signed in as themselves, can change the owner's password, email or role. Another admin sees those fields and the owner's Delete turned off, with the reason, and can still change the owner's display name. Agents and other programs cannot change the owner's password, email or role, and until the install's owner is claimed they cannot change any user's. The owner's login cannot be deleted from the app, since no one can delete their own login.

Use the least-privileged role that supports the person's work. Company grants further control which tenant data a user can access.

How do I give someone access to only some projects and agents?

Choose Access on the user's row. For each company you tick, pick:

  • Role: Viewer (read only), Member, or Admin for that company.
  • Projects: all projects, or only the ones you check.
  • Agents: all agents, or only the ones you check.
  • Features: Agents, Run and stop agents, Tickets, Projects and plans, Git, Terminal, Knowledge, and Keychain read or save.

Once a person has access set here, everything else is closed to them: pages they were not given are hidden, and the server refuses those requests too. Widen their access any time from the same dialog. Changes apply within a few seconds; their live updates follow on the next page load. Unticking every company removes their access completely.

Give the account the Operator role if they should create or update tickets. The owner account always keeps full access and cannot be limited this way.

Permissions

Permission profiles define policy for capability classes such as shell, file read, file write, browser, network, and MCP tools. Values can allow, ask, or deny according to the profile contract.

Choose Create Profile to define a reusable profile. Treat permission changes as security changes: a profile that allows shell or file writes can materially expand what an assigned agent or user operation can do.

Only a person changes a profile or which profile an agent has: an admin signed in to the web dashboard, or someone using the desktop app's Administration, Settings or Edit Agent screens. Agents, scripts and API tokens are refused, including the credential every agent run carries and the desktop app's own token, so an agent cannot loosen its own profile.

A profile that agents still use cannot be deleted. CPLai names those agents instead, so you can give each of them another profile (or none) first; it never moves them to a different profile on its own.

How do I assign a profile to an agent?

  1. Open the agent and select Edit.
  2. Under Permission profile, pick Full Auto, Restricted, Read Only or one of your own profiles. The line under the picker says in plain words what that profile makes the agent ask for, and what it may not do.
  3. Select Save.

This is the same on the desktop app and the web dashboard. No profile is the default: the agent follows its own run mode (Auto or Interactive, shown on its page), which for a new agent comes from Agent Autonomy Default in Settings. An agent with a profile shows it on its page as Profile: (name), next to the run mode. Each change is written to the audit log.

Security

The Security tab reports credential health, including encrypted and legacy plaintext storage. Encrypt existing upgrades existing provider settings, Keychain values, and MCP credentials. The page also provides Migrate to OS Keychain and confirmed JSON export actions.

Credential actions require an authenticated operator. Agent-tagged requests and callers using the shared legacy bearer are rejected. Set Master Password runs through the desktop owner process; the web button is disabled and directs you to the desktop app. Previous keys remain protected on the machine so existing secrets and backups stay readable. Changing the master password does not revoke old ciphertext or re-encrypt every existing record.

Settings -> Keychain -> Credential health shows the same storage counts and, under Encryption at rest, Encrypt existing on desktop and web; master-password changes are on desktop only, and the web row says so. Failed upgrades leave the original value intact and report the failure so you can repair access and retry. Run-output secret scanning does not have a user-facing control in the current build.

Account lockout: After 10 failed login attempts within a 15-minute window, the account is locked. While locked, all login attempts are rejected with a 429 status regardless of whether the password is correct. The lockout clears automatically after the lockout period expires. This is a per-user defense that cannot be bypassed by rotating source IP addresses.

Data export can contain sensitive company, account, agent, and operational records. Store the downloaded file securely and delete unneeded copies.

Owner recovery

Only the owner, signed in on the web as themselves, can change the owner login's password, email or role, and nobody can delete the owner's login in the app, not even the owner. The desktop app cannot make these changes either. So if the owner forgot the web password, or the owner's login must be repaired or removed, the database is the only way. These steps are for that case only.

  • If the owner is only locked out after 10 wrong passwords, wait for the lockout to end (see Account lockout above) and sign in again.
  • To change the owner's email or role, reset the password first, sign in, then change them yourself in Settings -> Admin -> Users.
  • The steps are for Windows. Do them on the machine that holds CPLai's database; on a machine joined to another CPLai machine's database, use that machine.

<!-- docs-check: owner-recovery -->

Before you start

  1. Sign in to Windows as the account that set CPLai up, or open PowerShell as administrator. Only those accounts and the CPLai service can open the database settings file.
  2. Open %ProgramData%\CloudPeakLabs\cloudpeaklabs\db.json in Notepad and copy the postgres_url value. It contains the database password: never paste it into a chat, a ticket or an email.
  3. In PowerShell, connect: & "C:\Program Files\CPLai\resources\postgres\bin\psql.exe" "<postgres_url>". If CPLai is installed in another folder, use that folder.
  4. Find the owner's login by the email the owner signs in with: SELECT id, email, role FROM users WHERE lower(email) = lower('<owner email>');
    • An owner who has only ever used the desktop app and never signed in on the web has the login [email protected], with no password set. Use that email here; the steps below then set its password.
  5. Check that it shows one login, the owner's, and note its id. The steps below call it <login id>.
  6. Back up that login to a file: \copy (SELECT * FROM users WHERE id = '<login id>') TO 'C:/Users/<your Windows user name>/Documents/owner-login-backup.csv' CSV HEADER
  7. Keep that file private: it holds the login's password hash.

Reset the owner's password

  1. Set a temporary password and clear the lockout: UPDATE users SET password_hash = crypt('<temporary password>', gen_salt('bf', 10)), failed_login_count = 0, locked_until_ms = NULL, updated_at = (extract(epoch from now()) * 1000)::bigint WHERE id = '<login id>';
  2. Sign the owner out everywhere, in case someone else knows the old password: UPDATE cpl_user_sessions SET revoked_at = now() WHERE user_id = '<login id>' AND revoked_at IS NULL;
  3. Type \q to leave.
  4. Sign in on the web with the temporary password, then change it at once in Settings -> Admin -> Users.

Then clean up after yourself:

  • Clear PowerShell's history, which holds the database address and password from step 3. Clear-History empties this window's list. Then open the file shown by (Get-PSReadLineOption).HistorySavePath in Notepad and delete the lines from these steps, or delete the file, which removes the whole saved history of your PowerShell windows. Not verified on a real install.
  • The database client may keep its own history, which would hold the temporary password from step 8. If the file %APPDATA%\postgresql\psql_history exists, delete it. Not verified on a real install.
  • After the owner has signed in again and changed the password, delete the backup file from step 6; it holds the old password's hash.

Delete the owner's login (rare)

  1. Only do this when the login itself is wrong, for example a duplicate. After the backup in step 6: DELETE FROM users WHERE id = '<login id>';
  2. Until a login with the owner's email exists again, CPLai protects every login: agents, API tokens and the desktop app cannot change any login's password, email or role; only someone signed in on the web can.
  3. To bring the login back, restore it from the backup, below.

Restore from the backup

  1. Remove the changed login: DELETE FROM users WHERE id = '<login id>';
  2. Put the saved one back: \copy users FROM 'C:/Users/<your Windows user name>/Documents/owner-login-backup.csv' CSV HEADER

Do not touch

  • The install's owner record, which says which login owns this install. Changing it can hand the install to another login.
  • API keys, other logins and other tables. These steps change only the owner's login and, at step 9, its sessions. <!-- /docs-check -->

Audit Log

The Audit Log shows recorded actor/action/resource events. It supports server-side pagination and filters, including user and time bounds. Apply filters before investigating a specific incident.

Tool audit rows can be grouped into a chronological replay timeline. This replay is an audit visualization of recorded tool events, not the same as the terminal-output replay on an agent run.

What does each audit row show?

Column What it shows
Time When the action occurred
User Who performed it
Action The operation type (shown as a badge)
Resource Type What was affected
IP Address Source IP
Details Expanded view of parameters, tool inputs, and outputs

Filter the log by user, date range, or both. Export the filtered results as CSV.

What does the replay timeline show?

When the audit log contains agent tool events, a Replay Timeline appears above the table. It reconstructs the sequence of tool calls from a specific agent run or conversation.

Element What it shows
Time offsets Elapsed time from the first event (+0s, +2s, +5s)
Status dots Color-coded: green for success, red for failure, yellow for blocked/approval, blue for info
Tool name Which tool was called
Duration How long the call took
Input/Output previews Collapsible detail showing what went in and what came back

Use the session dropdown to switch between different runs or conversations. The timeline shows event count and total duration for the selected session.

Tip: The Replay Timeline is most useful for understanding what an agent did during a run that produced unexpected results. Walk through the tool calls in order to trace the decision path.

Export CSV downloads the currently loaded audit rows as CSV. It does not promise a complete export of every page unless you have loaded the desired range.

Access boundaries

  • non-admin users do not see the Admin section in web Settings, and opening it directly shows Admin access required;
  • company admins do not automatically become global administrators;
  • public share, benchmark, and Spectate pages do not expose Admin;
  • administrative actions are still enforced by the API, not only hidden in the UI.

Troubleshooting

Admin is missing from navigation

Admin is not a sidebar page; look for Admin in the Settings section list. If it is missing there, confirm the signed-in user's global role. Sign out and back in after a role change so account state refreshes.

A user sees no company data

Global role and company grants are separate. Add or correct the user's company access from the relevant company Users tab or invitation flow. For someone set up with Access, check that the company is ticked and that the project, agent, and feature they need are selected.

Audit results look incomplete

Check applied filters, page offset, and time range. Export only includes the visible loaded rows.

CPLai user manual, version of November 20, 2026. This is the same manual that ships inside the app.