Skip to main content

Users & access

OtoDock supports a whole team, with roles that decide who can do what and sign-in options that fit how your organization already works.

The owner and platform roles​

The first account you create during setup is the owner, a protected administrator that can't be deleted or demoted. From there, every user has a platform role:

RoleCan do
AdminRun the platform: manage users, settings, security, integrations, and all agents.
CreatorCreate and manage their own agents: persona, tools, and settings. (Adding people to agents is an admin task.)
MemberUse the agents they're given access to.

On top of that, each agent grants its own per-agent role (Viewer, Contributor, Editor, or Manager), so someone can be a manager of one agent and a viewer of another. Contributor is the role for an outside collaborator on a project: they can add files to the agent's shared workspace, but they never act as the agent. See Agents for what those mean.

Adding people​

Admins add users from the Users page with a name, email, role, and a temporary password the person changes on first login. You can adjust anyone's role, assign them to agents (with a per-agent role), and manage their account from the same place.

A self-hosted install without a license includes five user accounts, and a license (added under Setup → OtoDock) raises the cap.

Removing people​

When someone is removed from an agent, moved below the editor role there, or loses the admin role, the automations they set up for the agent keep running. The same goes when their account is deleted. Their shared tasks, triggers and scheduled notifications on that agent move to the admin who made the change, with their schedules intact. That admin gets one notification listing everything they now own. If the change came from your identity provider, the owner receives them instead. The notification also lists any agent API keys the person created, which keep working until you revoke them under the agent's API keys.

The person's open chats on that agent close, and if they lose access to the agent, their personal apps there stop until they're given access again. Deleting an account also removes the person's own personal tasks, triggers and notifications, and moves their personal files to an archive on the server rather than deleting them. An archive is deleted after 180 days by default, and admins manage the archives under Setup → System Settings.

Signing in​

  • Email and password. Local accounts with a configurable password-strength policy set under Setup → Security. If email is configured, users can reset their own password by email. A password can be up to 72 plain letters and digits long.
  • Two-factor authentication. Users can turn on app-based 2FA (a standard authenticator code) for their own account, with one-time recovery codes. An admin can also require it for every local account by turning on Require Two-Factor Authentication under Setup → Security. Each person then sets it up at their next sign-in. People who sign in through SSO aren't affected, since their identity provider handles this.
  • Passkeys. On an install served over https, people can sign in with a passkey, which they add under User Settings → General.
  • Single sign-on (SSO). Admins can connect an identity provider over OIDC, such as Authentik, Keycloak, Authelia, Okta or Microsoft Entra. Provider groups map to OtoDock roles, so people sign in with the identity they already have. The exact settings are below.

Single sign-on (OIDC)​

Connecting a provider is a handful of lines in the same .env (config.env on source installs) as your other deployment settings. First create an OIDC application in your provider with <DASHBOARD_PUBLIC_URL>/auth/callback as the redirect URI. That's the one OtoDock derives automatically. Then:

# .env
OIDC_ENABLED=true
OIDC_PROVIDER_NAME=Authentik # login button reads "Sign in with <name>"
OIDC_DISCOVERY_URL=https://auth.example.com/application/o/<app-slug>/.well-known/openid-configuration
OIDC_CLIENT_ID=<from your provider>
OIDC_CLIENT_SECRET=<from your provider>

# Map your provider's groups to OtoDock roles. The mapping is also the access
# gate: someone in none of the mapped groups cannot sign in over SSO, so
# configure at least one, and put your users in it.
OIDC_ROLE_ADMIN_GROUP=OtoDock Admin
OIDC_ROLE_CREATOR_GROUP=OtoDock Creator
OIDC_ROLE_MEMBER_GROUP=OtoDock Member

Restart to apply (docker compose up -d) and the login page grows a "Sign in with …" button. Local accounts keep working alongside SSO, so you can't lock yourself out. On someone's first SSO sign-in OtoDock creates their account (it counts toward your user cap), gives them the role of their highest mapped group, and attaches the agents marked default-for-new-users.

Example: Authentik​

  1. In Authentik, under Applications → Providers, create an OAuth2/OpenID Provider with the confidential client type and the redirect URI above.
  2. Create an Application that uses the provider. Its slug is the <app-slug> in OIDC_DISCOVERY_URL, and the provider's page shows the client ID and secret.
  3. Create the groups you name in the OIDC_ROLE_* lines (for example OtoDock Admin and OtoDock Member) and add people to them. Authentik sends a person's groups with the profile scope, which OtoDock asks for.
  4. If Authentik also guards the address with forward auth (a Proxy Provider in front of OtoDock), add the paths listed under Gateways that force a login to its Unauthenticated Paths.

The discovery URL is fetched at startup and the individual endpoints derive from it. Providers without discovery can set OIDC_AUTHORIZE_URL / OIDC_TOKEN_URL / OIDC_USERINFO_URL / OIDC_LOGOUT_URL / OIDC_ISSUER / OIDC_JWKS_URL directly, and OIDC_SCOPES (default openid profile email groups) is adjustable. All are documented in config.env.example.

Login security​

OtoDock protects the login page out of the box:

  • Rate limiting and slow-downs on repeated failed attempts, so guessing is impractical without locking out a legitimate user.
  • Optional bot protection (Cloudflare Turnstile) you can enable under Setup → Security.

Login sessions stay valid while you're active and time out when idle (a duration admins set, seven days by default). You can also restrict a specific user to local-network sign-in only.

Signing out ends the sign-in on that device only, and a password change ends the person's other sign-ins. An admin can sign someone out of every device with Sign Out Everywhere when editing the person on the Users page.

Running behind a reverse proxy?

Set TRUSTED_PROXY so these protections see real client addresses instead of the gateway's IP. See Reverse proxy & HTTPS. Until it's set, users restricted to local-network sign-in can't sign in through the proxy at all, because OtoDock can't tell where they're connecting from.

When nobody can sign in​

The admin command line gets you back in: a password lost on an install with no email set up, or an authenticator lost with a phone. On a Docker install, download it into the install folder, the one holding .env, and run it there while OtoDock is up:

curl -fsSLO https://raw.githubusercontent.com/OtoDock/oto-dock/main/scripts/otodock-admin.sh
bash otodock-admin.sh user reset-password [email protected]
CommandWhat it does
user reset-password <email>Sets a temporary password and prints it once. The person picks a new one at the next sign-in.
user disable-2fa <email>Turns the authenticator code off. Add --passkeys to remove the account's passkeys too.
support-infoPrints the versions and settings a bug report asks for, with every secret left out.

On a source install, run scripts/otodock-admin.sh from the checkout as the account OtoDock runs as.

People can share apps and chats with their colleagues, and with anyone outside the platform through a link. A team app can also go to another agent, or from an admin to a whole department. Under Setup → Security → Sharing, admins decide which of these are allowed and whether a link can be shared without a password. Every share and every link on the install is listed under Admin → Shares, so an admin can revoke any of them. See Sharing.

Personal API keys​

For automation, any user can create a personal API key under User Settings → Integrations, in API Keys. The key is scoped to that user and shown once, so copy it when you create it. You pick what it may do, such as firing your webhook triggers or sending a chat message. Revoke a key any time.

→ See API & Webhooks for how to use keys.

Next steps​