Skip to content

appatalks/cs-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cs-proxy

Route internet traffic through a GitHub Codespace using sshuttle, with an optional reverse SSH tunnel so the Codespace can reach local or private networks.

Available as a CLI extension for gh and as a standalone desktop app.

Note

Replaces the no-longer-maintained GH CLI extension for remote resource access.


Desktop app

CS-Proxy desktop app

Cross-platform Electron app (Linux, macOS) with a one-click connect/disconnect flow. Pick or create a Codespace, press play, and the app handles everything: authentication, codespace startup, sshuttle routing, and tunnel validation.

  • Frosted glass UI with five color themes and adjustable opacity
  • Canvas-rendered dot-matrix status display
  • Tabbed settings window (Connection, Routing, Appearance, System)

Run from source

cd app && npm install && npm start

Build a standalone binary

npm run dist           # Linux AppImage + deb
npm run dist:mac       # macOS dmg

AppImage (Linux)

chmod +x CS-Proxy-*.AppImage
./CS-Proxy-*.AppImage

Self-contained, no install needed. Settings are stored in ~/.config/CS-Proxy/. The host still needs gh, sshuttle, and ssh (the app can auto-install missing tools from Settings > System).

See app/README.md for routing details, firewall authorization, and security notes.


CLI extension

Install

gh extension install appatalks/cs-proxy
chmod +x ~/.local/share/gh/extensions/cs-proxy/cs-proxy

Usage

gh cs-proxy connect <codespace-name> [flags]
Flag Description
--all Route all traffic (0.0.0.0/0)
--only-443 Route HTTPS/TLS only (0.0.0.0/0:443)
--dns Tunnel DNS queries
--domains "..." Route specific domains (space-separated)
--gateway Reverse SSH tunnel to your localhost (default local:8000, remote:9000)

Examples

Route TLS + DNS:

gh cs-proxy connect my-codespace --only-443 --dns

Route specific domains with a local gateway:

gh cs-proxy connect my-codespace --domains "github.com api.github.com" --gateway

Route all traffic:

gh cs-proxy connect my-codespace --all

Custom port mapping:

export LOCAL_PORT=3000 REMOTE_PORT=9001
gh cs-proxy connect my-codespace --gateway

Gateway mode


Appa's Thoughts: Epic.

About

GitHub Cli Extension: Proxy-Gateway & VPN for Codespaces

Topics

Resources

License

Stars

Watchers

Forks

Contributors