Documentation

Remote access

Use Tailscale and HTTPS to supervise AGI Cockpit from the PWA or another Desktop and operate supported CLI commands from another computer.

Applies to
DesktopPWACLI
WindowsmacOSLinux
AGI Lab member

Verified 2026-12-02 · v5.2.4

Markdown

Remote access lets you connect to the computer running AGI Cockpit from a phone, tablet, or another computer. This guide uses the recommended Tailscale and HTTPS configuration and ends with a working task view in the PWA.

How remote access works

The computer running Cockpit becomes the connection target. The PWA in your browser operates that Cockpit. Tasks, agent processes, and working files remain on the target computer; they are not moved to the PWA.

Mode Who can connect Transport
Off Desktop on this computer only No remote connection
Tailscale only Devices in the same tailnet Tailscale's encrypted network, with optional HTTPS
Allow local Wi-Fi too Devices on the same LAN HTTP without encryption

The AGI Cockpit process and remote access must remain running on the target computer. If you run Cockpit on several computers, each one remains a separate target with its own tasks and settings.

When Cockpit runs on several PCs under the same Tailscale account, the Device filter in the Desktop task list can show task summaries from the other PCs. Selecting a row opens that device's PWA inside Desktop, where you can read the conversation, send messages, answer Asks, stop the task, or complete it. The list feed and the interactive task detail use separate connections. The task view identifies the target device; confirm it before acting. See Task list for the workflow.

Remote access pauses when you sign out of AGI Lab, your sign-in expires, or your membership becomes inactive. Connections end, but connection scope, port, and HTTPS settings are retained. Credentials issued through AGI Lab sign-in are revoked when the PC signs out or its sign-in expires or is revoked; credentials issued through the previous pairing-code system remain valid. After you sign in again and membership verification succeeds, remote access resumes automatically with the saved settings. Selecting Off prevents automatic resume. If startup fails, for example because the port is in use, remote access remains paused; check its state in the Desktop Remote Access screen.

In Tailscale-only mode, the Desktop Remote access button warns when Tailscale is disconnected or its status cannot be verified, even if the server is still running. The tooltip distinguishes these states. Select the warning to open the Tailscale guidance in Remote access; it does not turn the server off. Restore Tailscale or retry its status check before relying on remote connectivity.

What Tailscale is

Tailscale is a service that securely connects your own devices to each other. When you sign in to the same Tailscale account on your computers and phones, those devices form a private network of their own (a tailnet), and traffic between them is encrypted.

AGI Cockpit uses it so that you can reach the computer running Cockpit safely from elsewhere, such as from your phone while you are out. Cockpit is not exposed to the public internet: only your own devices in the same tailnet can connect to it.

Install Tailscale on both the target computer and the device you connect from.

To open the PWA from a phone, that phone also needs Tailscale installed and signed in to the same tailnet as the target computer.

Before you begin

Requirement What to confirm
AGI Lab membership Desktop is signed in to an active member account
Tailscale It is installed on the target and remote devices, and both are connected to the same tailnet
Tailscale administration An Owner, Admin, or Network admin is available when HTTPS must be enabled for the first time
Browser The remote device uses a current version of Safari, Chrome, Edge, or another modern browser

If you do not use Tailscale yet, install it on both the target computer and the remote device from the links above, and sign in to the same tailnet on each one.

Connect with Tailscale and HTTPS

1. Start remote access in Tailscale-only mode

  1. Open Remote access in the lower-left corner of Desktop.
  2. If Cockpit reports that Tailscale is stopped or needs authentication, start it or sign in from the on-screen action.
  3. Select Tailscale only.
  4. Confirm that Connection info shows a URL and QR code.

Tailscale-only mode rejects connections that do not come through Tailscale. Tailscale encrypts device-to-device traffic even while the displayed URL uses HTTP, but the browser still treats that page as an HTTP origin. Set up the certificate below to avoid browser warnings and support features that require HTTPS.

In Devices on the network, a running device offers Open and Copy URL. This includes the row marked This PC while its Remote Access server is running. Opening the page still requires the AGI Lab sign-in described below. Use the HTTPS connection URL for PWA installation.

2. Get an HTTPS certificate

  1. Select Get certificate in the Remote access panel.
  2. If Cockpit shows your Tailscale account does not support getting TLS certs, open Tailscale DNS settings.
  3. Enable MagicDNS in the Tailscale admin console.
  4. Under HTTPS Certificates, select Enable HTTPS and review the disclosure before confirming.
  5. Return to Cockpit and get the certificate again.
  6. Confirm that Cockpit shows HTTPS certificate issued and a domain.

