osmates remote set
Turn MCP over HTTP on this Mac, This Network, the tailnet browser or Cloud Clients on or off.
osmates remote set <part> <state> [--json]set local on listens on 127.0.0.1:7330 alone, out of reach of machines and other computers. set network on listens on port 7331 of every interface for your paired Macs alone, and announces this Mac as _osmates._tcp. Machines are shut out before any TLS.
set tailnet on serves HTTPS on port 7332 of this Mac's tailnet addresses, with a certificate Tailscale issues; the tailnet must issue HTTPS certificates. set cloud-clients on needs the tailnet browser and Funnel in the tailnet's policy. It adds a funnel from port 8443 to 127.0.0.1:7333, unless that port serves something else.
off closes the part and ends its sessions. set tailnet off also signs every browser out and turns Cloud Clients off.
Remote access: https://osmates.com/docs/remote
Examples
osmates remote set local on
osmates remote set tailnet offArguments
<part>RequiredWhat to turn on or off: local, network, tailnet or cloud-clients.
One of
local,network,tailnet,cloud-clients.<state>Requiredon or off.
One of
on,off.--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/remote/set.json
cloudstring or objectRequiredOne of
off,starting, or an object that holds one key:servingorfailed.cloud.servingobjectcloud.failedobjectcloudGrantsintegerRequiredconnectionsintegerRequireddeviceKeystringOne of
needsPermission,denied,missing,unreadable.fingerprintstringhelperRunningbooleanRequirednetworkListeningbooleanRequirednetworkProblemstringpairedMacsintegerRequiredpasskeysintegerRequiredreachedMacsintegerRequiredsettingsobjectRequiredsettings.cloudClientsbooleanRequiredsettings.localbooleanRequiredsettings.networkbooleanRequiredsettings.tailnetbooleanRequiredtailnetstring or objectRequiredOne of
off,starting, or an object that holds one key:servingorfailed.tailnet.servingobjecttailnet.failedobjecttokensintegerRequiredurlstringRequired
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |