Skip to content

Stop 5 of 5

Shipped

Botscape Companion

Your Mac does the work

The Companion lets an agent run jobs on your own Mac. The Mac calls out to ask for work. Nothing can call in.

Your Mac checks that the pairing file came from Botscape, and you confirm a short code. Pairing allows nothing by itself. The Mac calls out and takes one job, and checks in while it works. When the connection is lost, the job is set aside and is not run again on another Mac.

A real example

The same idea, twice

An everyday case

A helper has a key to one room of your house, not the whole house. You can take that key back without changing any other lock.

At work

Governed compute on a company device with no inbound ports. Enrolling a machine and granting access to it are two separate steps, and access can be revoked for one machine alone.

Try it

Who can use your Mac?

You want an agent to run a job on your own Mac. Pick what happens.

Tap a situation to see what happens.

This is a demo. Nothing is sent or saved.

What you get

Three things, in plain words

  1. No open ports. No SSH, tunnels, or remote desktop to manage

  2. Pairing a Mac allows nothing until you grant it

  3. If the connection drops mid-job, the job is set aside, not run twice

Better inside Botscape

Agents can test in Chrome, Xcode, and Simulator on a real Mac, inside the same grants and approvals as everything else.

The honest part

Where it stops today

Shipped

Pilot. The Companion runs on macOS and is not yet a notarized production installer. Chrome, Cursor, Xcode, and Accessibility readiness depend on the Mac and are reported per device.

For your engineers

The technical version

The same package, in the words your engineers use. Open what you need.

Ships asmacOS app and supervisorLocal machine connection · Pilot

The numbers it will not move past

The Companion pairs a workspace owner’s Mac with Botscape, so a granted agent can run Chrome, Cursor, Xcode, Simulator, desktop, and shell jobs there. The Mac polls out over HTTPS. Nothing listens for a connection in.

Operations
15
Status, jobs, browser, Cursor, recipes, Xcode, Simulator, desktop, shell
Lease
45 s
Each claim and heartbeat extends a fenced lease
Inbound ports
0
Outbound HTTPS polling only. No SSH, tunnels, or VNC
Grants on pairing
0
Pairing enrolls the Mac and authorizes nothing
Pairing file
Ed25519
Signed manifest, verified on the Mac
Device key
P-256
Generated in the macOS Keychain
How Botscape Companion works, step by step
  1. 1. Pairing that proves both ends

    The owner downloads a signed pairing file from the desk. The Mac checks the signature, makes a device key in the Keychain, and shows a short code. The owner confirms that code on the desk, and a single-use exchange gives the Mac its worker token.

    • The server stores only a hash of the display code and the session token.
    • The worker token is never returned by the connections API.
    • Each exchange moves the enrollment generation forward.
  2. 2. Two locks on every Mac

    A grant offers a Mac only when both its resource selector and its device constraint name that exact Mac. There is no machine wildcard. An explicit deny removes one Mac without touching the others.

    • Each Mac has at most one controlling bot for interactive browser sessions.
    • Any other bot gets not_controller, which is reported as cannot-act.
    • Changing the controller cancels the active session and wipes sealed site credentials.
  3. 3. Leases that fence, and quarantine when unsure

    A job is leased for 45 seconds with a fence, an attempt number, and a lease version. Every heartbeat and completion must present that fence. Before each claim the server checks the connection, the device status, the grant version, the workspace write setting, and the controller.

    • A lease that expires, or authority revoked mid-run, moves the attempt to outcome_unknown.
    • A quarantined job is never re-sent to another Mac.
    • An unknown machine operation is refused with 422 and opens at most one skill-gap ticket per workspace.
What is fixed, and what adapts
Fixed

Fifteen machine operations are always in the catalog. There are no feature flags and no probe gates, and an unknown operation is refused.

Adapts

Whether Chrome is ready, Cursor is signed in, or Xcode is selected is reported per Mac at run time. Readiness never removes an operation from the catalog.

What it refuses, and how you can tell
  • Inbound connections of any kind
  • A Mac that no grant names exactly
  • A heartbeat or completion with a stale fence
  • Re-sending a job whose outcome is unknown
  1. 1.The fifteen operations are registered in the integration catalog: machine.status.read, machine.job.read and cancel, five browser operations, Cursor, recipes, Xcode tests, Simulator, desktop observe and act, and shell.
  2. 2.Chrome readiness is ready, needs_setup, unavailable, or not-reported, and each is a fact about the device.
  3. 3.A human can take over an interactive Chrome session from the desk, which pauses the bot.
Engineer’s lab: Hold a lease

You are the Mac. Claim the job, keep the lease alive, and see what happens when it slips.

Lease0.0 s of 45
state
queued
fence
0
attempt
0
version
0

Queued for a Mac

Every heartbeat and completion must present this fence.

    A teaching model of the server's claimJob, startJob, heartbeatJob, and reconcileLease, with their 45-second lease and their own messages. Let the lease run out, or skip ahead, and the job is quarantined rather than replayed.

    Used by
    • Botscape desk. The local-machine connection and its fifteen machine operations

    Claims read from botscape (machine/ and lib/integrations/local-machine) at 40ecc20.