Initial setup
Check an AI agent, prepare the Cockpit skill and cockpit command, and reach the point where you can create your first task.
By the end of this guide, an agent and the Cockpit integration will be ready for your first task. If the flow did not open on first launch, use the app menu in the lower-left corner and select Setup → First-run setup.
Before setup, complete the Terms of Use agreement in the main window on this PC. AGI Lab sign-in and the agreement are separate. Neither an agent, the CLI, nor a phone can agree for you. See Install AGI Cockpit.
1. Check an agent
Setup checks Claude Code, Codex CLI, Grok Build, Antigravity CLI, Cursor CLI, Qoder CLI, and Muse Code (macOS/Linux). It shows whether each CLI is installed and, for some agents, whether sign-in is ready. When a detected CLI is not yet usable, the screen states Plan and sign-in required. One ready agent is enough for setup to create an Assistant Crew at the end. You can also choose Set up later to continue setup without a ready agent; setup then creates no Assistant.
If Cockpit cannot find the agent you want, select Install. The row shows installation progress and, if it fails, a reason such as network trouble, missing commands, or insufficient write permission. Installation runs in the background, so you can keep using Cockpit. Select View output to inspect the terminal or provide requested input, and Stop to cancel. Closing the viewer leaves installation running. Retry after correcting a failure. Cockpit Agent and Terminal do not require an external CLI.
When installing Codex, Cockpit skips the official installer’s launch confirmation prompt. After installation, complete Codex authentication in the sign-in step below.
2. Configure the Cockpit integration
Setup automatically installs or refreshes the Cockpit skill for detected external agents and makes the cockpit command available. It adds the command directory to shell configuration on macOS and Linux or to the user PATH on Windows.
On macOS and Linux, Cockpit adds or removes only its managed block. It preserves other shell settings, existing PATH lines, blank lines, and line endings. When the command directory is already present in a user-managed PATH entry, Cockpit does not rewrite the shell file.
This updates each agent's user-level skill directory and the applicable user-level path configuration. HTML Mode is optional and can be installed separately. If you add an agent later, open Skills from the app menu to review its status.
3. Sign in to the agent
An AI agent's plan and authentication are separate from AGI Cockpit's local features and AGI Lab sign-in. Obtain an eligible plan from the provider and sign in to that provider account for Claude Code, Codex, or another selected agent.
In the agent step, select Sign in for Claude Code or Codex. Codex opens browser sign-in on every supported OS; Claude Code does so on macOS and Linux. Complete authentication in the browser and Cockpit returns to the agent list automatically. If the browser did not open, copy the displayed URL. For Claude Code, paste the browser code into the setup screen if requested. On Windows, Claude Code uses the guided terminal sign-in: pass the theme choice, then choose Claude account with subscription at Select login method.
If sign-in fails, follow its displayed reason and select Try again. Claude Code also offers terminal sign-in for supported failures. You can cancel and return to setup without signing in.
If a Claude Code, Codex, or Grok Build Native UI task starts before authentication, task details shows sign-in guidance and retries the first instruction after authentication. Terminal UI and Terminal do not provide this retry flow; complete the CLI sign-in inside the terminal, then resume or recreate the task.
For Muse Code, open Settings → Agents → Muse Code → Authentication. Choose Muse Code login and Sign in to Muse Code to run muse login in a terminal, or choose Meta API key and save your key. API-key mode cannot start tasks until a key is saved. After authentication, reload models and choose Native UI or terminal UI. See Agents and models for defaults and permission limits.
4. Sign in to AGI Lab
On the Sign in with AGI Lab screen, sign in with your AGI Lab account. If you don't have one, the same steps create a free account. Sign in as an AGI Lab member for Smart routing, Autorun, or remote access from another device. If AGI Cockpit can't reach AGI Lab, select Continue locally to use local features until you quit the app.
5. Continue recent work or skip
The Continue where you left off step lists up to 200 Claude Code and Codex sessions updated in the last 30 days, grouped by workspace. Select individual sessions or an entire workspace, then choose Import selected. Imported tasks resume in Terminal UI. You can also create a project for a listed workspace before importing, or choose Skip for now.
Importing reads the original session files locally without changing or deleting them, and it does not start an agent.
6. Start talking with your Assistant Crew
If you have no Crew yet, finishing the last step makes Cockpit create one Assistant Crew and open its conversation. The first exchange with the Assistant, how to decide its role, and what happens when no Assistant is created or it cannot be created are explained in Create your first Crew.
Including stopped Crews, you can create one Crew for free, and the Assistant is that one. Creating more requires an AGI Lab membership. To start from a task instead, go to Your first task.
The Assistant’s home needs Git. If Git is unavailable, this step explains what is missing and keeps Error details available. On macOS, Install developer tools requests Apple’s tools, including Git; you complete the macOS confirmation and installation yourself. If the problem is another missing Git installation, Open Git installation instructions opens the official macOS guide. On Windows, Open the Git installation page opens the official Windows page. On Linux, the instructions open the official Linux guide. Cockpit does not download an installer or run winget or sudo. You do not need a GitHub account or GitHub CLI.
After installation, select Check and continue to refresh detection and continue creating the same Assistant. Sending the macOS installation request does not mean installation is finished. If you cancel, installation is unfinished, or the request fails, stay here and check again or choose Not now. There is no automatic polling. Other errors, such as a folder permission or disk problem, retain their own details and do not ask you to reinstall Git.
Open Cockpit at login
On an installed macOS or Linux copy, enable Settings → Setup → Open at login to start Cockpit when you sign in to this computer. It is off by default. Crews that were running start again when Cockpit starts; tasks held by the memory guard still require manual resumption.
On macOS, move Cockpit to Applications first. On Linux, keep the AppImage outside temporary folders or install the deb package. Windows does not support this setting yet. You can also disable it in the operating system's login or startup applications settings; Cockpit reads that state.
Use cockpit settings get app.launchAtLogin, cockpit settings set app.launchAtLogin true, or cockpit settings reset app.launchAtLogin from the CLI. See the settings reference for installation checks and Linux autostart storage.
If setup does not complete
| Message or state | What to check |
|---|---|
| The agent you want is missing | Select Manage agents to install its CLI or verify its launch command in Settings |
| Verifying agents appears | Cockpit is showing saved choices while rechecking them; wait for verification to finish |
| Could not verify agents appears | Review the saved choices and verify the CLI launch command under Agents in Settings |
| Native UI requires sign-in | Complete the guidance in task details and wait for the same instruction to retry |
| Terminal UI or Terminal requires sign-in | Complete that CLI's sign-in flow in the terminal, then resume or recreate the task |
After initial setup, use Agents and models, Accounts and Auto, and System prompts to tune the runtime environment.
Limited Linux setup without a desktop
Version 5.2.2 includes a limited Linux setup page, not normal headless task or Crew operation. Run the installed AppImage or its extracted AppRun with --headless --setup, or use cockpit setup headless --app /absolute/path/to/AGI-Cockpit.AppImage when the CLI is installed. Run as a non-root user with Electron sandboxing enabled. Use the same profile only when no other Cockpit process is using it.
Open the printed loopback URL yourself within 30 minutes. From another computer, use a trusted SSH tunnel to that port. The URL grants setup access; do not share or log its fragment. Read and agree to the bundled terms in the page, create the machine encryption key, and complete the displayed device-code authorization yourself. There is no CLI flag to accept the terms or bypass authorization. Ctrl+C or Close setup ends this setup process. Saving setup does not start tasks or Crews; normal headless startup remains unavailable. See the setup reference and Security and data.
If an older limited setup cannot issue a device code, update to 5.2.4 and retry. If device authorization fails, the limited setup page shows the HTTP status and a recognized backend error code when available, or unknown for an unrecognized response. Use these diagnostics when reporting the failure; the diagnostic entry in auth-session.jsonl excludes raw response bodies, device codes, and tokens.