# Your own machines

> Connect Writ Desktop or the open-source agent so cloud jobs run on hardware you control.

Source: https://usewrit.app/docs/agents/

Connect a computer or a server you control to your Writ account, and cloud jobs can run on it: with its
browser, its network and its IP address. There are two kinds of machine: Writ Desktop, the full app,
and the open-source agent, a worker with no interface for an always-on server.

## The Agents page

In Writ Cloud, open **Agents** (under **Connect** in the sidebar). The page
shows how many machines are connected against your plan, as **{n} of {limit} machines**, and the button **Connect a machine**.

The list of **Connected machines** shows each machine’s name, its **Type** (Writ Desktop or Open-source agent), its **Capability**, its **Last activity**, and whether it is **Online** or **Offline**.

### Disconnect a machine

Open the row’s actions and click **Disconnect**, then confirm. The machine stops receiving
new work at once. To connect it again, link it again.

## Writ Desktop Recommended

Writ Desktop is the full local app: Scribe, the recorder, an encrypted vault, and workflows that keep
running offline. Linked to your account, it receives the runs you allow it to
take, and you choose workflow by workflow what Cloud may call.

-

1. **Install Writ Desktop**

Download it from [usewrit.app/desktop](https://usewrit.app/desktop).

-

2. **Link it**

In the app, open **Account**, click **Connect a cloud account**, then **Open the approval page** and approve in your browser.

-

3. **Choose what Cloud may call**

On each workflow you want to share, turn on **Callable from the cloud** in its **Call** tab.

Every detail, including calling it from your code and your assistant, is on [Link Desktop to Writ Cloud](https://usewrit.app/docs/uplink).

## The open-source agent

The agent is a small program with no interface. It connects to your account, takes the work your
account sends it (workflow runs, monitor checks and browser sessions), and runs it on that machine. It
is open source: [github.com/usewrit/writ-agent](https://github.com/usewrit/writ-agent).

-

4. **Start the connection**

On the Agents page, click **Connect a machine** and choose **Open-source agent**. Pick the system of the machine: macOS, Linux or Windows.

-

5. **Get the install command**

Click **Get the install command**. Writ creates a **Pairing code** for this command. It works once and expires after 15 minutes; **Generate a new one** if it does.

-

6. **Run it on the machine**

Copy the command from the page and run it in a terminal on that machine. It installs the agent, connects it to your account and starts it. The machine appears in the list a few seconds later.

```bash
curl -fsSL https://api.usewrit.app/agent.sh | sh -s -- WRIT-4K2P-9XQ
```

```powershell
& ([scriptblock]::Create((irm https://api.usewrit.app/agent.ps1))) WRIT-4K2P-9XQ
```

Send work to it the same way as to any of your machines: in a workflow’s **Call** tab, set
the execution target to **Local agent** or **Auto (local, else cloud)**.

> **limit:** The agent has no recorder, assistant or vault (those are Writ Desktop features), and it works only while it is connected to your account. It starts as a normal program, not as a system service, so restart it after the machine reboots.

## Machines per plan

Each plan connects a number of machines at once. Only connected machines count.

| Plan | Linked machines |
| --- | --- |
| Free | 1 |
| Starter | 1 |
| Pro | 2 |
| Growth | 5 |
| Scale | 20 |
| Enterprise | Unlimited |

At the limit, the page shows **Machine limit reached**, and a new pairing code is refused.
Disconnect a machine, or click **Upgrade plan**.

## Security

- The machine opens the connection to Writ itself. You open no inbound port.
- The install uses a single-use pairing code, so no account token is ever pasted into a terminal.
- Personas saved in Writ Cloud sign in on Writ Cloud. Their secrets are not sent to your connected machines.
- Sign-ins saved in Writ Desktop stay in that computer’s own vault and sign in from there.

Writ runs on your own accounts, with your own credentials and data, on sites you are authorized to use.

## Next

-
- [Link Desktop to Writ Cloud](https://usewrit.app/docs/uplink): Make the APIs on your computer callable from anywhere.
-
- [Writ Desktop](https://usewrit.app/docs/desktop): Install the app and what it does on your computer.
-
- [Credits and plans](https://usewrit.app/docs/billing-wallet): Linked machines and the other plan limits.
