First Steps¶
Welcome! This guide will walk you through your first experience with Orb.
Quick Overview¶
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
Your First File Share¶
Step 1: Start Sharing¶
On the computer with files you want to share:
You'll see output like:
Important: Keep this terminal open and note the Session ID and Passcode!
Step 2: Connect from Another Device¶
On the computer that wants to access the files:
If the relay is on a different server:
Step 3: Browse Files¶
After 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
Step 4: Download Files¶
- Navigate to the file you want
- Press
Enter - The file downloads to your current directory
- You'll see a success message
Understanding the Output¶
Sharing Terminal¶
[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
Connecting Terminal¶
[INFO] Connecting to relay...
[INFO] Connected to relay
[INFO] Starting handshake...
[INFO] Handshake complete
[INFO] Launching file browser...
Common Scenarios¶
Share a Specific Directory¶
Use a Custom Relay¶
# 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:9090
Quick Test on One Machine¶
Open three terminals:
Terminal 1 - Relay:
Terminal 2 - Share:
Terminal 3 - Connect:
Security Notes¶
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
What's Happening Behind the Scenes?¶
- 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
Next Steps¶
- Learn more about Sharing Files
- Explore TUI Browser features
- Understand Security details
- Check Troubleshooting for common issues
Need Help?¶
- Run
orb --helpfor command help - Read the FAQ
- Check Troubleshooting Guide