The first comprehensive monitoring and collaboration platform for Claude Code, Cursor, and GitHub Copilot
Quick Start โข Features โข User Guide โข FAQ โข Demo
You're using AI coding assistants like Claude Code or Cursor, but:
- ๐ธ No visibility into token usage until you hit limits
โ ๏ธ No warnings when sessions are getting unstable- ๐คท Can't collaborate with teammates on AI sessions
- ๐ Repeat mistakes - no way to learn from past sessions
- ๐ No insights - just hoping the AI works well
LLM Session Manager gives you complete control over your AI coding workflow:
- ๐ Real-time monitoring - Track every token, error, and metric
- ๐ฏ Smart health scores - Know when to start fresh
- ๐ฅ Team collaboration - Share sessions, chat, and learn together
- ๐ง AI-powered insights - Learn from patterns across all sessions
- ๐ Zero configuration - Auto-detects all your AI tools
Comprehensive testing โข 28/29 tests passing (96.6%) โข Production ready
Choose your installation method:
curl -fsSL https://raw.githubusercontent.com/\
iamgagan/llm-session-manager/main/\
setup.sh | bashThen: |
docker-compose up -d
open http://localhost:3000Zero configuration required! |
|
Everything pre-installed! |
Multiple methods, detailed steps, troubleshooting |
|
Tagging System
|
Project Management
|
|
Markdown Reports
|
AI-Powered Recommendations
|
|
Cross-Session Memory
|
Team Collaboration API
|
Stop guessing when to start a new session
$ llm-session health claude_code_65260
Session Health: 67% (CAUTION)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๏ธ Token usage: 82% (16,400 / 20,000)
โ ๏ธ Error rate increasing (15 errors)
๐ก Recommendation: Consider starting fresh
Based on 50 similar sessions:
โข Average failure point: 85% tokens
โข Success rate drops 40% after 80%Collaborate on AI sessions in real-time
$ llm-session share claude_code_65260
โ
Session Sharing Active!
๐ http://localhost:3000/session/claude_code_65260
Your team can now:
โ View live metrics and token usage
โ Chat and discuss the session
โ See your cursor position in real-time
โ Add comments at specific code locationsUnderstand team productivity and AI usage
- Track total token spend across team
- Identify patterns in successful vs failed sessions
- Build team knowledge base from AI interactions
- Monitor health trends and optimize workflows
curl -fsSL https://raw.githubusercontent.com/iamgagan/llm-session-manager/main/setup.sh | bashThen start using:
poetry run python -m llm_session_manager.cli listgit clone https://github.com/iamgagan/llm-session-manager.git
cd llm-session-manager
poetry install
# If upgrading from an older version, run database migration
python3 migrate_database.py
# Optional: Enable AI insights
export LLM_API_KEY="your-openai-or-anthropic-key"
# Start using
poetry run python -m llm_session_manager.cli listdocker-compose up -d
open http://localhost:3000Everything pre-configured and ready to use!
โ See Detailed Installation Guide
|
|
|
|
# Session Management
poetry run python -m llm_session_manager.cli list # List all active sessions
poetry run python -m llm_session_manager.cli monitor # Real-time TUI dashboard
poetry run python -m llm_session_manager.cli health <session-id> # Detailed health breakdown
poetry run python -m llm_session_manager.cli export <session-id> --format json # Export session data
# AI-Powered Insights ๐ง
poetry run python -m llm_session_manager.cli recommend # Get smart recommendations
poetry run python -m llm_session_manager.cli memory-search "authentication" # Search team knowledge
# Team Collaboration ๐ฅ
poetry run python -m llm_session_manager.cli share <session-id> # Share with team
# Organization & Search
poetry run python -m llm_session_manager.cli tag <session-id> feature auth # Tag sessions
# MCP Integration (Claude Desktop)
poetry run python -m llm_session_manager.cli mcp-config # Generate configโ See Full CLI Documentation
- Quick Start Guide - Get running in 30 seconds
- Installation Options - Detailed setup for all methods
- First Session Tutorial - Your first monitored session
- AI Insights with Cognee - Unlock intelligent recommendations
- Team Collaboration - Share and collaborate on sessions
- MCP Integration - Use with Claude Desktop
- Architecture Overview - How it all works
- CLI Command Reference - All available commands
- API Documentation - REST API endpoints
- Changelog - Version history and updates
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ LLM Session Manager โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ CLI Monitor โ โ Web Dashboard โ โ AI Engine โ โ
โ โ โ โ โ โ (Cognee) โ โ
โ โ โข Discovery โ โ โข Real-time UI โ โ โ โ
โ โ โข Tracking โ โ โข Team Chat โ โ โข Learn โ โ
โ โ โข Health โ โ โข Presence โ โ โข Analyze โ โ
โ โ โข Export โ โ โข Cursors โ โ โข Suggest โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโฌโโโโโโโ โ
โ โ โ โ โ
โ โโโโโโโโโโโโโโฌโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ FastAPI Backend โ โ
โ โ โข REST API โ โ
โ โ โข WebSocket Server โ โ
โ โ โข Session Management โ โ
โ โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Data Layer โ โ
โ โ โข SQLite (Sessions) โ โ
โ โ โข ChromaDB (Memories) โ โ
โ โ โข Cognee (Knowledge) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Supported AI Tools: Claude Code โข Cursor โข GitHub Copilot
Tech Stack:
- Backend: Python 3.10+, FastAPI, SQLAlchemy, WebSockets
- Frontend: React 18, Vite, TailwindCSS
- AI Layer: Cognee, LanceDB, ChromaDB, OpenAI/Anthropic APIs
- CLI: Typer, Rich (beautiful terminal UI)
- Testing: Comprehensive test suite, 96.6% pass rate (28/29 tests)
We have a comprehensive automated test suite with 28/29 tests passing (96.6% pass rate).
Quick test:
# Clone and install
git clone https://github.com/iamgagan/llm-session-manager.git
cd llm-session-manager
poetry install
# Run comprehensive test suites
python3 test_all_features.py # CLI features (19/19 โ
)
python3 test_backend_features.py # Backend API (7/7 โ
)
python3 test_mcp_features.py # MCP integration (2/3 โ
)
# View detailed results
cat COMPREHENSIVE_TEST_REPORT.mdWhat gets tested:
- โ CLI commands (19 tests) - list, show, health, export, memory, tagging
- โ Backend API (7 tests) - REST endpoints, session stats, projects, insights
- โ MCP Integration (3 tests) - Config generation, server startup, tools
- โ Export functionality (all formats: JSON, YAML, Markdown)
- โ Memory system (add, search, list, stats)
- โ Team collaboration features
- โ AI-powered recommendations
1. Test CLI monitoring:
# List your active AI sessions
poetry run python -m llm_session_manager.cli list
# Monitor in real-time (dashboard view)
poetry run python -m llm_session_manager.cli monitor
# Press Ctrl+C to exit the monitor
# Get detailed health breakdown for a specific session
poetry run python -m llm_session_manager.cli health <session-id>
# Example with actual session ID:
poetry run python -m llm_session_manager.cli health claude_code_60420Note: The monitor command shows a live-updating dashboard. To exit, press Ctrl+C.
If keyboard shortcuts aren't working, use Ctrl+C to quit.
2. Test collaboration features:
# Terminal 1: Start backend
cd backend
uvicorn app.main:app --reload
# Terminal 2: Start frontend
cd frontend
npm install
npm run dev
# Browser: Open http://localhost:3000
# Create a session, invite teammates, test chat3. Test export:
# Export session data
poetry run python -m llm_session_manager.cli export <session-id> --format json
# Verify file created
cat /tmp/export.jsonWant to contribute? Here's how to get started:
- Fork and clone the repository
- Install dependencies:
poetry install - Run tests:
python3 test_all_features.py && python3 test_backend_features.py - Make changes and add tests
- Ensure all tests pass (28/29 passing)
- Submit a pull request
Areas we'd love help with:
- Additional AI tool integrations (Windsurf, Aider, etc.)
- Enhanced pattern recognition algorithms
- UI/UX improvements
- Documentation and tutorials
- Bug fixes and optimizations
See CONTRIBUTING.md for detailed guidelines.
|
|
|
Key Benefits:
- ๐ฐ Reduce AI costs by tracking token usage across all sessions
- ๐ Get visibility into team AI usage patterns
- ๐ Debug faster with complete session history
โ ๏ธ Identify abandoned or inefficient sessions- ๐ Optimize AI budget allocation
Key Benefits:
- โฑ๏ธ Stop guessing when to restart sessions
- ๐ฏ Get AI-powered recommendations based on your patterns
- ๐ Build a personal knowledge base from all AI interactions
- ๐ Search across all past sessions semantically
- ๐ Track your token usage and coding patterns
Key Benefits:
- ๐ฅ Collaborate on AI sessions in real-time
- ๐ Track team-wide AI productivity metrics
- ๐ง Build organizational knowledge from AI interactions
- ๐ฌ Share insights and best practices
- ๐ฏ Learn from collective session patterns
- ๐ Monitor team health and token usage
We'd love your help making LLM Session Manager better! Here's how to contribute:
|
๐ Detection & Monitoring
|
๐ง AI & Intelligence
|
|
๐จ UI/UX
|
๐ Documentation
|
โ See Contributing Guide | โ Good First Issues
If you find LLM Session Manager useful, please consider giving it a star! It helps others discover the project.
Built with these amazing open-source projects:
- FastAPI - High-performance web framework
- React + Vite - Modern frontend
- Cognee - AI knowledge graphs
- SQLAlchemy - Powerful ORM
- Rich - Beautiful terminal output
- Typer - CLI framework
MIT License - see LICENSE for details.
TL;DR: Free for personal and commercial use. Do whatever you want with it!
Get started in 30 seconds:
git clone https://github.com/iamgagan/llm-session-manager.git
cd llm-session-manager
poetry install
poetry run python -m llm_session_manager.cli listOr explore the features:
# List all your AI sessions
poetry run python -m llm_session_manager.cli list
# Get health check on a session
poetry run python -m llm_session_manager.cli health <session-id>
# Real-time monitoring dashboard
poetry run python -m llm_session_manager.cli monitorMonitor smarter โข Collaborate better โข Learn continuously
โญ Star on GitHub โข ๐ Read the Docs โข ๐ Try the Demo
Helping developers and teams get the most out of AI coding assistants since 2024









