Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rcode

Русский | 简体中文

Edit one remote file in a normal local editor and automatically upload it over SSH on save. It is designed for small Linux/MIPS devices where VS Code Remote-SSH cannot run VS Code Server.

No agent, Node.js, or SFTP server is needed on the remote host -- only sh, cat, cp, and mv.

Why rcode?

rcode is for editing a file on constrained SSH targets: routers, embedded Linux/MIPS devices, and appliances where a full remote development environment is impractical. It downloads one file to a temporary local folder, opens it in your normal editor, and atomically uploads every saved change through the same SSH connection.

rcode VS Code Remote-SSH
Edits one chosen file with your existing local editor. Opens a remote workspace inside VS Code.
Requires only SSH plus sh, cat, cp, and mv on the target. Installs and runs VS Code Server and remote extension hosts on the target.
Small, focused CLI for low-resource or unsupported architectures. Full IDE features: remote terminal, debugging, extensions, and workspace browsing.
Best when you only need to change a configuration or source file quickly. Best for regular development on a supported, sufficiently capable machine.

Install on Windows

Download rcode-windows-amd64-setup.exe from the repository's Releases page. It installs rcode and adds it to PATH; open a new terminal afterwards.

Use

rcode --password root@192.168.1.1:/opt/etc/xray/configs/02_dns.json
rcode --key C:\Users\me\.ssh\router root@router:/etc/config/network
rcode --editor notepad root@router:/etc/hosts

VS Code is the default editor. Set $env:RCODE_EDITOR to choose another default. Password authentication is prompted once at session start; the SSH connection remains open while editing.

Build from source

cd go
go build -o rcode.exe .

See go/README.md for Go-specific build and release details.

Current MVP limitations

  • One file per process.
  • Does not parse ~/.ssh/config aliases or options.
  • Encrypted private keys are not prompted for yet.
  • No remote-change conflict detection.

About

Edit one remote file locally and sync it back over SSH — built for routers and constrained Linux devices.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages