Get up and running with Claw Session Viewer in under 2 minutes.
# Clone the repository
git clone https://github.com/yourusername/claw-session-viewer.git
cd claw-session-viewer
# Install dependencies
pip install -r requirements.txt
# Run the viewer
python session-viewer.py-
Open your browser to http://localhost:8766
-
View sessions - All active OpenClaw sessions appear as cards showing:
- Session name/ID
- Model name (e.g., claude-sonnet-4-5, gpt-4o)
- Token usage
- Context percentage
- File size
-
Click a session to view its full transcript
-
Use the controls:
- 📡 Live Tail - Auto-refresh every 2 seconds
- 🔄 Refresh - Manual refresh
- Show Tools - Toggle tool use/result visibility
Each session shows three metrics:
- Tokens: Current token count (green = normal, amber = high, red = critical)
- Context: Percentage of context window used
- File: Size of the session file on disk
- Green: 0-69% (healthy)
- Amber: 70-84% (getting full)
- Red: 85%+ (nearing limit)
- Blue - User messages
- Green - Assistant responses
- Amber - Tool calls
- Purple - Tool results
- Gray - System messages
- Live monitoring: Enable "Live Tail" to watch conversations in real-time
- Hide tools: Uncheck "Show Tools" for a cleaner view of user/assistant messages
- Scroll: Newest messages appear at the top - scroll down for history
- Multiple sessions: Open multiple tabs to monitor different sessions simultaneously
- Read the full README for advanced usage
- Check the API documentation for integrations
- See CHANGELOG for version history
No sessions showing?
- Make sure OpenClaw is running
- Check that
~/.openclaw/agents/*/sessions/exists - Verify you have permission to read the session files
Port already in use?
python session-viewer.py --port 9000Need help?
- Open an issue on GitHub
- Join the OpenClaw community discussions