What is a Session?
When you runanyware, Anyware:
- Creates a session on the server
- Connects to the WebSocket for real-time streaming
- Spawns Claude Code locally with hooks to capture events
- Streams all output to the web dashboard
Session Lifecycle
Sessions have two states: active and ended.Active
- Claude Code is running on your machine
- Output streams to the web dashboard
- You can switch between local and remote modes
- Others can view (and control, if permitted) from the web
Ended
- Claude Code has exited
- Session is marked as ended on the server
- No reconnection possible (start a new session)
Local vs Remote Mode
Within an active session, you can switch between two modes:| Mode | Input Source | Use Case |
|---|---|---|
| Local | Your terminal | Typing directly, full keyboard access |
| Remote | Web dashboard | Controlling from phone, monitoring |
Session Events
Everything that happens in your Claude Code session is captured and streamed:- Output: All terminal output (stdout/stderr)
- Tool calls: File edits, bash commands, etc.
- Permissions: When Claude requests permission
- Mode changes: Switches between local and remote
Multiple Sessions
Run multiple sessions in parallel by opening multiple terminal windows:Session Security
- Sessions are tied to your user account
- Only you can view your sessions in the dashboard
- WebSocket connections are authenticated
- All traffic uses HTTPS/WSS
See Also
- Local vs Remote Mode - Mode switching
- Web Dashboard - Monitoring sessions
- anyware run - Start a session