Skip to content
edit

three boxes, one hop.

Your computer

Edit

  • Runs your agents
  • Keeps every chat
  • Checks every command

signatureverified

events signed commands

rustedit.dev

Relay

What the relay reads

kind
event
to
browser:b_K4tz
seq
4812
chatprivate, never read
events signed commands

Your phone

Browser or app

  • Shows what the computer sends
  • Signs what you send
Your computer sends updates to your phone, your phone sends signed commands back, and the relay in the middle only reads the address. The ids are made up.

§ 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

calls out

rustedit.dev

Relay

calls out

Your phone

Browser or app

Fig. 01 · Your computer and your phone both connect to rustedit.dev. Nothing connects to your computer from outside, so you don't need to open a port or change your router.
  1. The computer

    Runs the agents and keeps all your chats. It sends updates to your phone and decides what is allowed to run.

  2. The relay

    Passes messages between your computer and your phone. It only knows who is online right now. It doesn't save your chats.

  3. 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.

  1. 01
    GET /api/remote/machine

    Computer: Edit opens a secure connection to the relay (a WebSocket over TLS).

  2. 02
    {"nonce": "…"}

    Relay: The relay sends a random code (a nonce) that is only good for this connection.

  3. 03
    {"machine", "key", "sig"}

    Computer: Your computer signs the code with its own key. That key stays in the computer's system keychain.

  4. 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.

  5. 05
    ping

    Computer: 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. 1 s
  2. 2 s
  3. 4 s
  4. 8 s
  5. 16 s
  6. 32 s
  7. 60 s
  8. 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.

Fig. 02 · The computer's handshake with the relay, step by step, and how it reconnects when the line drops.

§ 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.

Fig. 03 · One envelope sent by the computer, with the fields the relay reads lit up. The ids are made up; the field names are the real ones.
  1. Only what changed

    When one message changes, your computer sends only that message, not the whole chat.

  2. Words in small batches

    While an agent writes, its words are sent together every 150 milliseconds, so the reply appears smoothly.

  3. 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.

  4. 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.

  1. 01 · On the computer

    Allow Remote Access

    KDRM-TXPB

    It works once and expires in 9:58.

    Copy CodeCopy LinkOpen Here

  2. 02 · On the phone

    rustedit.dev/remote/pair

    Your key

    7F3A-91C2

  3. 03 · On the computer again

    Allow Remote Access

    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

Fig. 04 · The code from Edit is typed on the phone, then the computer asks for your OK. Both screens show the same fingerprint of the phone's key. The code, key and account are made up; the wording is Edit's own.
  1. 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.

  2. Five wrong tries

    After five wrong codes, you have to wait ten minutes before you can try again.

  3. 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.

  4. 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Fig. 05 · Five commands arrive at the computer, and what it does with each one.
  1. 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.

  2. 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.

  3. 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.

  4. 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 prompts
  • The agents' replies
  • Code, files and file names
  • Diffs and commit messages
  • What 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.

Fig. 06 · What the relay sees and keeps.

§ 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.

  1. Computer

    readable

    Needs you · Wants to use Bash: cargo test
  2. Relay

    sealed

    hQ3xZ0vK9LmT2pWfN7cYbR4dE8sJ
  3. Apple

    sealed

    hQ3xZ0vK9LmT2pWfN7cYbR4dE8sJ
  4. iPhone

    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.

Fig. 07 · One notification on its way from the computer to the iPhone, and what can be read at each step. The text is made up.
  1. A new key each time

    Each notification is encrypted with a new key, made only for that notification and your iPhone.

  2. 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.

  3. 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

Usual numbers

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
Fig. 08 · The numbers that shape it, and the file each one is set in.
  1. 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.

  2. Nothing saved on the way

    Messages pass through the relay's memory only. Nothing is written to disk, a database or a log.

  3. 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.

Edit © 2026 Pavel Sich