---
title: "Connect a computer"
description: "Connect your Mac or a server so agents can run tickets in a folder you choose, then manage its status, folders, load, waiting queue, background work, fallback, and scheduled tasks."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.aiagent.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect a computer

A connected computer runs agent work in a folder that you register on it. It uses the AI coding tools already installed there, so your Codex and Claude logins stay on the computer. You add and manage computers on the **Computers** page.

> **Alpha**
>
> **Computers** is marked **Alpha**. It can change while it is in this stage.

## Where to find it

Click **Computers** in the sidebar rail to open the **Computers** page. It lists one line for each computer, and holds **Add a computer** and **Scheduled computer tasks**. If **Computers** is not in the rail, open the **More** menu and pin it.

**Settings → Computers** holds only account-level items. Open the account menu at the bottom of the rail, click **Settings**, then click **Computers** in the **My account** group. The tab has the download panel for the AI Agent app in a web browser, a **Your computers** section with a **Manage computers** button that opens the **Computers** page, and the **If a computer is unavailable** setting.

## Connect your Mac

The AI Agent app is available for Apple Silicon Macs. Download it from the [download page](https://aiagent.app/download), install it, and sign in.

Use version 0.2.1 or later. Version 0.2.0 cannot connect a computer. In an older version, **Settings → Computers** shows **Update available** with a **Download update** button.

1. In the AI Agent app, click **Computers** in the sidebar rail.
2. Click **Add a computer**. Before you connect a computer, the page shows **No computers connected** and a second **Add a computer** button.
3. In the **Connect this computer** dialog, click **Connect this computer**.
4. If macOS asks for folder access, choose **Allow** so that Companion, a small background service, can use the folder you selected.

The dialog scans for AI coding tools and then reads **Found on this computer**. Each tool shows **Ready** or the reason it is not available, and the dialog shows the registered folder. Click **Done** to finish. Click **Add another folder** to register one more folder.

If the dialog reads **No AI coding tools found**, install Codex or Claude Code and open the AI Agent app again. If it reads **Companion needs more time**, check for a macOS folder access prompt. The dialog updates when Companion is ready.

macOS shows the name of the company that signs the AI Agent app when Companion starts in the background. The dialog states this before you connect.

In a web browser, **Add a computer** opens a **Connect a computer** dialog with three options:

- **Use this computer** links to **Download the app**.
- **Connect from the terminal** is for a server, a dev box, or any computer with a terminal. The dialog shows four numbered steps: **Pick a method**, **Run the command**, **Approve**, and **Connected**. Install the AI Agent app and run the command shown. The terminal prints "To connect this computer, open" followed by a link, then a code. The link opens this dialog on the **Computers** page. Open the link and enter the code. Check the computer details that appear, then click **Approve**. Approve only a computer you control. If someone sent you the code, do not approve it. On a computer that is already connected, the command prints no code: it updates Companion and keeps the connection. If you removed the computer from AI Agent and want to connect it again, add `--repair` at the end of the command.
- **Use a cloud computer** is disabled and reads **Coming soon**.

To confirm the result, find the computer on the **Computers** page. Its status dot is green and its line reads **Online**.

## Read a computer line

Each connected computer has one line on the **Computers** page. It shows:

- **Status dot and name.** The dot is green when the computer is online. **Default** marks the default computer. A small label reads **Computer** or **Server**. When the computer also runs work for other workspaces, the line shows the name of each of those workspaces as a small badge.
- **AI tool logos.** Each detected tool, such as Codex or Claude Code, has a logo. A green logo means the tool is healthy. An orange logo means it is signed out or not ready.
- **Work and load.** An online computer reads **Idle** or, for example, **2 running · 1 waiting**, followed by its CPU use, such as `12% CPU`. A paused server reads **Paused**. A computer that is not online shows its status instead, such as **Recently lost**, **Offline**, **Long offline**, or **Waiting for connection**. These are the same words as the status badge on the computer page.

A second line appears only when you need to act:

- **Continue setup** appears when the computer did not finish connecting.
- **Reconnect** appears when the computer is offline. The line also repeats the **If a computer is unavailable** choice you made.
- When an AI tool needs action, the line names it, for example **Claude Code is signed out.** or **Codex needs attention.**
- For a server with a signed-out tool, click **Copy sign-in command** and run the command on that server. For Codex the command is `codex login --device-auth`. For Claude Code it is `claude auth login`.

Click a line to open it. It shows the CPU and memory use over the last hour, the disk, the GPU, any running or waiting runs, and an **Open computer page** link. GPU use is reported for Linux machines with an NVIDIA GPU. A machine without one reads **No GPU**.

### Line menu

Click the three-dot button on a line to open its menu.

| Item                                 | What it does                                                                                                           |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| **Reconnect**                        | Reconnects a computer that is already paired, with no new code.                                                        |
| **Make default**                     | Makes this computer the default.                                                                                       |
| **Pause server** / **Resume server** | Appears for a server only. While it is paused, agents skip that server.                                                |
| **Revoke…**                          | Asks you to confirm. The app stops receiving work, and the computer needs a new pairing before it can run tasks again. |

When a run does not name a computer, AI Agent picks one in this order:

1. A computer connected to the ticket's workspace comes before a computer from another workspace.
2. The default computer, when it is online.
3. For **Auto-start next ticket**, the idle computer that starts the ticket.
4. The computer that ran this ticket last, when it is online.
5. An online computer with a ready coding tool and at least one folder.
6. Any online computer.
7. The default computer, when no computer is online. The **If a computer is unavailable** setting then decides what happens.
8. The computer that was paired first.

The ticket's **Agent execution** section names the computer that the next run uses.

## Open a computer

Click **Open computer page** in an open line. The page header reads **← Computers** and the computer's name with a switcher. Click the name to search for another computer and jump to it. The page has five tabs:

- **Overview** shows **Running now** and **Waiting across workspaces** as ticket rows. Under **This computer** it shows CPU and memory over time, the disk, the GPU, and tool versions. A **Background work** card sets which workspaces the computer runs work for and whether it starts tickets by itself (see [Run background work](#run-background-work)). A **Load** chart shows **1 hour**, **24 hours**, or **7 days**, with runs drawn as bands over the load.
- **AI tools** lists each tool with its state (**Healthy**, **Signed out**, **Needs attention**, or **Not installed**), version, and local model. When a tool is not ready, it gives the reason. For Codex it shows the sign-in hint.
- **Folders** lists the registered folders and the **Network access in runs** setting.
- **Runs** lists the runs on this computer. **Stop** on a running run asks you to confirm, because work the agent has not saved can be lost.
- **Diagnostics** shows the machine facts: operating system, architecture, vCPU count, and memory, and the **Companion version**.

The status badge reads **Waiting for connection**, **Online**, **Recently lost**, **Offline**, **Long offline**, or **Revoked**. Hover the badge for detail. **Online** means AI Agent saw the computer in the last 45 seconds. **Recently lost** means contact stopped less than 5 minutes ago. **Offline** means no contact for 5 minutes or more. **Long offline** means no contact for 6 days or more.

### Network access in runs

**Network access in runs** is on the **Folders** tab. It shows **On** or **Off** for a computer that reports it. When it is on, runs on that computer can use the internet, and a run can send files from its folder. The switch appears only for the Mac you are using in the AI Agent app. For another computer, change it on that computer.

### Waiting and failed runs

A run that waits for a computer shows its place in line, for example **3rd in line**, and the runs ahead of it. The run detail on the **Runs** tab and in the ticket's run history shows this. Only the owner of the computer sees the line.

### Reorder the waiting queue

The **Waiting across workspaces** list on the **Overview** tab sets the order in which waiting runs start. The computer owner can change it when two or more runs wait. Runs that already run cannot move.

1. Open the computer's **Overview** tab.
2. In **Waiting across workspaces**, find the run to move.
3. Drag the grip handle beside the run to a new place. The handle's label reads **Reorder** followed by the ticket title. To move a run with the keyboard, focus the handle, press Space, use the arrow keys, then press Space again to drop it. Escape cancels the move.

The new order saves when you drop the run, and each run shows its new place in line. The list shows the first runs that wait and a **+ N more** line for the rest. Runs from other workspaces that the computer serves move like any other run.

A connected assistant can read and change this queue too. See [Connect Claude or ChatGPT](/guides/connect-claude-or-chatgpt).

## Run background work

**Background work** is a card on the **Overview** tab. It appears for a computer you own, and not for a revoked computer. It lets one computer keep a steady stream of work running.

- **Also runs work for** lists the other workspaces of the same organization, each with a check box. Tick a workspace to let this computer run that workspace's tickets as well as its own. A computer can serve only workspaces of its own organization. If the organization has no other workspace, the card says so.
- **Auto-start next ticket** is a switch. When it is on and the computer is idle, AI Agent starts the top **Up next** ticket for you. An **Up next** ticket has the status **To do** and an agent as its worker, and belongs to a workspace the computer serves. Tickets with a higher priority come first, then the order on the Board. AI Agent skips a ticket that arrived by email, a ticket that needs you to choose a folder, and a ticket that would run in the cloud or on another computer. A paused server does not auto-start. AI Agent starts each ticket at most once a day by itself, so a ticket that keeps failing cannot use the whole **Daily cap**.
- **Daily cap** is the most runs that auto-start may begin in one day. Enter a whole number from 1 to 100. The default is 10. The day follows the workspace time zone of the workspace the computer was connected in.

Auto-started runs spend workspace credits like any other run.

When you remove a workspace from **Also runs work for**, AI Agent cancels that workspace's runs that still wait on this computer.

To confirm the setting, open the **Overview** tab again. The check boxes, the switch, and the cap show what you saved, and the computer's line on the **Computers** page lists each extra workspace.

A failed run names one cause and one fix. For example, when a CLI sign-in expired, the run shows the sign-in command with a **Copy command** button. Run the command on the computer, then run the ticket again.

## Choose what happens when a computer is offline

The **If a computer is unavailable** setting is in **Settings → Computers**. It applies to your account across your devices. It has three choices:

- **Use cloud automatically** runs the task in the cloud instead. Cloud fallback uses the agent cloud model and AI Agent credits.
- **Ask before using cloud** asks you before it runs the task in the cloud.
- **Wait for the computer** keeps the task until the computer reconnects.

An offline computer's line on the **Computers** page repeats the choice you made.

If you revoke the computer an agent is set to use, the start dialog says the computer was removed and offers only **Use the agent cloud model**. Choose a new computer in the agent's settings to run on a computer again.

## Schedule tasks on a computer

The **Scheduled computer tasks** section is on the **Computers** page, below the computer lines. It creates a new board ticket on a saved computer and folder at the times you choose. A later change of the default computer does not change the target of a schedule.

**New schedule** is off until a connected computer has an available tool and a folder. Click it and fill in the dialog:

- **Ticket title**, and optional **Ticket instructions** for each new ticket.
- **Computer**, **Folder**, and **Runtime**.
- **Cadence**. Runs happen no more often than every five minutes. A custom cadence takes a standard five-part cron expression.
- **Time zone**, and the time or days that the cadence needs.

Click **Create schedule**. A new schedule is created paused, so click **Resume** to start it. Each schedule card also has these buttons:

- **Edit** changes the schedule.
- **Run now** requests one run on the computer. It is off while a local run is current.
- **Pause** stops future slots. It does not stop a local run that is already working.
- **Cancel run** appears while a run is current, and asks you to confirm.
- **Delete** stops future slots. AI Agent cancels queued work and asks the computer to cancel an active local run.

## Related pages

- [Manage tickets](/guides/manage-tickets)
- [Profile, preferences, and notifications](/account/profile-preferences-and-notifications)

Source: https://docs.aiagent.app/account/connect-a-computer/index.mdx