Results and errors from Get certificate or Renew appear directly below the action button. Check that message before retrying.

You can also open the Tailscale DNS settings directly. If you cannot change them, ask an Owner, Admin, or Network admin of the target tailnet.

Getting a certificate asks the installed Tailscale to print the certificate and private key. Cockpit stores only the certificate in its data folder for expiry checks while stopped; its copy of the private key stays in memory and is never written to disk. The first HTTPS start after each Cockpit launch retrieves both from Tailscale before the server listens. Tailscale retains the original key and can return the valid certificate without a new Let's Encrypt request. Renewal replaces both in use. Cockpit removes old .key copies and temporary files it previously left in that folder at startup or certificate retrieval, and checks that none remain. An older Cockpit retrieves a missing key from Tailscale again.

The procedure is the same on macOS, Windows, and Linux, including App Store, standalone, and Homebrew Tailscale. Cockpit does not read certificate files inside another app's folders. If the certificate is unavailable, Get certificate remains available while HTTPS is enabled, even if the server is stopped. Full Disk Access is not required.

Enabling Tailscale HTTPS records the device name and tailnet DNS name from the certificate in the public Certificate Transparency log. Rename a device before requesting its certificate if its name contains sensitive information. See Tailscale's HTTPS documentation for details.

Automatic certificate renewal

Starting HTTPS Remote Access checks the certificate, and a running server checks again every 24 hours. Waking from sleep runs an overdue check. Cockpit automatically renews a certificate with 30 days or less remaining, including an expired certificate, through Tailscale and applies it to the live TLS server. Existing connections remain open; new connections use the renewed certificate. Cockpit does not override Tailscale's reissuance timing.

A failed automatic renewal retries after six hours. When failure occurs with 14 days or less remaining, including after expiry, Cockpit shows an actionable warning with the reason and a Renew action at most once per 24 hours. Successful automatic renewals are silent. Stopping Remote Access also stops scheduled checks.

3. Turn on HTTPS and open the PWA

  1. Turn on HTTPS.
  2. Confirm that the connection URL now has the form https://device-name.tailnet-name.ts.net:47280.
  3. Scan the QR code or open the displayed URL on the remote device.
  4. Select Sign in with AGI Lab to connect if asked, then sign in with the same AGI Lab account used on the target PC. You no longer need a pairing code from the PC screen.

The PWA requires authentication even on a same-owner Tailscale device or in a browser on the target PC itself. A stored token reconnects automatically, including tokens from the previous pairing-code system. An already signed-in browser also tries AGI Lab sign-in automatically. Clicking Sign in with AGI Lab to connect always starts a new sign-in, allowing you to switch accounts; this may sign the browser out of AGI Lab in other tabs. The automatic check does not sign you out. Use the displayed Tailscale domain or IP address, or a LAN IP when local access is enabled; .local addresses are not supported for sign-in.

Before authentication succeeds, Cockpit does not send task notifications, full task state, or recent folder lists to that connection, and closes an unauthenticated connection after two minutes. A PWA embedded in another page starts sign-in only after you select its sign-in button. It opens a confirmation page in the normal browser that identifies the PC and its address; continue only if you initiated the connection. A normal PWA tab goes directly through sign-in without this confirmation page.

The connection is ready when the PWA header shows the target machine name and Connected, and you can open Inbox, Tasks, and Autorun. The browser tab title also starts with the target as <machine name> - AGI Cockpit, making several connections distinguishable even in narrow tabs. While disconnected or before a machine name is available, it falls back to AGI Cockpit.

While the PWA checks a saved connection during reconnection, it keeps the current screen with a connecting state. The sign-in screen appears when no saved connection exists or the host refuses it. This avoids a sign-in screen flashing during a normal reconnect; it does not bypass authentication.

Supervise work in the PWA

Screen Main actions
Inbox Answer pending Asks with choices, free text, or attachments, and review or close Display notices
Tasks Create tasks, review the list and details, send follow-ups or queue the next message, answer permissions or questions, inspect results in the task panel, complete tasks, and delete tasks
Autorun Create, edit, enable, run now, delete, and review Autoruns

The PWA is an operating surface for checking progress and decisions from another location. Enable remote access and configure its transport and HTTPS certificate in Desktop. Not every Desktop setting or result view is available in the PWA.

