Documentation

Sign agents in with access you control

Every agent, app, and script that operates your screens signs in with its own session. A person approves each session in the dashboard, chooses Read only, Propose, or Manage, and can revoke it from the Access page at any time.

How sign-in works

screenRIG issues short-lived signed access tokens and long-lived refresh tokens. The bundled CLI stores both in its private configuration file and renews them automatically, so an agent never handles a token or pastes one into a conversation.

CredentialLifetime
Access token10 minutes
Refresh tokenRotates on every use. Expires 90 days after last use, up to a maximum of one year after sign-in
Sign-in code (screenrig login)24 hours
Service client token10 minutes, with no refresh token (the client requests a new token when needed)

There are four ways to authenticate:

CallerHow it signs inApproved by
New agent without an accountscreenrig agent enroll creates the organization, project, and session in one command from an email address or an AgentID claim codeEnrollment itself; the person's emailed invitation follows
Agent connecting to an existing accountscreenrig login prints a code that a person approves in the dashboardA project member in the dashboard
Connected app (Claude, ChatGPT, Grok)Opens the screenRIG OAuth consent page (see remote server)A project member on the consent page
Server, script, or CI jobA service client authenticates with its own private key or client secretCreated by a project member

People sign in to the dashboard with a passkey or password, or through their organization's identity provider (see single sign-on and user provisioning).

Sign in with screenrig login

Use screenrig login when you already have a screenRIG account and want an agent installation to access one of your projects. For a brand-new account, use screenrig agent enroll instead (see Quickstart).

screenrig login
  1. The CLI prints a dashboard URL and an eight-letter code (such as BCDF-GHJK), then waits for approval.
  2. Open https://screenrig.ai/dashboard/connect, sign in, and enter the code—or open the full URL printed by the CLI, which pre-fills it.
  3. The dashboard displays the request on a single screen: the device's installation name, request time and location, and code. Verify the code matches your terminal, adjust the project, access level, or capabilities if needed, click Connect, and confirm with your passkey (or password on accounts without a passkey, or an SSO sign-in within the last 10 minutes). The dashboard then opens the new agent entry.
  4. The CLI saves the session, selects the approved project, and outputs status: signed_in with the project, organization, and access level.

Only approve sign-in requests that you initiated on your own computer. The dashboard never auto-approves requests on page load, and an expired code requires running screenrig login again.

FlagEffect
--access read, --access propose, or --access manageRequest Read only, Propose, or Manage access. Defaults to manage; the person approving makes the final choice
--project prj_IDSuggest a target project for approval
--name NAMEName this installation (up to 80 characters)
--no-waitReturn immediately with the URL, code, and a login_ handle
--resume login_IDWait for a pending sign-in to be approved and save the resulting session

When an agent needs to hand the sign-in URL to a person over another channel first, use --no-wait. The handle contains no secret, and the pending sign-in state stays in the CLI's private configuration file:

screenrig login --no-wait
screenrig login --resume login_HANDLE

Send the sign-in URL and code only to the person approving it, and keep them out of logs and shared channels.

Add a project or raise access

An already signed-in installation can run screenrig login again to add another project or upgrade a Read only or Propose project to Manage:

screenrig login --project prj_ID --access manage

Approving that request updates only the target project while preserving access to the installation's other projects. Run screenrig project list to see every accessible project and screenrig project use ID to switch between them.

Read only, Propose, and Manage

Every session has one of three access levels, chosen by the person who approves it. Each level includes all permissions of the level below it.

ActionRead onlyProposeManage
List and read screens, playlists, media, events, and playbackYesYesYes
Upload and edit media, write project notes and comments, capture screenshots, send feedback and support messages, draft ad creatives and campaignsNoYesYes
Create and update playlists; assign, schedule, or take over screensNoYes, queued as a review for human approvalYes
Delete, pair, archive, reload, reboot, send toasts, set display power, tag screens, write application K/V, acknowledge/snooze/mute alerts, manage notifications and project settingsNoNoYes
Buy ad slots and fund ad campaignsNoNoYes
Read the URL of a webhook receiver, fleet link, or screen linkNo (redacted)No (redacted)Yes
Counts toward the organization's hourly agent request capYesYesYes
  • Read only: Cannot modify resources or spend funds. Requests still count toward your organization's hourly agent request cap.
  • Propose: Lets an agent prepare work while a person retains final control over what plays. Playlist and screen changes return 202 with status: pending_review and a review link, and nothing changes on screen until approved. Media uploads—as well as tag and folder changes on approved media—also wait for review: screens continue playing approved content until a reviewer decides; rejecting a change reverts modified items and keeps rejected uploads off screens. Propose sessions cannot delete resources, control screens, or spend funds.
  • Insufficient access: Calling an action above a session's level returns 403 insufficient_access, and the CLI names the next step: a person approves Manage with screenrig login --access manage.

