Security and data
Understand local execution, external and Ask-relay transmission, approvals, Cockpit Hooks, credentials, attachments, Browser Identities, and Remote Access storage boundaries.
AGI Cockpit runs tasks and agent processes on your computer. Features still communicate with external services when required, including the selected AI provider, websites opened in the browser, AGI Lab authentication and membership checks, and anonymous usage events.
Terms of Use agreement on each computer
From v5.0.0, a person must read and agree to the required Terms of Use in the main window on each PC before normal operation starts. This release bundles the November 26, 2026 revision. Until agreement is saved, tasks, terminals, Crews, Autorun, Hooks, Fleet, and Remote Access stay stopped. The CLI can only read status with cockpit terms status; it cannot agree, withdraw, reset, or bypass the agreement. Remote clients cannot agree for the host.
terms-acceptance.json in Cockpit's data folder records the Terms version, agreement time, app version, and displayed language. The time comes from the PC clock, not a third-party certification. Signing out or changing settings preserves the record; a new or deleted data folder requires agreement again. An unreadable record is not silently overwritten; a damaged record is preserved under another name before saving a new agreement. Settings shows the accepted version and date and can open the full text on the web. See the Terms status reference for status and recovery.
Links in the consent text open in the system browser. A contact-only correction can preserve an earlier agreement when the required Terms explicitly list that earlier version as covered. In that case no renewed consent is requested and the original acceptance record stays unchanged; a substantive revision without such coverage requires agreement again. The consent screen displays the currently required text.
Limited Linux setup and the machine key
The limited Linux setup page in 5.2.2 lets a person accept the bundled terms and authorize a device code through a loopback page; it does not enable normal headless tasks or Crews. Its setup URL expires after 30 minutes and grants setup access, so protect its fragment and use a trusted SSH tunnel for remote access. This is separate from a Remote Access client accepting terms for a desktop host. See Initial setup.
Linux machine-key storage protects encrypted Cockpit credentials with a key readable only by the owning OS user. It does not protect them from that user or root. Keep the key separate from backups of encrypted credentials. A missing or damaged key causes an error rather than silent replacement. Existing keyring credentials migrate only after a successful read and a verified encrypted write; pending deletion stays blocked if the original keyring cannot confirm deletion. This is distinct from the additional Codex account storage described below.
What stays local
Core Cockpit data, including task state, conversation history, Autoruns, Fleets, Cockpit Hook definitions and run history, templates, CLI runtime information, and logs, is stored under ~/.agi-tools/data/cockpit. Some data, such as attachments and Electron browser profiles, is stored in the operating system's application-data area. Working files live in the selected project, temporary directory, or Git Worktree.
The agent process reads and writes its workspace. Depending on the approval mode and agent permissions, it may access files not currently displayed in Cockpit. Select only the directories needed for the task.
Cockpit owns the local OpenCode servers that it starts for Cockpit Agent connections to OpenCode Go or OpenCode Zen and stops them when Cockpit quits. It does not stop a server that the user started independently outside Cockpit.
In the v4.124.0 Windows Store package, quitting or crashing Cockpit also stops processes launched from Cockpit, including VS Code or development servers opened by an agent. Detaching from a task alone does not keep them running. Save work before quitting, and start applications independently outside Cockpit if they must outlive it. Applications that explicitly leave the Windows process group are outside this cleanup. This applies only when the installed Store version is v4.124.0 or later.
From v4.90.0, Cockpit Agent stores its conversation database at opencode/v1/opencode.db inside Cockpit's data directory. On first startup, it copies an existing legacy OpenCode database to preserve conversations. That source can include conversations from OpenCode used outside Cockpit. The original database is left unchanged, and subsequent conversations do not sync between the two databases. If compatibility cannot be verified, Cockpit shows an error and stops Cockpit Agent startup.
PWA task search queries and recent searches are stored in the current browser’s localStorage separately for each connected host. They do not sync to other devices. Clear search and Clear history are separate actions; use both to remove both the current query and history.
An in-progress PWA message body is stored per task in the same browser tab's sessionStorage. It is restored across task switches and reloads, but does not synchronize to another device or persist beyond the tab session. Attachments are not part of this draft storage.
Smart routing's on/off state and Routing policy are stored in Cockpit's local data area separately for each AGI account. The new-task screen and local CLI use the same values, and they do not sync to another device.
Project folders and agent access
A project can contain multiple folders. When an agent session starts or resumes, Cockpit passes the project’s other folders to the agent according to that agent’s supported access options. Adding a folder can therefore expand the files the agent can read or write; review the folder list before reconnecting a task. Approval mode and agent-specific restrictions still apply. Muse Code Native UI receives current additional workspace roots on every turn, so project folder changes apply from the next message; its terminal UI receives no extra folders. A Git Worktree replaces only its source folder; other project folders are used in place. See the project CLI reference for agent-specific behavior.
Deleting a project removes its grouping only: tasks and folders remain. A task folder registered in a project is preserved when its task is completed or deleted.
From v4.127.0, removal is limited to folders verified as linked worktrees registered with Git. The main repository and unregistered folders are not removed. If Git removal fails and Cockpit cannot verify that a fallback deletion is safe, it leaves the folder and reports an error. Save needed changes before completion, and use --keep-worktree to retain the folder.
From v4.127.0, temporary workspace removal verifies that the folder is inside a managed workspace base. Paths containing parent traversal (..) or symbolic links below that base are rejected. When the location cannot be verified, Cockpit leaves the folder instead of deleting it.
Importing existing sessions
Continue where you left off, at the end of onboarding and on an empty task board, lists up to 200 Claude Code and Codex sessions from the last 30 days, grouped by workspace. Select sessions individually or by workspace, then import them together, or skip. Workspace suggestions can also be registered using the existing project creation dialog. Imported tasks resume in Terminal UI.
Scanning and importing happen locally. Neither conversation content nor workspace paths are sent externally by the import. Original session files are only read: importing never changes or deletes them, and does not start an agent. Anonymous onboarding events contain only the step, import count, or skip action.
What is sent externally
The selected agent, UI mode, model, and tools determine which instructions, conversations, attachments, file content, and tool results are sent to an AI provider. Cockpit Agent uses the configured OpenRouter, OpenCode Go, OpenCode Zen, or LM Studio endpoint. OpenCode Go and OpenCode Zen use separate API keys. Whether LM Studio is local or remote depends on its configured URL.
Switching a task to another agent can send earlier conversation messages, tool inputs and outputs, file changes, images, and compaction summaries to that agent’s provider. Review the transfer preview before sending the message that applies the switch. Thinking and encrypted reasoning are excluded.
When Smart routing runs from the new-task screen or local CLI, Cockpit sends the task instruction, routing policy, available agents, models and reasoning levels, and each candidate workspace's display name, local path, and kind to the authenticated AGI Backend to select a combination. File and attachment content is not part of the routing request. If the instruction is empty and the task contains only attachments, their file names are sent in place of the instruction. Turn off Smart routing and choose the workspace and runtime settings manually when local paths must not be sent externally.
Sites opened in the in-app browser receive normal browser traffic such as input, uploads, cookies, and WebAuthn. Remote Access transfers task, Ask, Autorun, Fleet, Hook, and account information needed by the connected PWA or supported remote CLI command. A remote Hook command can register and execute shell code on the target computer.
The PWA Cockpit Browser view sends an authenticated Remote Access client a viewport image and limited metadata for a host tab. Every request verifies the task, assigned Browser Identity, session, and tab; it does not expose general browser RPC, storage, or the complete URL. Frames are JPEG images limited to 1280 pixels and 256 KiB and are not saved to host disk or PWA browser storage. PWA scroll controls change the host page's position but cannot activate links, type, or submit forms.
The PWA App Surface view sends an authenticated Remote Access client only the target metadata and latest host-held frame for the session attached to that task. Each request verifies the task-to-session relationship and does not trigger a capture, input, or Desktop panel change. A frame is re-encoded as a JPEG limited to 1280 pixels and 256 KiB, retained only as the mounted view's current in-memory image, and not written to host disk or PWA storage.
The PWA Skills view sends an authenticated client the project and global skills discovered by the host for that task, their definition metadata, and SKILL.md bodies. A request cannot supply an arbitrary directory: the host derives the search roots from the task and reads only definitions admitted by that task's skill discovery. A body is limited to the first 256 KiB and the surface is read-only. Protect paired devices on the assumption that they can read sensitive content stored in an available skill definition.
Enabling a Discord or Slack relay under Settings → Ask notifications sends the Ask summary, questions, choices, task name, a link back to Cockpit, and optional Ask images or videos to the selected channel. Members who can read that channel can see the post, but Cockpit accepts an answer only from the single configured allowedUserId. Relays are off by default and make outbound connections from Cockpit to the Discord Gateway or Slack Socket Mode.
Muse Code Contributor models (IDs ending in -contributor) may allow conversations and code to be used for training under Muse Code's terms. They are hidden from model menus by default; enable Show Contributor models in Settings to make them available. Enabling this setting does not change the selected model. Native UI explicitly turns session Contributor mode on or off according to the selected model and starts with it off when no model is selected. A one-line notice appears where a Contributor model starts or changes; it scrolls with the conversation and is not repeated while that model remains selected, including on resume.
Anonymous usage and setup events
Before sign-in and while continuing locally, packaged Cockpit sends a random installation ID, app version, and a daily session check to AGI Backend. First-run setup also sends events for steps reached, abandonment, the sign-in screen being shown, continuing locally, sign-in, session import counts, and skipping import. Setup events can continue after signing in during that flow; replaying setup does not send them.
These events include Assistant creation, the first request being sent, and whether its proposed role was accepted or kept as Assistant. They record the step reached without the request text, proposed role, name, or Ask answer text. Task instructions, conversations, file content, and project names are not included.
Queued setup events are saved temporarily in the OS application-data area for retry. Until the first request and role decision have been recorded, Cockpit also keeps a local progress record containing the installation ID, Assistant task ID, related Ask IDs, and progress flags; it removes that record when both milestones are reached. Signed-in use also sends the app version during authentication session checks.
Distinguish approvals from Ask
Antigravity approval Auto is unsupported; saved Auto choices use Supervised. Automatic tool approvals are once per known request. Increased access starts on a new turn; restrictions apply immediately, including during native steering. An explicit human always-allow decision can persist at the provider and is separate from automatic turn policy.
supervised, accept-edits, auto, and full-access define the boundary of agent tool operations. When one-time approval, always allow, or deny is offered, inspect the operation, path, command, and external destination. “Always allow” affects later operations of the same kind, so prefer one-time approval when the scope is unclear.
auto (Auto) is available in Native UI for Claude, Codex, and Grok Build. The agent’s own reviewer evaluates commands and edits, allows routine actions, and blocks risky actions or sends them for human approval. It never answers questions or Asks. Other agents reject auto. Changes apply immediately for Claude and from the next turn for Codex. Grok Build restarts its idle session while preserving the conversation; changes are rejected while work or a pending request remains. If model, account, or organization restrictions prevent Claude or Codex from using Auto, Cockpit displays the effective mode and posts a chat notice. Grok Build’s runtime mode cannot be read back, so that check does not cover Grok Build. Cockpit never automatically falls back to full access.
On Windows, Codex runs commands in its own sandbox except in full-access. Network project folders, including shared drives and UNC paths, are excluded from writable roots, but their paths are still shared with the agent. The elevated sandbox uses a separate user with restricted network access, so reads may also fail or require approval. If setup refresh had errors appears, move the working folder to a local drive, or review the permission implications before changing the approval mode or Codex Windows sandbox configuration. See the task CLI reference.
Muse Code Native UI supports only accept-edits (default) and full-access. Workspace edits never ask for approval, so supervised and auto are unavailable. In accept-edits, a person approves commands and actions not already permitted by Muse Code's rules. Denying rejects the call and lets the turn continue. full-access also disables Muse Code's shell sandbox and approves remaining prompts. One approval covers every stage of the displayed shell command. Always allow uses the narrowest persistent rule Muse Code offers, or a session rule when no persistent rule is offered.
Ask returns a human policy decision; it is not a tool approval. Choosing “publish” in an Ask does not automatically grant permissions required by the operating system, an external service, or another tool.
The CLI can also decide pending tool approvals. Inspect turnRequests with cockpit task get <id> before using task approve or task deny; approve defaults to one-time permission, while --scope always remembers the decision. A decision made by another agent task is attributed to that agent, not to the human operator. task answer answers a runtime question; cockpit ask answer answers an Ask.
task create --approval-mode <mode> and task approval-mode <id> <mode> set permission boundaries for that task alone. Without a mode, the latter only reads the current setting. Supported modes are supervised, accept-edits, auto, and full-access. Terminal UI tasks reject these operations. Protect CLI access as authority to change task permissions; a confirmation flag is not evidence of human authorization. See the task CLI reference for the supported agents and commands.
cockpit task clear <id> --confirm discards the conversation and hides its original instruction in all open desktop and mobile views. Drafts in other views are preserved. Clearing and compacting refuse a turn that is running or waiting for an approval or question. task cancel stops the current turn while keeping the task. Verify the exact task and preserve needed history before clearing it.
MCP tool confirmations in visual tasks always grant one-time approval, including when the CLI receives --scope always. MCP forms are runtime questions: answer them with task answer, or decline them in the desktop or PWA question card. task deny only selects approvals.
Ask answer identity comes from verified credentials. Task answers retain task identity and cannot impersonate an owner. The shared local Ask token alone cannot answer, and Hooks receive no task credential. The PWA requires pairing even for same-owner Tailscale peers. Paired PWA and remote CLI tokens grant owner authority; do not share them with agents. See Ask for details.
Run Cockpit Hooks safely
Cockpit Hooks automatically run a registered shell action with the user's local permissions. They are separate from an agent's approval mode and do not sandbox the hook action. Register only scripts that you understand and control, then test them explicitly with cockpit hooks test before enabling them. cockpit hooks accepts --host for remote registration and execution. Remote Hooks authenticate like remote tasks: a computer on the same tailnet with the same Tailscale owner needs no token, and other connections need a paired bearer token. Either one authorizes registering and running arbitrary shell code with that computer’s user permissions, so protect your Tailscale devices and the token as control of the target instance. Script paths refer to the target computer.
The complete event JSON is delivered on standard input. Some values, including task names, working directories, Ask summaries, and selected text, are also available through environment variables. A hook that invokes an external command or network service can transmit those values. Select only the events and filters you need, and do not write tokens, personal data, or local paths to standard output or standard error. Their final 4 KB is stored in run history and can be inspected from Settings or the CLI.
Settings can disable or remove a hook, but removing it leaves existing run history in place. History rotates at 2,000 lines or 2 MB and keeps the latest 1,000 lines. Capturing selected text from a global hotkey on macOS requires Accessibility permission. Without it, the hook still runs with an empty selection value. Concurrency limits, timeouts, depth limits, and the circuit breaker reduce runaway execution; they do not make a registered command safe.
Crews: access and retained data
Crews are in beta and run on the owner's AI account, including turns requested by other people the owner allows. Received chat messages, attachments and the context the Crew reads can be sent to that AI service. Check the account's terms before allowing other people, and tell participants how their messages are used. Discord and Slack connections accept only the configured people and places; check the platform’s user IDs when assigning owners. A new person’s first DM or mention gets ⏳. Approval delivers only that request after rechecking permissions, place, and attachment availability. Other messages sent while waiting are not delivered. If delivery is impossible, for example because the Crew is stopped or attachments cannot be fetched again, diagnostics record the reason without the message text.
What a Crew's rules can and cannot stop, and how to treat people differently, are summarized in Safety and treating people differently.
Configure Crew DM intake with cockpit crew place dm <crew> --mode all|owners|off. Normally, all accepts people allowed to talk, owners accepts only owners, and off accepts nobody. DMs blocked by this setting are held while an Ask lets the owner allow that person’s DMs individually. This grants DM access only, without adding them to Who can talk or granting channel access. Multiple held DMs are delivered in order; approved messages stay held while stopped or disconnected until reconnection. DMs received outside active hours are not delivered. Not this time and closing the Ask grant nothing and deliver nothing. Remove individual permissions in the DM settings or with CLI place dm --remove. See People and places for limits and procedures. A Crew requesting a change from owners to all needs its owner’s approval in Cockpit.
A new Crew uses its agent's careful approval default. Full access lets it run commands and edit files without asking. Its home folder is not a sandbox: the Crew and its children run as the same OS user as Cockpit. Instructions to treat non-owner requests carefully and to confirm external actions can be missed by an agent. Crew CLI restrictions do not isolate files, secrets, other tasks, Hooks, settings or Remote Access, and can be bypassed by a process acting through the same local OS account. Protect that account and limit the files and capabilities within its reach. Approval waits pause replies and queued messages until the owner responds in Cockpit.
From v4.117.0, threads require a mention by default, including threads the Crew created or joined and older remembered threads. The connection settings and cockpit crew place threads control created and joined threads separately. Choosing all lets allowed people reach the Crew without mentioning it; when a Crew requests that expansion itself, the owner must approve it. Older saved threads whose origin is unknown still require a mention regardless of either setting. A parent channel set to off stops both kinds of thread.
The optional Crew-to-Crew reply limit is off by default. When enabled, the default limit is 10 consecutive messages from bots or webhooks in the same place without a person speaking there. At the limit, further bot messages are not delivered; a person's message resets the count. This limits repeated replies, not operating-system access. A Crew may tighten its own limit at any time, but disabling it or raising the limit requires a turn started by its owner.
A request relayed by a Crew during an owner-started turn carries origin="owner" and an origin_ref identifying its source. A receiving Crew can perform the changes allowed for such a relayed request even under memberTrust: strict, but this is not a direct owner turn: owner-only actions, such as changing accounts or Ask DM recipients, remain unavailable. Widening permissions still requires owner approval. Unmarked task messages and child-task sends do not gain this authority. Interrupting messages keep the least trusted authority of the combined turn. The Crew reference lists the exact boundaries.
Each Crew keeps its instructions, memory and work in its own home, with Git history. Received chat attachments are retained for seven days, or longer while their message is queued; copies saved in the home, the owner's own files and Ask-answer attachments do not expire under that rule. Stop preserves queued messages. Removing a Crew deletes its settings and attempts to move its home to the Trash; when that fails, the reported home path remains on disk. Disconnecting a chat removes its connection credentials. See the Crew CLI reference for exact limits and operations.
Finished Asks also retain a local status record for up to 30 days, with at most the latest 500 records. It includes the title, task, outcome, responder and an answer summary of up to 500 characters. cockpit ask get <askId> exposes the status and answer-delivery state; do not put secrets in Ask answers. This retention is separate from the secure password-input flow.
Crew Ask DMs are on by default and send questions and supported media to each connection owner through the Crew's bot. Crew settings or cockpit crew update <crew> --ask-dm-to <user-id> can narrow the recipients. An empty selection sends to nobody; --ask-dm-to all restores all owners. This selection also covers approval Asks and secret-input notices. Removing a recipient closes their unanswered DMs and clears question text, choices, and attachments. An agent may change recipients only during an owner-started turn. Only the DM recipient, while still an owner, may answer. New-person approval Asks also accept an owner's DM answer; approval grants access to DMs and all places the Crew listens to. General Ask relays exclude owner-only questions, and Crew settings-change approvals stay in Cockpit. Secret requests send only a notice and a token-free PWA address when HTTPS Remote Access runs, never the request details or value. Disable these DMs with cockpit crew update <crew> --ask-dm off. See Ask.
The Interrupting its work setting chooses Everyone or Owners only among senders already allowed to reach the Crew. It changes delivery timing, not access or turn authority. Non-owner requests wait in the Queue when only owners may interrupt. The unread-message check before channel or thread posts is also a coordination aid: DMs and owner-side sends are excluded, and failed history reads permit sending with a warning.
Chatwork connections and data flow
Chatwork integration requires signing in to an AGI Lab member account and a dedicated Chatwork account for the Crew. Enter its API token in the dedicated input screen, never in a conversation. Cockpit saves the API token in encrypted storage. The webhook signing token is sent to AGI Backend for signature verification. Share the webhook URL only with the person configuring the connection.
Chatwork events pass through AGI Backend. Cockpit uses the received notices and its locally stored API token to fetch message text and attachments from Chatwork. Edits and deletions after delivery do not reach the Crew; send a new message to correct or cancel a request. Disconnecting or removing the Crew also deletes its receiving configuration at AGI Backend. Delete the webhook in Chatwork separately. Accessing sensitive connection settings through Remote Access requires HTTPS.
Approving bots and webhooks
Requests from Crews, bots, and webhooks absent from the people list also enter pending approval. Approval expands that sender's access to the Crew. When the Crew requests such approval itself, the change waits for its owner to confirm in Cockpit. Check the sender ID and allowed places before approving.
Credentials and new Crew permissions in 5.2.0
New Crews start with Auto for Claude Code, Grok Build, and Codex on macOS/Linux, and Full access for other agents. In 5.2.1, Codex on Windows also defaults to Full access. This also applies when switching an Auto Crew from another agent to Codex on Windows; explicit approval modes and existing Codex Crew modes are preserved. Full access runs commands and edits without confirmation. Review the mode and who may talk to the Crew when creating it. Existing Crew modes do not change. See Approval modes and permissions.
The owner's Google sign-in used by Google Chat and the passwords for additional Antigravity account Keychains on macOS are stored in the OS secure store. If the store cannot be read, existing credentials are preserved. Cockpit passes short-lived access tokens to gcloud, but does not automatically delete its credentials.db, access_tokens.db, or journals; plaintext credentials may remain there. Credentials held only in those databases do not enter the secure store until an explicit sign-in. Only confirmed old exports and logs are cleaned up.
In 5.2.1, additional Codex accounts use file storage while auth.json remains, and use the OS keyring once the file is gone where keyring storage is supported. Existing ChatGPT sign-ins can continue, but their plaintext files do not automatically migrate to the keyring. Linux environments without a secure store retain file storage. Sign-in files managed by other CLIs are not universally migrated. Cockpit keeps its copy of the Tailscale HTTPS private key only in memory. The per-launch CLI connection key remains in a file with mode 0600. See the secret reference for the storage boundaries.
Cockpit removes its dedicated Slack CLI sign-in after setup or profile changes succeed, fail, or are cancelled, after waiting for the CLI to exit. A file left by a forced exit is removed on the next normal startup. Failed cleanup is shown in connection settings. Profile changes and similar operations require signing in again for that operation. Remote screens cannot perform that sign-in; use the desktop. The ordinary Slack CLI storage location is unchanged. See the Crew CLI reference for procedures and limits.
Store credentials
Named Claude profiles can store dedicated Anthropic API keys in separate encrypted entries. They require explicit selection for Native UI, do not fall back to another key or subscription, and do not report API costs. Terminal UI still uses Claude Code sign-in. See Accounts and Auto for authentication and billing boundaries, and Crew safety for owner approval before importing or running outside files and owner-only skill changes.
AGI Cockpit tokens and API keys are stored in encrypted storage such as the OS Keychain or keyring. The Discord token and Slack access and app-level tokens use this same boundary and are not returned as ordinary setting values or in status output. If secure storage is unavailable, Cockpit refuses to save rather than falling back to plaintext. Credentials that fail to delete are disabled and scheduled for deletion again on the next launch.
Muse Code keeps one shared login per computer (Keychain on macOS); Cockpit does not isolate Muse Code profiles. In Muse Code login mode, Cockpit removes an inherited META_API_KEY before launching native or terminal UI. Terminal UI still runs inside your login shell, so startup files can export a key again. In Meta API key mode, Cockpit passes the encrypted key saved as agents.credential.meta; it is not an AGI Lab credential. Use agents.museAuthMode (muse-login or api-key) to select the method. Reads expose only whether the key is set.
Antigravity sign-in and provider credential storage belong to official Agy. Cockpit keeps profile Keychain creation, unlock, placeholder, and search-order checks on macOS but does not inspect, refresh, copy, or reinject credential contents. Additional-profile login is unverified. Windows and Linux use the default account only because their OS keyring is shared; changing the home directory does not isolate accounts there.
Antigravity accounts logout previews every target and shared impact without --confirm. Running it for a named profile never removes the host login; when that profile uses shared authentication, the result points to the default-account logout instead. Logging out the default can also affect other profiles, ordinary terminal-launched Agy processes, and Gemini CLI authentication under the same home. Cockpit never logs an account out automatically. Browser Identities remain separate from agent account profiles.
Switching an active Claude, Codex, Grok Build, Antigravity, Cursor, or Qoder task copies its saved conversation into the selected account profile. When different target history would be replaced, Cockpit archives it first. Use separate tasks instead when policy requires conversation content never to cross profile boundaries.
The CLI can set the OpenRouter, OpenCode Go, OpenCode Zen, Anthropic, and Meta API keys with cockpit settings set agents.credential.<name> --stdin or --key-file. Never put a key in a command argument or task message. Reads report only whether a key is set. settings reset agents.credential.<name> removes that key from the same encrypted store used by Settings. These commands operate locally; protect local CLI access as authority to replace or remove provider credentials. CLI request bodies are passed without temporary request-body files. Internal credentials such as Cockpit's local tokens and authentication headers are not placed in child-process command-line arguments; the CLI passes them through standard input or a short-lived temporary file. For the latter, only the temporary path appears in the child arguments, and the file is removed after handoff.
Task get, list, create, and wait CLI responses, Hooks task payloads, and task data sent to Desktop or the PWA omit OpenRouter, OpenCode Go, and OpenCode Zen API keys from queued messages. This exclusion applies to output; it does not change how messages are saved or sent to providers.
Enter a password once
When an agent uses cockpit secret request, you can deliver a value once to a specified browser password field from the dedicated Desktop window and Ask tab, or from the Inbox in an HTTPS-connected PWA. The dedicated window follows the Ask-window setting, but this remains separate from an Ask answer. Review the PC, task, purpose, Browser Identity, actual URL, destination, and deadline, then select Fill this field once. It does not click a login button or submit the form automatically.
The destination must be a unique, visible, enabled password field in the main frame on HTTPS or loopback HTTP. Changing the page or field after the request causes delivery to fail; Cockpit does not choose another field. Requests expire within ten minutes. PWA submission and cancellation require authenticated HTTPS/WSS and never fall back to an unencrypted connection. The CLI cannot accept or retrieve the value.
Delivery values stay in transient memory and are not saved in Cockpit conversations, Ask answers, CLI results, diagnostic logs, persisted tasks, PWA storage, or Ask forwarding. They are not restored or resent after restart. An unconfirmed delivery is not automatically retried; check its status instead. Cancellation applies only before delivery starts. When a request completes, fails, is cancelled, or expires, its input surface disappears immediately everywhere and leaves no result on screen. The requester can inspect the result with cockpit secret status or the value-free notification sent to its task. CLI responses identify the selected instance; failures return a stable code and error without including the input value or page content.
The destination site can retain the value, and tools that read its DOM or evaluate scripts may read it after input. This feature does not guarantee that AI cannot read destination data. Discarding the delivery copy does not clear the site's field. Use trusted PCs, PWA devices, and sites. See the secure input CLI reference for details.
Send HTTP authentication credentials once
cockpit secret request --to http-auth --tab <tabId> collects a user name and password for HTTP Basic or Digest authentication, separately from a page’s password field. It binds to the requesting task’s tab, Browser Identity, and exact challenge ID, origin, scheme, and realm. No --selector is used. The destination must be HTTPS or loopback HTTP. Review the site in the secure input screen and choose Send to this site once.
completed means Chromium received the credentials, not that authentication succeeded. Wrong credentials require a new request for the new challenge. Signing in or cancelling in the panel, navigating, stopping loading, closing, or recreating the tab fails a pending input request within a second with destination_unavailable. Cockpit saves neither value; Chromium reuses accepted credentials within that Identity until Cockpit quits.
Managed terminal password input
For a terminal belonging to the requesting task, use cockpit secret request --to terminal --terminal <terminalId>; --terminal task explicitly selects its primary terminal. The same secure input surfaces show the terminal, PTY session and foreground process. Confirm that the actual prompt is waiting for a password and that the destination is correct before choosing Send once and press Enter. This sends one line, up to 512 UTF-8 bytes without control characters, followed by Enter. A completed request means the terminal accepted the write, not that authentication succeeded.
Delivery requires a managed Unix PTY with echo off, canonical line input enabled and an identifiable foreground process. Windows ConPTY, raw input, echo-on shells and external terminals are unsupported. These checks neither prove a password prompt is waiting nor authenticate a remote host. Cockpit rechecks the original session, process, mode, input/output and deadline before sending; a change invalidates the request. Inspection cannot guarantee what the receiving program reads next. Never retry an unconfirmed delivery automatically.
The exact supplied value is masked in subsequent Cockpit terminal output, including when split across output chunks. This can also mask unrelated text matching a protected prefix. The receiving program can retain or transform the value; encoded or transformed output and compromised destinations are outside this protection. Trust the receiving program and destination. When the destination is the primary task terminal, or the requester is a plain terminal task, check cockpit secret status: Cockpit does not inject result notifications into those shells or password prompts.
Crew connection tokens and authority
The owner can change a Crew’s execution account from its composer or with cockpit crew update --account. The Crew itself can do so only during an owner-started turn; child tasks cannot. Auto can switch to another available signed-in account, so check that account’s quota and terms too. Changing a Crew’s agent starts a new session without transplanting its full prior conversation to the other provider.
During a turn started directly by the owner, a parent Crew can update its direct child's name, agent, model, effort, speed, periodic checks, workplace, icon, instructions, and stricter approval mode, and start or stop it. A more permissive approval mode still requires owner approval. Requests merely marked as originating from the owner do not grant this parent authority. It cannot change grandchildren, the child's accounts, connections, people and places, parent assignment, or remove it. Reassigning the child invalidates pending parent-change approvals. See the Crew permissions reference.
From v4.118.0, Crew history reads follow the caller and the authority of the turn. The owner’s side and owner-started turns can read any place the Crew can see in Discord. Turns requested by another allowed person are limited to reply-place channels and their threads, joined threads unless their parent channel is off, and the DM with that requester. Turns with no requester or mixed requesters, and child tasks, can read only the eligible channels and threads, never DMs. Out-of-scope requests are refused before message contents are read.
A Crew can edit the text of its own Discord messages and delete those messages with their attachments. It cannot edit or delete messages posted by another person or bot. Its standard instructions permit deleting its own posts without asking the owner; other deletions still require confirmation. Edits preserve attachments and do not notify people again. Adding or removing reactions is restricted to places the Crew participates in.
cockpit crew connect <crew> --platform discord --secure-input asks you to enter the Discord bot token in Cockpit. Review the Crew and the connected account being replaced before selecting Connect with this token. Cockpit checks the token with Discord and, when possible, enables Message Content Intent. After Discord accepts it, Cockpit saves the token as that Crew's credentials in secure storage. This is an intentional storage exception to one-time password delivery. The requesting agent receives only the result, never the token. A removed Crew or a changed connection invalidates the request.
An owner's task or the master can request this input. A Crew can request it for itself only during a turn started by its owner; its child tasks cannot. The owner's authenticated tasks can also answer a Crew's owner-confirmation Ask and decide its pending approvals. Crew sessions and their children cannot grant themselves those permissions. CLI checks prevent accidental misuse but do not isolate processes running as the same operating-system user. Protect local access accordingly.
Pressing a button on a Crew’s Discord post sends the person and button ID to the Crew. The same sender and place permissions as ordinary messages apply; pressing a button does not grant owner authority. Forum and media-channel posts follow the same permissions.
A Crew can further restrict a post’s buttons or individual buttons with --pressable-by, allowing its current owners (owner), specific Discord users, or everyone already allowed to talk to it (everyone, the default). These limits never widen sender or place permissions. Cockpit saves the limits across restarts and rejects presses with an unknown reference or from a different message. Editing a post to replace or remove its buttons, or deleting it, invalidates its old buttons before contacting Discord; those buttons remain unavailable even if Discord rejects the change or does not respond. Button presses do not replace owner approvals in Cockpit.
People who mention a Crew in a Discord channel must still be approved before their requests are delivered; allowing a channel does not approve everyone in it. Discord messages that interrupt a running Crew retain the least trusted authority of the interrupted turn and the new message.
Turning a task into a Crew preserves its conversation and agent session, transfers its child tasks, and redirects its Autoruns to the Crew. This conversion cannot be undone; removing the Crew also removes the converted task. See the Crew CLI reference for eligibility and permissions.
Isolate Browser Identities
The in-app browser grants site permissions such as notifications, geolocation, and clipboard reading and writing by default, without a Cockpit confirmation dialog. OS and Web API restrictions still apply. It denies media capture including camera and microphone, screen capture, fullscreen, automatic fullscreen, permission to open external apps, keyboard lock, and deprecated synchronous clipboard reading. Open only sites you trust. This policy applies to every Browser Identity; separating Identities does not restrict site permissions.
Each Browser Identity persists its own cookies, cache, localStorage, permissions, proxy authentication, and browser sessions. A task can be assigned several Identities, with one primary Identity; each session belongs to exactly one Identity. Agent commands can access only assigned Identities. Autoruns assign an initial Identity to new tasks, and Default is used when none is selected.
On macOS, import-session imports cookies belonging to the visible site's registrable domain and localStorage for the exact origin from Chrome into the selected Identity. It does not import sessionStorage, IndexedDB, extension state, device-bound authentication, or passkeys themselves.
On macOS, source selection also supports Brave, Edge, Arc, Vivaldi, Opera, and Firefox. Use cockpit browser import-sources to inspect sources and --browser with --profile-id to select one explicitly. Without a source selection, Cockpit uses the most recently used preferred profile among detected browsers. Chromium sources can import cookies and exact-origin localStorage; Firefox imports cookies only and reports that limitation. Each Chromium browser uses its own Safe Storage Keychain item, while Firefox cookie import does not access Keychain.
Clearing an Identity closes its sessions. Removing it also deletes persistent data. An Identity referenced by a running task or Autorun cannot be removed without a replacement, and the Default Identity cannot be removed.
See Browser Identity for assignment and removal procedures.
Importing a browser sign-in copies the source browser’s session; it does not sign in with a different account. Check the source account before importing it into an Identity.
Handle attachments and Ask media
An HTML explanation attached to an Ask is stored with the unanswered Ask and deleted when it is answered or closed. Desktop and the PWA render it in an isolated, display-only area without scripts, forms, or Cockpit actions. HTTP/HTTPS links open in the system browser. Discord and Slack relays do not include the HTML body, so information needed to decide must also appear in the summary or choices.
Local image previews in PWA conversations are sent from the host as resized JPEGs over an authenticated Remote Access connection. Only absolute paths recorded in the target task’s persisted image_view results are allowed; this does not provide access to arbitrary local files. Source size and pixel count are checked as well.
Attachments are stored unchanged under randomized names in a Cockpit-managed area. Archives, executables, and unknown extensions are accepted; Cockpit does not reject extensions or verify that content matches the declared MIME type or file format. Actual size and file-count limits are enforced. One message accepts up to eight files, 512 MB each and 1 GB total; JSON is limited to 25 MB. Acceptance does not establish that a file is safe.
Antigravity Native UI sends explicitly attached images as ACP image content. Images outside the workspace are not copied into the project. They are still disclosed to the selected provider, so check the selected attachment and account before sending.
Legacy Antigravity conversations retain their original Cockpit history when moving to a new ACP session. Readable context and previous handoff images accompany the first accepted message, with missing or shortened portions disclosed. Unreadable required history blocks migration; old instructions in history do not grant new execution authority.
When the relay option to attach files posted in Discord or Slack is enabled, Cockpit downloads files posted by the allowed user in the configured channel into managed storage and attaches them to the next response for the matched Ask. A reply targets that Ask; otherwise the file is assigned to the newest unanswered Ask in the same channel. Disable this option when it is unnecessary, and do not post sensitive files to a shared channel.
File names and content are not trusted instructions. Desktop chat offers a preview action only for a recognized local file link, and previewing never executes the file. Cockpit checks a Windows drive path first, but does not contact a UNC path while the conversation renders; its first read happens only after you select the link. A supported Windows file: URL is normalized into a local or UNC preview path. POSIX file: URLs, unsupported URL schemes, and data URLs that could contain executable content are not opened. Remove personal information, local paths, tokens, and session data before external sharing.
Desktop video preview omits the file path from its URL and reads only the needed ranges through an unguessable temporary URL that belongs to the renderer showing the preview. Closing the preview, navigating its main page, or destroying the renderer revokes that access. Each read verifies that the target is still the same regular file, so reusing the URL cannot switch it to another file or a symbolic link.
Fleet command gates save complete stdout and stderr per attempt under the Run's fleet-runs/<runId>/gates/ directory, retaining only the head and tail when a log exceeds 20 MB. Output may contain tokens, local paths, test fixtures, or personal data. Inspect it before sharing from the Fleet panel or cockpit fleet output. Before removing an unneeded terminal Run, preserve only the diagnostic evidence that is still required in a safe location.
Local task create and task send can attach files through repeatable --media arguments, using the same managed upload store and limits as the GUI. The source files are copied, never moved or deleted; the attachments can be sent to the selected agent provider. Remote --host delivery is not supported.
Protect Remote Access
When the Desktop device filter displays another PC, it receives task-list metadata from a PC authenticated as the same Tailscale owner, including task names, states, agents, working paths, instruction previews, timestamps, and whether an Ask is pending. Crew summaries also include their avatar, Crew state and connection status, and child-task relationships. This dedicated list connection does not synchronize conversation bodies or attachments and does not control tasks. Received lists are cleared when the connection drops.
Opening a remote task from that list creates a separate PWA connection to the other PC's Remote Access page. This connection uses the same authentication boundary as the PWA. After authentication, it can read the conversation and task detail and send messages, Ask answers, stop, and completion actions to the target PC. Confirm the displayed device name, and protect Tailscale devices and paired connections as authority to operate that Cockpit.
Task notifications, full state synchronization, and recent folder lists are sent only to authenticated sync connections. An unauthenticated connection is closed after two minutes. A saved PWA token reconnects automatically; without one, the browser must sign in with the same AGI Lab account as the PC. Tailscale ownership and the PC's own network addresses do not grant owner authority to a PWA or an Ask answer.
The recommended configuration is Tailscale-only access over HTTPS. PWA and owner CLI connections use AGI Lab sign-in instead of a six-digit code. Existing code-issued credentials remain valid. The CLI and embedded PWA show a confirmation page naming the PC before sign-in; confirm only requests you initiated. Treat a returned connection token as authority to operate that Cockpit. Review and revoke connections in Remote Access or with cockpit remote-access paired list and cockpit remote-access paired revoke <id>. A credential-store read failure blocks authentication without replacing the file. Cockpit does not silently downgrade to HTTP when an HTTPS certificate cannot be obtained.
Only while HTTPS Remote Access is running, Cockpit checks the certificate at startup and every 24 hours and renews it through Tailscale when 30 days or less remain. Existing connections stay open, and the renewed certificate applies to new connections. Failure retries after six hours and produces a reason-specific warning when expiry is within 14 days or has passed. Renewal history does not store certificate contents, private keys, command output, or personal account details.
Remote CLI control accepts a computer on the same tailnet with the same Tailscale owner without a token. Other connections need the paired bearer token, and in Tailscale-only mode the target refuses connections that are neither a Tailscale peer nor loopback. Protect the token as control of the target Cockpit. Remote file paths refer to the target computer, and the transport does not fall back to local file IPC. Remote cockpit ask answer always requires a paired token, including on loopback and same-owner Tailscale peers; see Ask authentication.
Local Wi-Fi mode is unencrypted and activates only after explicit confirmation. Do not use it on public or untrusted networks. Stopping Remote Access ends connected sessions and saves standalone state.
See Remote Access for setup details.
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.
Protect App Surface
App Surface attaches one target exclusively to one task. The first attachment to an Android physical device requires Ask approval, and fill refuses secure fields. The last frame may remain after disconnection, but the stale Surface disables interaction. The PWA can view this frame but cannot attach, detach, reconnect, or send input.
Cockpit does not start, stop, or install the target app. Completing or deleting a task detaches the target without closing its app.
See App Surface for attachment and operation procedures.
Confirm completion and deletion
Completing a temporary-directory task deletes its workspace. Completing a Git Worktree task in Desktop preserves its Worktree, while CLI task complete removes it by default. Deleting tasks, bulk-deleting a Fleet Run and its tasks, or removing an Identity can destroy history and local data.
Before deletion, confirm the target ID, path, Git state, required artifacts, and recovery method. Obtain user approval immediately before publication, external transmission, purchase, or permission changes.
The Fleet Run menu and cockpit fleet complete-tasks <runId> complete remaining tasks in a completed, failed, stopped, or paused Run. Running Runs are refused; active tasks and sessions an unfinished loop will reuse are skipped. Use --dry-run to preview the targets. This keeps the Run and task history, and preserves Git Worktrees, but completing temporary-directory tasks deletes their workspaces. Preserve needed files first.
PWA file access and HTML Surfaces
The paired PWA can browse and preview files in the folders actually supplied to the selected task’s agent, including its working folder, additional project folders, and a Crew’s home. Chat links to a Crew’s own instructions, memory, skills, work, and archive resolve from its home first. The host validates each selected folder and relative path; arbitrary absolute paths and parent-directory traversal are refused. This is read-only access, including hidden files when requested; keep secrets out of folders shared through Remote Access. Build, dependency, and Git folders are excluded. Symbolic links are not followed, even when they point back inside the task folder. Text previews stop at 1 MB, images at 10 MB, and PDF, audio, and video at 50 MB. Background process views read only log files recorded for that task and cannot stop or restart a process.
HTML Surfaces block scripts by default on Desktop and the PWA. A Surface containing <meta name="cockpit-scripts" content="isolated"> can run inline JavaScript for local calculations and display changes inside an isolated frame. It cannot access Cockpit, Node, local files, authentication, cookies, or app storage. Network requests, external resources, embedded pages, navigation, downloads, and popups are blocked. Inline event attributes and JavaScript URLs remain blocked. Display notices never run scripts.
Only a genuine user click on a declared action or validated submit control can send action and field values to the owning task. Script-generated clicks and messages cannot send, and --non-interactive disables sending while allowing local calculations. Reopening or replacing a Surface starts a fresh script context. See the HTML reference for limits and recovery. HTML file previews are separate: their sandbox can run scripts but does not grant access to the PWA, its storage, or its parent page.
Operation and permission changes in v4.128.0
Worktree cleanup leaves the folder when another worktree of the same repository is nested inside it, or when the original worktree was moved and another was created at its old path. Task completion or removal still proceeds; the reason cleanup was skipped is recorded in the app's main-process log. Older tasks without recorded worktree identity receive only the nested-worktree check.
A Crew's own session can read other Crews' settings, instructions, people, pending request counts, and missions, including in automatic turns. A turn involving a non-owner member is refused when memberTrust: strict. Other Crews' chat history remains unavailable, and credentials are never returned. This limit does not track requests carried into another turn or Crew; keep confidential information restricted to owner requests.
Pending message excerpts are returned only to Cockpit screens and authenticated owner tasks. Anonymous requests, task IDs without task authentication, Crew tasks and their children, and reads through another computer receive counts with the messages redacted. Saved message bodies are never returned. Access from another device owned by the same person does not authenticate an owner task. Approval DM references remain protected after the Ask ends and after restart. Only Cockpit onboarding and the New Crew screen can mark first instructions; ordinary API requests cannot set that mark.
Crew posts on Discord can notify roles, @everyone, and @here when Discord permissions allow it. Turns involving a member suppress these mass notifications while allowing user mentions and reply notifications. This limit does not track a request carried into a later turn. Ask relay posts and DMs do not send mass notifications.
The Desktop main window blocks navigation and redirects to external pages. New-window requests follow the external-link policy. PDFs created by external pages are checked for content and size and opened in a separate isolated viewer.
Slack connections and organization data in v4.129.0
A Crew can connect to Discord and Slack at the same time. Slack uses a bot OAuth token and an App-Level token, saved in secure storage after validation. The dedicated secret input screen does not return those tokens to the requesting agent. Conversations, attachments, and Ask notifications are sent to the connected Slack workspace. People, places, and button permissions are checked per connection; pressing a Slack button does not grant owner authority. Posts can notify user groups, @here, and @channel, with mass notifications suppressed in turns involving members. See the Crew CLI reference for procedures and limits.
Organizations are an AGI Lab member feature. Registered names, roles, relationships, and device names for people, Crews, and other agents are stored in AGI Backend. Device names appear unchanged in the chart. Explain the purpose and storage to people before registering them. Do not enter evaluations, contact details, health information, beliefs, credentials, or secrets. Contact-shaped input checks do not guarantee detection of all personal information. Registered information is not identity-verified; data may be stored outside Japan and can be read by technical operators.
Organization membership and manager relationships do not change Crew permissions or who may talk to a Crew. Desktop and the PWA are read-only. The owner's authenticated tasks can read, write, and inspect history; Crews handling owner-origin requests can read and write. Automatic turns can only read organizations they belong to. Member-origin turns and Crew child tasks are refused. These checks do not isolate processes running as the same OS user, and previously read information can remain in later conversation context. Do not use organizations as access control for confidential information.
Temporary organization caches stay in memory. History retains operations, sources, field names, and affected IDs for 180 days, but cannot restore deleted values. Membership expiry stops reads and writes; organizations are deleted after 90 days. Account deletion deletes organizations and history. Listed third parties cannot delete themselves through Cockpit; contact the registering owner or support with the organization name or ID. org apply replaces the entire document, deleting omitted members and relationships. CLI deletion does not show another confirmation. Check the target and content before running it. See the org CLI reference for details.
Windows Store packages declare a firewall rule allowing inbound TCP traffic to the Cockpit executable on all network profiles. Remote Access authentication and connection-scope settings still apply. This declaration does not guarantee that Windows will omit prompts on installation or update; real-device verification remains incomplete.
Send feedback to AGI Lab
From v4.131.0, users signed in to AGI Lab can use cockpit feedback send to send an AGI Cockpit bug report or feature request to AGI Lab. Only AGI Lab staff can read it. Alongside the title and body, Cockpit sends its version, the OS and OS release, whether the sender is a shell or Crew, and the Crew's agent type when applicable. It does not automatically add the host name, Crew ID, email address, or model name. Files cannot be attached.
Secret masking is a safety net that cannot detect every secret. Keep credentials out of the body. Sending shows no confirmation dialog: send when the owner requests it; requests from other people require owner confirmation under the outside-action rules. Cockpit does not resend automatically when the outcome is unknown, and resending may create a duplicate. See the feedback reference for details.
Operation and permission changes in v4.140.0
Discord and Slack threads can have their own receiving mode. All messages does not widen who may talk, override an Off parent, or grant access to an unlisted parent while other channels are off. Changes must confirm the thread and parent with the service. Damaged settings stop delivery; unverified access is not assumed. Crew turns handling non-owner requests need owner approval to widen all-message delivery, including parent changes that activate such threads and returning to defaults that receive everything. A stale approval cannot authorize additional threads. Thread names are redacted for callers without history access; same-owner remote access alone does not authenticate an owner task. See People and places.
Unreadable or corrupt AGI Lab credentials mean verification is unavailable. Read failure alone does not delete credentials, revoke pairings, or reset account preferences, and cannot authorize a new protected operation using an unverified identity or cached account data. Local continuation is available without granting member access. Explicit sign-out and confirmed invalid credentials keep their normal behavior. See sign-in recovery.
Bulk deletion of completed tasks removes task history and related task files but preserves Git worktree folders, registrations, and uncommitted and untracked files on Desktop and the PWA. PWA cleanup removes eligible temporary workspaces; Desktop bulk cleanup leaves them. Single-task CLI removal can remove the worktree. Confirm the target and save needed output first; kept worktrees need deliberate later cleanup. See Task list.
Resuming a blocked Codex Goal requires you or a task acting on your request, preserves its objective and budget, and does not bypass memory-guard consent or resume completed or budget-exhausted Goals. Automatic Crew turns and Hooks cannot resume Goals. See Task management.