The Terminal GUI for Claude Code Session Management
Cafedelia provides the visual interface and session intelligence that Claude Code should have had from the beginning. Built on Elia's proven Textual framework, Cafedelia transforms Claude Code from a powerful but primitive CLI tool into a comprehensive terminal GUI.
Claude Code is incredibly powerful but has interface limitations:
- Manual session management with
claude code --resume <session-id> - No way to see what sessions exist or their status
- No visual model selection or configuration
- Sessions are "black boxes" with no progress visibility
Cafedelia solves these problems:
- Visual Session Browser: See all Claude Code sessions at a glance
- Model Configuration GUI: Easy selection of Claude 3.5 Sonnet, Haiku, Opus
- Session Intelligence: Progress tracking and achievement summaries
- Terminal-Native: Built for developers who live in the terminal
- 🔍 Session Discovery: Automatically find all Claude Code sessions from
~/.claude/__store.db - 📊 Session Browser: Visual interface for browsing and organizing sessions by project
- 🎯 Model Selection: GUI for choosing between Claude Code's available models
- 📈 Session Intelligence: Progress tracking and session achievement summaries
- 🖥️ Terminal Integration: Embedded tmux sessions within beautiful Textual interface
- ⚡ Quick Access: One-click session attachment without memorizing session IDs
- 🗂️ Project Organization: Group sessions by project and git branch
- 🎨 Beautiful UI: Professional terminal interface built on Textual framework
- Claude Code: Cafedelia is a GUI wrapper for Claude Code
- tmux: Required for session management (usually pre-installed)
# Install Claude Code (if not already installed)
npm install -g @anthropic-ai/claude-code
# Install tmux (if not already installed)
# Ubuntu/Debian:
sudo apt install tmux
# macOS:
brew install tmuxUsing pipx (recommended):
pipx install cafedeliaUsing pip:
pip install cafedeliaAfter installation, run Cafedelia using the cafedelia command.
- Install Claude Code and Cafedelia using the instructions above
- Set your Anthropic API key (required for Claude Code):
export ANTHROPIC_API_KEY="your-api-key-here"
- Run Cafedelia:
cafedelia
- Browse your Claude Code sessions visually in the interface
- Select or create sessions with one-click access
When you first run Cafedelia:
- It will create its own database at
~/.local/share/cafedelia/cafedelia.sqlite - Existing Claude Code sessions will be automatically discovered from
~/.claude/__store.db - You can immediately browse and attach to any existing Claude Code sessions
Cafedelia works by:
- Session Discovery: Reading Claude Code's session data from
~/.claude/__store.db - Tmux Integration: Launching Claude Code sessions in tmux for terminal embedding
- Intelligent Display: Showing session metadata, project context, and progress
Cafedelia can be configured using a TOML file located at ~/.config/cafedelia/config.toml.
Here's an example configuration file:
[general]
# The default Claude model to use for new sessions
default_model = "claude-3-5-sonnet-20241022"
# UI theme - choose from "dark", "light", "nebula", "sunset", "nord", "dracula", "synthwave"
theme = "dark"
[claude_code]
# Claude Code session discovery settings
auto_discover_sessions = true
session_refresh_interval = 30 # seconds
# Model preferences for Claude Code
available_models = [
"claude-3-5-sonnet-20241022",
"claude-3-5-haiku-20241022",
"claude-3-opus-20240229"
]
# Session management
max_concurrent_sessions = 5
session_timeout = 3600 # 1 hourRun Cafedelia to open the Claude Code session browser:
cafedelia- Browse Sessions: See all Claude Code sessions with project context and timestamps
- Attach to Session: Click any session to attach to it via tmux integration
- Create New Session: Start a new Claude Code session with selected model and project
- Monitor Progress: View session intelligence and achievement summaries
ctrl+o- Open model configuration and session optionsctrl+n- Create a new Claude Code sessionctrl+s- Save current session statectrl+r- Refresh session list from Claude Code databasectrl+x- Exit Cafedeliaescape- Go back or close modalf1or?- Open helptabandshift+tab- Navigate between UI elements
Cafedelia seamlessly integrates with your existing Claude Code workflow:
- All existing sessions are automatically discovered
- Session attachments preserve tmux environment
- Model configurations sync with Claude Code settings
- No changes to your existing Claude Code workflow required
Cafedelia is built on proven technologies:
- Textual Framework: Modern Python terminal UI framework
- Claude Code Integration: Direct integration with Claude Code's session system
- tmux: Terminal multiplexer for session management
- SQLite: Local database for session intelligence and caching
Status: Early Development - Core functionality being implemented
- ✅ Standalone Cafedelia application
- ✅ Complete branding and identity
- ✅ Database separation from Elia
- 🚧 Claude Code session discovery
- 🚧 Model configuration GUI
- 📋 Session intelligence and monitoring
Cafedelia is a focused fork of Elia specifically designed for Claude Code session management. While Elia is a general-purpose LLM chat interface, Cafedelia is purpose-built to be the GUI that Claude Code should have had from the beginning.
Contributions are welcome! Please see our Contributing Guide for details.
Areas of focus:
- Claude Code integration and session management
- Textual UI development for terminal environments
- Session intelligence and progress tracking
- Terminal workflow optimization
MIT
- Built on the Textual framework by Textualize
- Forked from Elia by Darren Burns
- Designed specifically for Claude Code by Anthropic