Welcome! This guide will walk you through your first experience with Orb.
Orb enables secure, peer-to-peer file sharing through an encrypted tunnel. The workflow is simple:
- Start a Relay Server - Acts as a blind intermediary (optional, public relay available)
- Share a Directory - Creates a session and waits for connections
- Connect - Uses session credentials to access shared files
On the computer with files you want to share:
# Share the current directory
orb share .
# Or share a specific directory
orb share /path/to/folderYou'll see output like:
Session ID: abc123
Passcode: xyz789
Relay: ws://localhost:8080
Waiting for connection...
Important: Keep this terminal open and note the Session ID and Passcode!
On the computer that wants to access the files:
# Connect using the session credentials
orb connect --session abc123 --passcode xyz789If the relay is on a different server:
orb connect --session abc123 --passcode xyz789 --relay ws://relay.example.com:8080After connecting, you'll see the TUI file browser:
┌─ Remote Files ────────────────────────┐
│ documents/ │
│ photos/ │
│ README.md │
│ report.pdf │
└───────────────────────────────────────┘
Navigation:
↑/↓- Move cursorEnter- Enter directory or download fileBackspace- Go to parent directoryq- Quit
- Navigate to the file you want
- Press
Enter - The file downloads to your current directory
- You'll see a success message
[INFO] Creating session...
[INFO] Session created: abc123
[INFO] Passcode: xyz789
[INFO] Connecting to relay...
[INFO] Connected to relay
[INFO] Waiting for connection...
[INFO] Client connected! Starting handshake...
[INFO] Handshake complete
[INFO] Ready to serve files
[INFO] Connecting to relay...
[INFO] Connected to relay
[INFO] Starting handshake...
[INFO] Handshake complete
[INFO] Launching file browser...
orb share ~/Documents# Start your relay server
orb relay --port 9090
# Share using custom relay
orb share . --relay ws://localhost:9090
# Connect using custom relay
orb connect --session abc123 --passcode xyz789 --relay ws://localhost:9090Open three terminals:
Terminal 1 - Relay:
orb relayTerminal 2 - Share:
orb share ~/test-files
# Note the session ID and passcodeTerminal 3 - Connect:
orb connect --session <ID> --passcode <CODE>Your files are secure:
- End-to-end encrypted with ChaCha20-Poly1305
- Relay server cannot see file contents
- Passcode protects session access
- Sessions expire after 24 hours
Important:
- Share the passcode securely (encrypted messaging, in person)
- Don't reuse session credentials
- Only share directories you trust
- Session Creation: Server generates unique credentials
- Relay Connection: Both peers connect to relay via WebSocket
- Noise Handshake: Peers establish encrypted channel using passcode
- Encrypted Tunnel: All file operations encrypted end-to-end
- Sandboxed Access: File operations restricted to shared directory
- Learn more about Sharing Files
- Explore TUI Browser features
- Understand Security details
- Check Troubleshooting for common issues
- Run
orb --helpfor command help - Read the FAQ
- Check Troubleshooting Guide