Skip to main content

Open a file or folder on another machine as if it were local.

Same syntax as scp: sopen host:path. It uses your own ssh and ~/.ssh/config; the remote needs nothing but sshd.

Install

  • Rolling preview

    brew install 2lab-ai/tap/sopen-preview

macOS (arm64, x86_64) and Linux (x86_64, aarch64); the formula pulls in ffmpeg. Then sopen myserver:~/project, where myserver is any host your ssh reaches.

Streaming

A remote file is never copied first just to be looked at. Every viewer — video and audio, the hex editor, the text viewer, images — reads what is on screen and a little around it, then the rest as you move, like a video stream.

Recorded on the real sopen with a second Linux container as the server, over a link held to 100 Mbit/s: scp on the left and sopen on the right, started on the same file, each clock counting from its own Enter. Captions in English and Korean; the narration is a synthetic voice.

Measured

A 24 GB video
scp34 min before the first frame
sopenplaying 0.5 s after Enter, 2.3 MB read; at minute 50 one second after the click
A 24 GB disk image, in the hex editor
scp36 min
sopenthe first screen after 64 KiB; 20 GB in, 192 KiB read in all
A 182 MB log with a 150 MB line
scp15 s
sopenthe first screen after 64 KiB; line 400,001 after 32 MB
A 10240×5760 JPEG of 18.8 MB
scp1.6 s
sopenthe whole picture 0.8 s after Enter, sharpening as the rest arrives

scp: each file's size at the 11.4 MB/s it showed on that link. sopen: its own stream counters.

README: Streaming: any file, however big, opens at once

Tutorial

Plays from this site. The captions are in the player's menu.

Apart from its streaming chapter, the tutorial and the demos were recorded on the real sopen in a Linux container, with demo data under /srv, so the files in them are local; with host:path the same windows read the file over ssh, a piece at a time. Captions in English and Korean; the narration is a synthetic voice.

Chapters

What it opens

  1. 01 · Folders

    Two panels, with git

    • Two panels on the folder, as in Total Commander. Rest the bar on a file and the other side previews it; Enter opens it in the viewer for its kind.
    • Inside a git work tree the other side is the git panel: the graph, a commit's details and diffs, and every Git Graph action, each shown first with its exact git command lines. It runs the host's own git.
    • F5 / F6 copy and move, to a host:/path too, and F7 makes a folder, never over anything; F8 deletes, asking first.
    • Text is read a chunk at a time: a single 150 MB line of a log opens wrapped, from wherever you are in it.
  2. 02 · Images, video, audio

    Edit, then save back

    • An image: drag a rectangle, then crop or pixelize it, or cut, copy and paste a picture or text into it.
    • Video and audio: select a stretch on the timeline and cut, copy or paste it; M turns a mono sound into stereo.
    • Save keeps the original first and writes over the remote file; Save copy and Export write a new file next to it, Save As one on this machine.
    • A remote video or sound plays without being downloaded.
  3. 03 · Anything else

    Hex, terminal, command line

    • Any other file opens a small dialog first, nothing downloaded yet: Enter opens the hex editor, reading only the rows on screen — a 24 GB disk image too — or Save to… puts it at a path.
    • --tui runs the file browser in the terminal; F12 moves it into a window and back.
    • --target <host> shows it on another machine's screen: that machine runs its own sopen, and the file's remote still needs only sshd.
    • sopen cut makes an exact clip next to the original; sopen stems splits voice from music on this machine's CPU.

Feature demos

Notes

  • The remote needs only sshd with its SFTP subsystem: sopen installs and runs nothing there. Text opens in VS Code Remote - SSH or Zed, which install their own remote server.
  • Every write re-checks the remote file first and writes nothing if it changed. The check is best-effort: sopen cannot lock the remote file.
  • Delete asks first. A remote entry is deleted permanently: SFTP has no Trash.
  • sopen is under construction; its Homebrew formula is a rolling preview.
  • sopen is open source under the MIT license; the font and the libraries named in its credits keep their own.