An open API service indexing awesome lists of open source software.

https://github.com/binggg/Claude-Code-Web-GUI

A simple and practical Claude Code session browser that runs entirely in your browser with no server required.
https://github.com/binggg/Claude-Code-Web-GUI

ai claude claudecode code gui

Last synced: 2 months ago
JSON representation

A simple and practical Claude Code session browser that runs entirely in your browser with no server required.

Awesome Lists containing this project

README

          

#

Claude Code Web GUI

# Claude Code Web GUI

[![GitHub stars](https://img.shields.io/github/stars/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/network)
[![GitHub issues](https://img.shields.io/github/issues/binggg/Claude-Code-Web-GUI?style=flat-square&logo=github)](https://github.com/binggg/Claude-Code-Web-GUI/issues)
[![GitHub license](https://img.shields.io/github/license/binggg/Claude-Code-Web-GUI?style=flat-square)](https://github.com/binggg/Claude-Code-Web-GUI/blob/main/LICENSE)
[![GitHub deployments](https://img.shields.io/github/deployments/binggg/Claude-Code-Web-GUI/github-pages?style=flat-square&label=deployment)](https://binggg.github.io/Claude-Code-Web-GUI/)

🚀 Browse, view and share your Claude Code sessions - runs entirely in browser, no server required!

English | [中文](README_ZH.md)

https://github.com/user-attachments/assets/039dc640-d5fc-4c29-9bb8-a386bd1a9da8

> [!TIP]
> ⭐ Show your support — star the repo

## Features

- **Local Operation** - Runs entirely in your browser without requiring software installation or server setup
- **Session Browsing** - Browse local Claude Code session history organized by projects
- **Search & Filter** - Quickly search and locate specific sessions
- **Session Sharing** - Share session content via direct links or GitHub Gist
- **Responsive UI** - Works on desktop and mobile devices
- **Bilingual Support** - Switch between Chinese and English interfaces

## Quick Start

### Online Usage (Recommended)
Visit: https://binggg.github.io/Claude-Code-Web-GUI/

### Local Development
```bash
git clone https://github.com/binggg/Claude-Code-Web-GUI.git
cd Claude-Code-Web-GUI

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview
```

## How to Use

1. Ensure you have installed and used [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code)
2. Open the app in a browser that supports File System Access API (Chrome/Edge)
3. Click "Select .claude directory" and choose the `~/.claude` folder
- Press `Cmd+Shift+.` (Mac) or `Ctrl+H` (Windows/Linux) to show hidden files
4. Browse your session history

## Sharing Features

### Direct Link Sharing
- Quick sharing with first 10 messages of a session
- Suitable for brief content previews

### GitHub Gist Sharing
- Contains complete session content
- Supports Markdown formatting
- Recommended for sharing full sessions

## Browser Compatibility

Requires modern browsers with File System Access API support:
- Chrome 86+
- Edge 86+
- Other Chromium-based browsers

## Development

### Prerequisites
- Node.js 16+
- Modern browser with File System Access API support

### Project Structure
```
src/
├── components/ # React components
│ ├── Header.jsx # Homepage header
│ ├── Sidebar.jsx # Session browser
│ ├── MainContent.jsx # Main content area
│ └── ... # Other components
├── hooks/ # Custom React hooks
├── utils/ # Business logic and utilities
├── styles/ # CSS styles
└── App.jsx # Main application component
```

### Adding Features
1. Create components in `src/components/`
2. Add business logic to `src/utils/claudeCodeManager.js`
3. Update translations in `src/utils/i18n.js`
4. Style with classes in `src/styles/globals.css`

## Technical Architecture

### React Version (Current)
- Frontend: React 18 with modern hooks
- Build Tool: Vite for fast development and optimized builds
- Styling: Modern CSS (Grid + Flexbox)
- File Access: File System Access API
- Data Parsing: JSONL format support
- Component Structure: Modular, reusable React components

### Key Components
- **Header**: Homepage with actions and branding
- **Sidebar**: Session browser with project grouping
- **MainContent**: Chat message display area
- **MarkdownContent**: Enhanced markdown rendering with syntax highlighting
- **ToolCall**: Tool call visualization
- **FABContainer**: Floating action buttons for quick actions

## Privacy Notice

This application runs entirely in your local browser and does not upload any data to remote servers. All session data is processed only on your device.

## License

MIT License - see [LICENSE](LICENSE) file for details

## Contributing

Issues and Pull Requests are welcome.

---

If this project helps you, please give it a ⭐ Star!