The PWA stores an in-progress message body per task in sessionStorage. Switching tasks or reloading the page or an embedded remote-task view in the same browser tab restores the draft. Drafts do not synchronize to another device and are not persistent storage beyond the browser tab session. Sending or clearing a draft removes it, and drafts for tasks that disappear are pruned after the task list has synchronized.

The task panel in task details provides context-dependent tabs for child tasks, HTML Surface, an image opened from the conversation, diff, Cockpit Browser, App Surface, terminal, skills, Fleet, Creative Studio artifacts, and Talk Room. On a wide screen it appears beside the chat; on a narrow screen it remains a bottom sheet. A wider three-column layout can keep the task navigator visible too. Changing width or orientation preserves the open tab, target, drafts, and scroll positions while the presentation switches. Cockpit Browser shows a still image of a host tab inside the task's assigned Browser Identity, refreshes it every ten seconds while visible, and provides four controls that scroll the host page. Scrolling also changes the host-side position, but the PWA does not activate links, type, or submit forms. See cockpit browser for scope, limits, and storage boundaries.

App Surface is a view-only image of the Android target or iOS Simulator already attached to the task on the host, refreshed every two seconds while visible. Attach, detach, reconnect, input, and app launch remain host operations. Skills is also view-only: it searches the project and global skills that the host discovered for the task and shows their description, argument hint, definitions, and body. See App Surface and Results and tools for operation and limits.

Project headings in the PWA task list can collapse their tasks while leaving task counts and running or unread indicators visible. This state is stored in that browser per project directory and does not sync to other devices. The HTML Surface tab marks unseen results and lets you jump to the latest one without losing older unseen history. For a task in a Fleet Run, the Fleet tab provides read-only progress, dependencies, step details, and navigation to supported node tasks. The terminal key bar has a Modifier keys menu for Ctrl+C, Ctrl+X, Ctrl+S, and Shift+Tab. See Task list, Results and tools, and Fleet for the operating details and limits.

The PWA's light or dark appearance follows the connected Desktop's mode under Appearance. It stores the last synchronized mode on the device and uses it at the next launch until the connection returns. This is not a separate choice based on the device operating system theme.

A message sent while a task is running enters the queue without stopping the current turn and is delivered automatically after the response. In Claude, Codex, Antigravity, Cursor, Qoder, and Grok Build Native UI, sending only /compact compacts the conversation context. A normal message sent during compaction is also queued. In an unsupported Native UI, /compact reports that it is unavailable instead of sending the text as a normal message.

Before adding AGI Cockpit to the home screen, turn on HTTPS in Desktop and open the https://... URL shown in Connection info. An HTTP URL is not a supported configuration for using AGI Cockpit as a PWA. After opening the HTTPS page, select Add to Home Screen from Safari's Share menu on iPhone or iPad. In Chrome on Android, open the browser menu and select Install app or Add to Home screen.

On iPhone, the updated status-bar appearance for the Home Screen PWA takes effect after you remove its existing Home Screen icon and add it again from Safari. Reloading the installed PWA alone does not apply this change.

Operate a Crew from the PWA

Select a Crew in the task list to read its conversation, queue a request, inspect child tasks, and answer approvals or questions. Its settings support the role instructions, agent settings, Discord connection, allowed people and places, periodic checks, and scheduled requests. As on Desktop, changing access can require owner confirmation in Cockpit.

To learn how Crews work, start with What is a Crew. Talking with Crews on another computer is covered in Multiple Crews.

Use the Crew conversation and settings rather than ordinary task controls. A queued request waits while the Crew is stopped and uses the Crew's settings when delivered. The Crew's internal task cannot be directly resumed, renamed, completed, deleted, branched, or have its conversation cleared through ordinary remote task operations. cockpit crew commands remain local-only; remote Crew operation uses the PWA. See Crews (beta) and Security and data.

Switch between Cockpit computers

Update the connected host

From version 4.72.0, Host updates in the PWA lets an authenticated device check for and download updates to the connected Cockpit computer. This updates the host application, not just the PWA.

Installing requires a separate confirmation. Installation restarts the host, terminates every running task, and stops active or queued agent CLI installation/update jobs. Finish or safely pause important work before confirming. The PWA tracks the restart and attempts to reconnect automatically; if reconnection fails, check that the host application and remote access are running.

Automatic installation is available only on hosts that support it and after the update has downloaded. Microsoft Store installations must update through Microsoft Store; hosts requiring manual updates show the download page instead. Development builds do not support automatic installation. Only authenticated connections can request host updates.

Select the connection target in the PWA header, then Host updates. Review the running and available versions and release notes, select Check for updates, and use Download when offered. Once Ready to install appears, select Update now and review the separate restart confirmation. After reconnection, verify the running version. If the host returns without the requested version or reports an error, inspect Updater log summary before retrying.

