A modern web interface for Claude Code CLI - Transform your command-line coding experience into an intuitive web-based chat interface
codeGeneration-dark-2025-06-23T14-47-36.webm
- β¨ Why Claude Code Web UI?
- π Quick Start
- βοΈ CLI Options
- π§ Development
- π Security Considerations
- π Documentation
- β FAQ
- π€ Contributing
- π License
Transform the way you interact with Claude Code
Instead of being limited to command-line interactions, Claude Code Web UI brings you:
| CLI Experience | Web UI Experience |
|---|---|
| β¨οΈ Terminal only | π Any device with a browser |
| π± Desktop bound | π± Mobile-friendly interface |
| π Command repetition | π¬ Conversational flow |
| π Plain text output | π¨ Rich formatted responses |
| ποΈ Manual directory switching | π Visual project selection |
- π¨βπ» Developers who prefer visual interfaces
- π± Mobile users who want to code on-the-go
- π₯ Teams sharing coding sessions
- π Multi-project workflows
- π‘ Rapid prototyping with visual feedback
Get up and running in under 2 minutes:
# Download and run (macOS ARM64 example)
curl -LO https://github.com/sugyan/claude-code-webui/releases/latest/download/claude-code-webui-macos-arm64
chmod +x claude-code-webui-macos-arm64
./claude-code-webui-macos-arm64
# Open browser to http://localhost:8080# Backend
cd backend && deno task dev
# Frontend (new terminal)
cd frontend && npm run dev
# Open browser to http://localhost:3000- β Claude CLI installed and authenticated (Get it here)
- β Modern browser (Chrome, Firefox, Safari, Edge)
The backend server supports the following command-line options:
| Option | Description | Default |
|---|---|---|
-p, --port <port> |
Port to listen on | 8080 |
--host <host> |
Host address to bind to | 127.0.0.1 |
-d, --debug |
Enable debug mode | false |
-h, --help |
Show help message | - |
-V, --version |
Show version | - |
PORT- Same as--portDEBUG- Same as--debug
# Default (localhost:8080)
./claude-code-webui
# Custom port
./claude-code-webui --port 3000
# Bind to all interfaces (accessible from network)
./claude-code-webui --host 0.0.0.0 --port 9000
# Enable debug mode
./claude-code-webui --debug
# Using environment variables
PORT=9000 DEBUG=true ./claude-code-webui# Clone repository
git clone https://github.com/sugyan/claude-code-webui.git
cd claude-code-webui
# Start backend
cd backend
deno task dev
# Start frontend (new terminal)
cd frontend
npm run devCreate .env file in project root:
echo "PORT=9000" > .envBoth backend and frontend will automatically use this port.
Important: This tool executes Claude CLI locally and provides web access to it.
- π Local development: Default localhost access
- π’ Trusted networks: LAN access for team collaboration
- π Project isolation: Claude only accesses selected directories
- No authentication: Currently no built-in auth mechanism
- System access: Claude can read/write files in selected projects
- Network exposure: Configurable but requires careful consideration
# Local only (recommended)
./claude-code-webui --port 8080
# Network access (trusted networks only)
./claude-code-webui --port 8080 --host 0.0.0.0Never expose to public internet without proper security measures.
For comprehensive technical documentation, see CLAUDE.md which covers:
- Architecture overview and design decisions
- Detailed development setup instructions
- API reference and message types
Q: Do I need Claude API access?
Yes, you need the Claude CLI tool installed and authenticated. The web UI is a frontend for the existing Claude CLI.
Q: Can I use this on mobile?
Yes! The web interface is fully responsive and works great on mobile devices when connected to your local network.
Q: Is my code safe?
Yes, everything runs locally. No data is sent to external servers except Claude's normal API calls through the CLI.
Q: Can I deploy this to a server?
While technically possible, it's designed for local use. If deploying remotely, ensure proper authentication and security measures.
Q: How do I update?
Download the latest binary from releases or pull the latest code for development mode.
Q: What if Claude CLI isn't found?
Ensure Claude CLI is installed and available in your PATH. Run claude --version to verify.
We welcome contributions! Please see our development setup and feel free to:
- π Report bugs
- β¨ Suggest features
- π Improve documentation
- π§ Submit pull requests
Fun fact: This project is almost entirely written and committed by Claude Code itself! π€
We'd love to see pull requests from your Claude Code sessions too :)
MIT License - see LICENSE for details.
Made with β€οΈ for the Claude Code community
β Star this repo β’ π Report issues β’ π¬ Discussions