Skip to content

Set up Dragon Rider on this Mac

Your agents run on a host, and every window and phone reaches them through a control plane you own (see The control plane). On a Mac, one app, Dragon Rider, has all three: the window, this Mac's host (agentsd) and a control plane. The first time you open it, it sets them up by itself, while it asks for your idea for an app.

The way in is agentloops.dev, in a browser: sign up there first, and your account's control plane is in the cloud. This Mac then joins it as a machine for its local folders (see Join a hosted account, below). The control plane on this Mac is an option for a person who wants nothing remote.

Before you start

  • A Mac on which you can install apps in your home folder.
  • A Dragon Rider disk image (.dmg) or ZIP archive (.zip) that you already have. The public installer is pending. If you do not have an installer, start in a browser.

Steps

Install Dragon Rider

  1. Double-click the disk image to open it or the ZIP archive to extract the app.
  2. Drag Dragon Rider into ~/Applications, the Applications folder in your home folder. You can always write to it. /Applications asks for an admin's password.

In ~/Applications, Dragon Rider updates itself to the release your control plane runs, with no admin password (#2178). It restarts only when no agent is in a turn. Settings ▸ Machines ▸ This Mac ▸ Updates shows the update, and Update Dragon Rider automatically turns it off.

Open it

  1. Open Dragon Rider.

The window shows Let's build your idea. with one box, and sets Dragon Rider up behind it. In these steps, Dragon Rider:

  • makes the control plane's key;
  • registers two login items with macOS, the control plane and this Mac's host, and starts them;
  • joins this Mac's host to the control plane;
  • pairs the window with the control plane;
  • links the dragon command to ~/.local/bin/dragon, with no administrator password. It does not edit your shell's files. When the link fails, set-up continues, and you can install it later in Settings ▸ Machines ▸ This Mac ▸ Command line (see Start or continue a session from a terminal).

You copy and paste no code, and you can type at once. A line shows under the box only when a step is slow or fails. 2. Type an idea for an app and press Submit. The plan page shows the tasks to your first deploy, and an agent does them with you; see Build your first app. Open Dragon Rider, at the top right of the plan page, shows the session list.

If macOS asks you to allow Dragon Rider in Login Items, the window says so and shows Open Login Items. Click it, turn on Dragon Rider under Allow in the Background, and come back. Dragon Rider sees the change and continues by itself.

If a step fails, the window shows one line that says what went wrong, with Try Again and Show Details. See Fix Dragon Rider when it won't start.

Join a hosted account

If you signed up at agentloops.dev, open Settings ▸ Control plane and click Connect to Another…. Choose Sign In to agentloops.dev, and sign in with the same Apple, Google or GitHub account. This Mac then joins your account as a machine for its local folders, and the window shows the folders of all your machines. See Connect a window or phone.

The menu bar item

Dragon Rider also has an item in the menu bar. It shows how many agents work and how many need you, also when no window is open. It has Open Dragon Rider, Pair a Phone or iPad…, Open in Browser, Settings… and Quit Dragon Rider.

What to know

  • Quit Dragon Rider closes the window and the menu bar item. It does not stop the control plane or your agents. At login, macOS starts them and the menu bar item, but not the window.
  • The control plane keeps what it remembers (paired windows and devices, and your machines) in a folder on this Mac. To keep it in the cloud, run the control plane there. See Run the control plane in the cloud.
  • While this Mac sleeps, or is off your network, no window or device can reach any of your agents, including agents on servers. They keep working, and you see them again when the Mac is back. To prevent that, run the control plane elsewhere. See Run the control plane as several copies.
  • If this Mac's host cannot join the control plane (for example, because the control plane does not listen yet or the network is down), Settings ▸ Machines ▸ This Mac says Couldn't join the control plane: and why, then Trying again…. The host keeps its machine code and tries again by itself, immediately when the Mac wakes or the network changes. Click Try Again to try now. Settings ▸ Control plane shows the same line under This Mac as a machine.
  • If you already run a control plane elsewhere, or want Hosted at agentloops.dev, open Settings ▸ Control plane and click Connect to Another…. See Connect a window or phone.
  • A control plane on this Mac has no address on the internet. Your iPhone and iPad reach it only on this Mac's network. To reach your agents away from home, and to get notifications on your devices, run the control plane in the cloud. See Run the control plane in the cloud and Phone and iPad.
  • To remove Dragon Rider, open Settings ▸ Machines ▸ This Mac and click Remove Dragon Rider from This Mac… first. It stops both login items and removes them. Then quit Dragon Rider and move it to the Trash. If you only move it to the Trash, the login items stay, and macOS keeps them in Login Items.