On a supported packaged macOS host, Install when idle arms the downloaded update for the point when no task or Fleet Run is running and no agent CLI installation/update job is active or queued. The screen shows the current blocking count and allows cancellation before installation starts. The schedule lasts only for the current host session. Waiting tasks and paused Fleet Runs do not block it; when installation begins, every task terminates.

Choose another computer

If several computers have remote access enabled, select the connection target in the PWA header to see other Cockpit computers discovered through Tailscale. Select Open to move to another target or Scan again to refresh the list.

Each Cockpit remains independent. Switching targets does not merge or move tasks, Autoruns, settings, or working files between computers.

Connect over local Wi-Fi

When Tailscale is unavailable and you need a temporary connection on a trusted LAN, select Allow local Wi-Fi too. Accept the risk in the confirmation, open the displayed http://local-IP:47280 URL, and sign in with the same AGI Lab account used on the target PC.

Local Wi-Fi mode cannot use HTTPS. A third party on the same Wi-Fi network may be able to read the token and task content. Do not use this mode on public Wi-Fi, a shared office network, or a network available to visitors. Do not expose it to the internet with router port forwarding.

Stay reachable after the display turns off

Turning a laptop's display off leaves nothing keeping the computer awake, so it sleeps after a short idle period and remote access becomes unreachable. Tailscale then reports the computer as offline.

Turn on Keep this computer awake in the Desktop Remote access panel to stop the computer from sleeping while idle during remote access. Display sleep is never blocked, so the screen still turns off as usual. The toggle is off by default, and a change is saved immediately without restarting the server.

Only idle sleep is prevented. Closing the lid, choosing Sleep from the Apple menu, or any other explicit sleep still puts the computer to sleep and ends remote access. Keep the lid open when you rely on this.

The computer is only kept awake while remote access is running. Turning remote access off, turning this toggle off, or quitting AGI Cockpit all release it. On battery the computer stays awake and keeps draining. Connect it to power while you rely on this, or turn remote access off when you finish.

Stop remote access

Select Off in the Desktop Remote access panel to disconnect active sessions. Credentials survive ordinary restarts and Remote Access off/on. The PWA stores its token in browser localStorage; the target stores SHA-256 token hashes and connection metadata in pairing-credentials.json inside its Cockpit data directory. Review connections in the Desktop Remote Access screen or with cockpit remote-access paired list. Revoke an individual connection there or with cockpit remote-access paired revoke <id>; revocation disconnects it immediately. The list and revocation actions are also available while Remote Access is off. They never display the token or its hash.

AGI Lab sign-out, expired or revoked sign-in, or inactive membership pauses Remote Access while preserving its settings. Sign-in-issued connections are revoked when the PC signs out or its sign-in expires or is revoked. A temporary membership-verification outage preserves a running connection and shows an action to check again. If the credential store cannot be read, Cockpit refuses authentication and new connections without replacing the file; the browser keeps its saved token for recovery. If revocation cannot be saved, Remote Access stays stopped until the pending revocation can be applied. If neither the credential file nor the pending-revocation record could be written before Cockpit exited, review and revoke remaining sign-in connections after restarting.

Inspect and configure it from the CLI

An AI agent or terminal can inspect the current state and prerequisites:

cockpit remote-access status --verbose
cockpit remote-access tailscale status
cockpit remote-access certificate status

To configure a stopped Cockpit for Tailscale and HTTPS, get the certificate, save the configuration, and enable remote access:

cockpit remote-access certificate generate
cockpit remote-access configure --scope tailscale --https true --keep-awake true
cockpit remote-access enable

--keep-awake true|false matches the Desktop toggle. cockpit remote-access status reports the stored value as configured.keepAwake and the live assertion as runtime.keepingAwake.

cockpit remote-access certificate status reports expired, signed daysRemaining, and renewal. renewal.lastAttempt describes the latest automatic attempt, nextCheck the next check, and failed an actionable failure. Renewal history stores only non-secret reason codes. While HTTPS is running, expiry reflects the certificate successfully loaded by the TLS server rather than a newer file that failed to reload.

Configuration cannot change while the server is running. If you need to change it, confirm that active sessions may end, then run cockpit remote-access disable --confirm. CLI configuration and enablement for local-network access both require --confirm-local-network.

Operate another Cockpit from the CLI

