three boxes, one hop.
With remote access you can use your phone or a browser to work with the agents on your computer. This page explains how it works and why it is safe.
Your computer
Edit
- Runs your agents
- Keeps every chat
- Checks every command
signatureverified
rustedit.dev
Relay
What the relay reads
- kind
- event
- to
- browser:b_K4tz
- seq
- 4812
- kind
- command
- to
- desktop
- from
- browser:b_K4tz
Your phone
Browser or app
- Shows what the computer sends
- Signs what you send
§ 01 · The shape
your computer is the source of truth.
Your agents, files and chats stay on your computer. Your phone shows what is happening and sends your answers. The relay in the middle only passes messages between them.
Your computer
Edit
No open port on the computer
rustedit.dev
Relay
Your phone
Browser or app
-
The computer
Runs the agents and keeps all your chats. It sends updates to your phone and decides what is allowed to run.
-
The relay
Passes messages between your computer and your phone. It only knows who is online right now. It doesn't save your chats.
-
The phone
Any browser, or the Rustedit app on iPhone. It shows your chats and signs everything you send with its own key.
§ 02 · Calling out
your computer calls out.
Your computer opens the connection to the relay, so nothing outside has to connect to your computer. To prove it is really your computer, it signs a random code that the relay sends. The code is new every time, so it can't be copied and used again.
- 01
GET /api/remote/machineComputer: Edit opens a secure connection to the relay (a WebSocket over TLS).
- 02
{"nonce": "…"}Relay: The relay sends a random code (a nonce) that is only good for this connection.
- 03
{"machine", "key", "sig"}Computer: Your computer signs the code with its own key. That key stays in the computer's system keychain.
- 04
{"ready": true}Relay: The relay checks the signature with the key it saved when you set up the computer. Your computer is now online.
- 05
pingComputer: Your computer sends a ping every 25 seconds. If it hears nothing for a minute, it reconnects.
If the connection drops, your computer waits this long before trying again
- 1 s
- 2 s
- 4 s
- 8 s
- 16 s
- 32 s
- 60 s
- 60 s
Each wait is twice as long as the one before, up to one minute, plus a small random delay. This stops many computers from reconnecting at the same moment.
§ 03 · A message's trip
the relay reads the label.
Each message has two parts: an address and the content. The relay reads the address to deliver it. It doesn't read, save or log the content, which is your chat.
{
"v": 1,
"machine": "m_7Hq2",
"to": "browser:b_K4tz",
"seq": 4812,
"kind": "event",
"body": {
"type": "message",
"uid": "u9",
"index": 14,
"message": { the reply so far }
}
}
What the relay reads
Which computer, which phone, the order and the type of message. That is all it needs to deliver it.
Private, passed on as it is
Your chat. The relay passes it on without reading, saving or logging it. In this example it is one updated message.
-
Only what changed
When one message changes, your computer sends only that message, not the whole chat.
-
Words in small batches
While an agent writes, its words are sent together every 150 milliseconds, so the reply appears smoothly.
-
The whole chat at once
When you open a chat, the whole chat arrives in one message. One message can be up to 4 MB.
-
Only to your phone
Each message goes only to the phone or browser it is meant for. Anything else is dropped.
§ 04 · Pairing
a code, a key, a yes.
You pair each phone with your computer once. You need a code from your computer, the same account on both, and you approve the phone on your computer.
01 · On the computer
KDRM-TXPB
It works once and expires in 9:58.
Copy CodeCopy LinkOpen Here
02 · On the phone
KDRMTXPB
Your key
7F3A-91C2
03 · On the computer again
Allow Safari on iOS, signed in as you@example.com, to control this computer? It will see your chats and the files in your open folders, and can run agents, commit and push here.
Check that the page shows the key 7F3A-91C2. same key
DenyAllow Viewing OnlyAllow
-
A code that works once
Your computer shows an eight letter code. It works one time, for ten minutes, and only for your account. There are about 25.6 billion possible codes, so guessing doesn't work.
-
Five wrong tries
After five wrong codes, you have to wait ten minutes before you can try again.
-
Check the key
Your phone creates its own key. Your computer and your phone both show a short version of it, so you can check that it is the right phone.
-
You choose what it can do
Allow lets the phone chat, approve and commit. Allow Viewing Only lets it only read. Deny rejects it.
§ 05 · Signed commands
nothing runs unsigned.
Everything you send from your phone is signed with the phone's key. Your computer checks the signature before it does anything. Even if someone broke into our server, they could not make your computer run anything.
Allow once, from your phone
answer_permission · once- signature: passed
- under 5 min: passed
- allowed: passed
Runs
All checks pass. It runs and your phone gets the answer.
The same command, changed on the way
answer_permission · once- signature: failed
- under 5 min: not reached
- allowed: not reached
Dropped
The signature doesn't match, so your computer ignores it.
The same command, sent twice
the same id, sent twice- signature: passed
- under 5 min: not reached
- allowed: not reached
Answered again
Your computer already did this, so it sends the same answer again. It doesn't run twice.
Sent too long ago
send · six minutes old- signature: passed
- under 5 min: failed
- allowed: not reached
Refused
Commands older than five minutes are refused.
A commit from a view only phone
commit · from a viewer- signature: passed
- under 5 min: passed
- allowed: failed
Refused
This phone can only view, so it can't commit.
-
Keys stay on the device
A browser keeps its key inside the browser, and it can't be copied out. The Rustedit app keeps its key in the iPhone Keychain. Only the public part is shared.
-
Some settings only on the computer
From a phone you can't choose Always, change the sandbox, MCP servers or computer use, or turn on remote access. You do those on the computer.
-
Agents can't turn it on
On a Mac, the remote access setting and the list of phones are stored in the Keychain, where only the Edit you download can read them. So an agent running on your Mac can't turn remote access on.
-
Remove a phone any time
Remove a phone at rustedit.dev/remote and it is disconnected right away. Turn Off and Forget Devices on the computer removes all of them.
§ 06 · The relay
a relay, not a store.
This is everything the relay can see and keep, and what it never sees.
Reads
- The envelope: version, computer, recipient, sender, order and kind
- Which of your computers and phones are connected right now
- For an iPhone that is away, two counts, a start time and one word, for its Live Activity
- The sealed text of a notification, which it can't open
Keeps
- Your computers, phones and browsers, with their names and public keys
- Which phone or browser may reach which computer
- Your iPhone's push tokens
Never reads
Your promptsThe agents' repliesCode, files and file namesDiffs and commit messagesWhat a notification says
Both connections are encrypted with TLS. Chats are not end to end encrypted yet. They pass through the relay's memory without being read. End to end encryption is planned, and the relay won't need to change for it.
§ 07 · Notifications
sealed for one phone.
When an agent needs you and the Rustedit app is closed, your computer encrypts the notification so only your iPhone can read it. Our server and Apple can't read it.
Computer
readable
Needs you · Wants to use Bash: cargo testRelay
sealed
hQ3xZ0vK9LmT2pWfN7cYbR4dE8sJApple
sealed
hQ3xZ0vK9LmT2pWfN7cYbR4dE8sJiPhone
readable
Needs you · Wants to use Bash: cargo test
X25519 with a key made for this push · HKDF-SHA256 · ChaCha20-Poly1305
Live Activity
2 working · 1 needs you · Editing
The Live Activity is not encrypted, because Apple shows it on the Lock Screen directly. That is why it only shows counts, a start time and one word from a fixed list.
-
A new key each time
Each notification is encrypted with a new key, made only for that notification and your iPhone.
-
Only your iPhone can read it
The key to read it stays on your iPhone. Our server and Apple only pass on the encrypted text.
-
No private details in the open
Chat titles, what an agent is doing and file names are always encrypted.
§ 08 · Light by design
small on purpose.
It is fast because it is simple: updates are sent as they happen, nothing is saved on the way, and there is only one stop between your computer and your phone.
Straight from the code
- 427
- lines of Rust in Edit's own WebSocket client, not counting tests. No WebSocket library was added, and nothing new is downloaded. remote_socket.rs
- 1
- hop between the computer and the phone. The relay holds both connections in memory and writes straight from one to the other. RemoteRelay.cs
- 150 ms
- for an agent's words to gather before they are sent. remote.rs
- 25 s
- between the computer's pings. After a minute of silence it reconnects. remote_link.rs
- 4 MB
- for the largest single message in either direction. A whole chat fits. remote_socket.rs
- 40
- commands a browser may send in 10 seconds. Any more are dropped. RemoteRelay.cs
- 30 s
- for a connection ticket to stay valid. It works once and never appears in a URL. RemoteTickets.cs
- 256
- answers the computer remembers, so a repeated command gets its answer again instead of running twice. remote.rs
-
Sent when it happens
Once connected, your computer sends a change as soon as it happens, only to the phones that have that chat open. Nothing keeps checking for updates.
-
Nothing saved on the way
Messages pass through the relay's memory only. Nothing is written to disk, a database or a log.
-
Runs in the background
The connection runs on its own background thread, separate from the editor window.
§ 09 · Questions
fair questions.
The short answers.
01Is remote access end to end encrypted?
Not yet. Both connections are encrypted with TLS, and the relay doesn't read, save or log your chats. Everything you send is signed and checked by your computer, and notifications are encrypted for your iPhone. End to end encryption is planned.
02Do I need to open a port or change my router?
No. Your computer connects out to rustedit.dev. Nothing from outside connects to your computer.
03What happens when the computer loses the network?
Your phone shows the computer as offline. Edit reconnects on its own, and your phone catches up when it is back.
04Why a relay, and not a direct connection?
A direct connection would mean opening your computer or router to the internet. With the relay, your computer only connects out, and the relay can't make your computer run anything.
Get Edit
Try it with your own agents.
Download Edit, turn on remote access, and pair the phone in your pocket.