Agent sign-ins default to Manage, while connected apps default to Read only. To downgrade an existing installation, disconnect it and sign in again with screenrig login --access read or --access propose. A session's stored level is never silently lowered—review policies below cap effective access to Propose without altering the underlying grant, and the Access page indicates when a cap is active.

Capabilities

Within its access level, a session can act only in the capability areas approved for it: screens, content, playlists, advertising, reports, and project. Enrollment grants all six on the newly created project. Running a command outside the approved capabilities returns 403 forbidden and names the missing capability. Capabilities stay as approved. For more, run screenrig login --project prj_ID again; the capabilities the person approves then replace the project's.

Require review for agent changes

Two project controls cap agents to Propose without requiring them to sign in again. Both are evaluated on every request and immediately cover existing sessions:

  • Require review for agent changes (in dashboard Settings): When enabled, every agent, connected app, and service client in the project is capped at Propose, so changes to what plays wait in Reviews until a person approves them. Only the project owner or an organization administrator can toggle this setting, and turning it off requires passkey confirmation. Pending reviews remain open until decided. Turning it on is a Premium feature; turning it off and deciding the reviews that already wait stay open on every plan.
  • Can approve (per member on the project's Access page): The project owner can always approve. A member without approval rights cannot decide reviews or give an agent Manage access, and any agents that member is responsible for are capped at Propose.

When multiple restrictions apply, the most restrictive level wins. Run screenrig agent status to inspect a session's stored access, its effective_access, and—when capped—access_limited_by (project or person). Signing in again cannot bypass these caps; only the project owner (or an organization admin for the project setting) can lift them. While a cap is active, approval screens only offer Read only and Propose and explain why Manage is unavailable.

Uploaders

An uploader is restricted strictly to selected media folders and playlists. Uploaders can upload files into those folders and add, replace, or remove pages (with optional start and end dates) on those playlists. They cannot read or modify other playlists, screens, schedules, members, tokens, fleet links, billing, or settings. A person on an agency's team is an uploader member; an agency's agent is an uploader service client. Uploaders are included on Plus and higher plans (see Plus features).

  • Invite or assign: On the dashboard's Access page, invite a new uploader or convert an existing member and select their allowed folders and playlists. With the CLI:
    • Invite a person: screenrig invitations create --kind uploader --email designer@example.com --folder-id mfd_FOLDER --playlist-id pl_PLAYLIST
    • Create an agency agent token: screenrig service-client create --name "Agency agent" --uploader --folder-id mfd_FOLDER --playlist-id pl_PLAYLIST --secret-file agency.secret Folder access applies only to the exact folders selected, not nested subfolders. The project owner can edit or revoke an uploader's scope at any time, taking effect on the next request.
  • Review vs. direct publish: An uploader member's changes wait in Reviews until the project owner or a member who can approve decides them. The owner can let a member publish without review (--access manage) when inviting or assigning. Uploader service clients default to Propose unless created with another access level, and Require review for agent changes caps them to Propose just like any other agent. An uploader never approves reviews and never connects agents: an agent gets an uploader token instead.
  • Upload media and manage pages: Run screenrig media upload FILE --folder mfd_FOLDER to upload into an allowed folder. Run screenrig playlist page add pl_PLAYLIST --media med_IMAGE --from 2026-12-01 --until 2026-12-24 to add a page visible from December 1 through the end of December 24 in each screen's local time zone. Use playlist page replace to swap media or dates and playlist page remove to delete a page. Uploader-added pages must use images or videos from the uploader's folders, leaving other pages untouched. Several uploads in a row by one uploader join one review, so the owner approves them together, and a page still waiting in it can be replaced or removed; changes from a different uploader wait until that review is decided.
  • Dashboard experience: Uploader members see a streamlined single-page Upload view listing only their assigned folders and playlists. They can upload files, add image or video pages with start/end dates, replace or remove their own pages, and withdraw a change that waits for review. Other pages in the playlist appear as Set by the project.
  • Scope errors: Any request outside the assigned folders or playlists returns outside_upload_scope, with upload_scope listing the allowed playlists and folders.

To restrict a member or agent to specific screen folders and screens rather than content, see Permissions by screen folder.

The Access page

The dashboard's Access page lists every person and integration with access to the current project:

SectionWhat it lists
PendingSign-in and app connection requests awaiting approval
PeopleMembers and open invitations
AgentsEnrolled or signed-in CLI and plugin installations
Connected appsAI assistants connected via OAuth (one entry per app)
Service clientsServers, scripts, and CI jobs with their keys and secrets

Each entry displays how access was granted, who approved it, its access level and capabilities, and its creation and last-used timestamps. If a review policy caps an entry below its granted level, the row displays the effective level and reason (for example, "Propose — project requires review"). Click Disconnect to remove an agent or connected app, or Revoke to terminate a service client—both require passkey confirmation.

An organization can have up to 200 active agents across all of its projects. Beyond that limit, new sign-ins fail with agent_limit_exceeded until an existing agent is disconnected.

Sign out and revoke

GoalAction
Sign out this installationscreenrig logout
Remove this installation from the current projectscreenrig agent disconnect --yes
Revoke this installation across all projectsscreenrig agent revoke-identity --yes
Disconnect any agent or connected appClick Disconnect on the Access page
Revoke a service clientClick Revoke on the Access page, or run screenrig service-client revoke ID --yes

screenrig logout revokes the session on the server before deleting local tokens. If the request might not have reached the server, the tokens stay, so running it again is safe. A Read only session can always disconnect itself. Disconnecting the project's last active agent requires --allow-lockout.

Once revoked, a session cannot renew, and existing access tokens stop working within seconds. Deactivating the person responsible for an agent ends its sessions in the same way, and deleting a project terminates all session access to that project.

Session length

Each use of the refresh token moves its end 90 days forward, up to one year after sign-in. screenrig doctor shows when this installation's session ends, and every command warns in its last 30 days. To continue, a person approves a new screenrig login.

Reference

These OAuth 2.0 endpoints power the bundled CLI, connected apps, and service clients. Agents working through the official plugin never call them directly.

ItemValue
Issuerhttps://api.screenrig.ai
Authorization server metadatahttps://api.screenrig.ai/.well-known/oauth-authorization-server
Protected resource metadatahttps://api.screenrig.ai/.well-known/oauth-protected-resource/api
Token endpointhttps://api.screenrig.ai/oauth/token
Device authorizationhttps://api.screenrig.ai/oauth/device_authorization
Authorization endpointhttps://api.screenrig.ai/oauth/authorize
Revocationhttps://api.screenrig.ai/oauth/revoke
Grant typesauthorization_code (PKCE S256 only), refresh_token, urn:ietf:params:oauth:grant-type:device_code, client_credentials
Client authenticationnone, private_key_jwt (EdDSA, ES256, RS256), client_secret_basic
Scopesaccess:read, access:propose, access:manage, identity, plus capabilities screens, content, playlists, advertising, reports, project
Resourceshttps://api.screenrig.ai/api (default) and https://api.screenrig.ai/mcp

Access tokens are Ed25519-signed JWTs in an EdDSA-only profile that follows RFC 9068 claim conventions (typ: at+jwt, iss, aud, sub, client_id, scope, jti, iat, exp). Treat them as opaque bearer tokens—send them in Authorization: Bearer headers and request a fresh token upon expiration.

Token endpoint errors return RFC 6749 JSON (error, error_description) with Cache-Control: no-store:

errorCauseCLI behavior
invalid_grantSession was revoked, expired, or reused, or code is invalidsession_ended: run screenrig login
invalid_clientUnknown client, or invalid key, secret, or assertionclient_auth_failed
invalid_scopeRequested access or capabilities exceed what was approvedinsufficient_access
invalid_targetresource value other than the two listed aboveinvalid_request
authorization_pending, slow_downSign-in is still awaiting user approvalCLI continues polling
access_deniedUser denied the sign-in requestlogin_denied
expired_tokenSign-in code expiredlogin_expired: run screenrig login
temporarily_unavailableTemporary server error; retry shortlyservice_unavailable
rate_limitedRate limit reached; wait for Retry-Afterrate_limited

Requests to /api with an expired or revoked access token return 401 with WWW-Authenticate: Bearer error="invalid_token" (the CLI refreshes and retries once automatically). Requests exceeding a token's access level return 403 insufficient_access with WWW-Authenticate: Bearer error="insufficient_scope" and the required scope. Credentials from a retired plugin or CLI version return 401 credential_retired—update the official plugin and run screenrig login.

Rate limits: The token and revocation endpoints allow up to 1,200 requests per client IP per hour, 60 token renewals per session per hour, and 600 service-client tokens per client per hour. Sign-in starts are limited to 10 per IP per hour.