cockpit devices, cockpit devices list, and cockpit devices all list this computer and devices on the same tailnet that answer Cockpit's health check. Each device includes the os reported by Tailscale, or null when Cockpit cannot recognize it. A device that is online in Tailscale but does not answer Cockpit is omitted from devices and reported with a reason under diagnostics.unreachable. diagnostics.notProbed counts devices that Tailscale reports as offline or without an address. cockpit devices self does not probe peers; it returns only this computer and aliases.

An alias is optional. Save one with cockpit devices alias-set <alias> <host> when useful, then add --host <host-or-alias> to supported task, autorun, accounts, fleet, and hooks commands or to ask list, ask get, ask answer, and ask close. Remote Ask creation remains unsupported. Browser, App Surface, display, settings, and other local-control families still operate only the local Cockpit.

Remote CLI requests from a computer on the same tailnet with the same Tailscale owner need no token. Other connections need a paired bearer token in AGI_COCKPIT_TASK_REMOTE_TOKEN or AGI_COCKPIT_SYNC_TOKEN. In Tailscale-only mode, Cockpit refuses connections that are neither a Tailscale peer nor loopback, even with a token. File paths and directories refer to the target computer, and remote responses include its device identity. The remote transport does not fall back to local file IPC. Remote cockpit ask answer is an exception: it always requires a paired token, including on loopback and same-owner Tailscale peers. See Ask authentication.

Reconnection diagnostics

The host records PWA authentication results and connection closes in ~/.agi-tools/data/cockpit/logs/pwa-connections.jsonl (up to 1 MB, plus two older files). After a dropped connection authenticates again, the PWA can add its close code, current screen category, visibility and online state, network type, attempt count, and reconnect timings. Reports require authentication. The log excludes addresses, URLs, browser names, tokens, task names, and message contents. Offline reports are lost if the page closes before reconnecting.

HTTPS certificate retrieval can take up to three minutes. Wait for the result; a timeout is a failure, not a running HTTPS server. Inspect the readable reason and retry after correcting it. Manual and automatic retrieval failures record a safe reason in remote-access.jsonl, without command output or key material. A successful manual retrieval or healthy check clears the previous renewal failure when no TLS reload remains pending. General settings saves preserve the current Remote Access HTTPS configuration.

The host tolerates three consecutive unanswered heartbeat pings, sent ten seconds apart, before closing the PWA connection. A heartbeat close records bufferedBytes for data still waiting to be sent. Settings and recent-folder changes use smaller synchronization messages; these improvements do not remove authentication or network requirements.

Troubleshooting

Message or state What to check
Remote access shows a lock Sign in to Desktop with an active AGI Lab member account
Tailscale is missing, stopped, or signed out Install, start, or sign in from the on-screen action. Connect the remote device to the same tailnet too
your Tailscale account does not support getting TLS certs Enable MagicDNS and HTTPS Certificates in Tailscale DNS settings, then get the certificate again in Cockpit
Cockpit does not have its own copy of the HTTPS certificate yet Starting HTTPS Remote Access asks Tailscale for a copy before the server listens. If it is still missing, get the certificate again in Remote Access. Get certificate stays available while HTTPS is on, even when the server is stopped. Full Disk Access is not required
You cannot change the Tailscale settings Ask a tailnet Owner, Admin, or Network admin
A certificate is issued but the URL is HTTP Turn on HTTPS and confirm that Connection info changes to an HTTPS URL
No URL or QR code appears Confirm that Tailscale only or Allow local Wi-Fi too is selected and the target shows as running
Sign-in cannot connect Use the same AGI Lab account as the target PC. Select the sign-in button again to switch accounts. After three starts, wait 30 seconds; the PC's own addresses share this limit
The PWA shows Disconnected Confirm that Cockpit, remote access, and Tailscale are running on the target, then select Retry now
Another Cockpit is missing Enable remote access on each computer, connect them to the same tailnet, then select Scan again
Cockpit cannot verify membership Check the network connection and select Check membership again

Tailscale itself can be connected while Cockpit is unable to read the Tailscale CLI state. If the CLI check error persists, reinstall Tailscale and check again.

Security notes

  • Use Tailscale only with HTTPS for normal remote access.
  • In Tailscale access controls, allow only the people and devices that should reach Cockpit.
  • The PWA can send task instructions, answer Asks, and change Autoruns. Lock connected devices and do not leave credentials on a shared device.
  • Before requesting an HTTPS certificate, confirm that the device name is safe to include in a public certificate log.
  • Local Wi-Fi mode is not encrypted. Limit it to a trusted network and the time you need it, then turn remote access off.