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

https://github.com/DevAgentForge/claude-code-webui


https://github.com/DevAgentForge/claude-code-webui

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

          

[็ฎ€ไฝ“ไธญๆ–‡](README_ZH.md)

# Claude Code WebUI

**Claude Code โ€” now in your browser. Anywhere.**

A **web-based Claude Code** that runs on **desktop, mobile phones, and iPads**,
while **sharing the exact same configuration as your local Claude Code**.

> No cloud rewrite.
> No vendor lock-in.
> Just Claude Code โ€” everywhere.

![Screenshot](./assets/ScreenShot_1.png)

---

## โœจ Why Claude Code WebUI?

Claude Code is powerful โ€” but itโ€™s **terminal-bound**.

That means:
- โŒ Not usable on mobile or iPad
- โŒ Hard to access remotely
- โŒ Awkward for demos, monitoring, or quick edits

**Claude Code WebUI solves this by:**

- ๐ŸŒ Running Claude Code **in your browser**
- ๐Ÿ“ฑ Supporting **mobile & iPad**
- ๐Ÿ” Reusing your **existing `~/.claude/settings.json`**
- ๐Ÿง  Staying **100% compatible** with local Claude Code

If Claude Code works on your machine โ€”
**it works here.**

---

## ๐Ÿš€ Quick Start (10 seconds)

### 1. Prerequisites

Make sure you have **Bun** and **Claude Code** installed.

```bash
# Install Bun
curl -fsSL https://bun.sh/install | bash

# Install Claude Code
npm install -g @anthropic-ai/claude-code
````

---

### 2. Run Claude Code WebUI

```bash
bunx @devagentforge/claude-code-webui@latest
```

Open your browser:

```text
http://localhost:10086
```

โœ… Thatโ€™s it.

---

### Change Port (Optional)

```bash
PORT=3000 bunx @devagentforge/claude-code-webui@latest
```

---

## ๐Ÿง  Core Capabilities

### ๐Ÿค– Claude Code โ€” in the Browser

* Natural language interaction with Claude Code
* **Real-time streaming output** (word-by-word)
* Markdown + syntax-highlighted code rendering
* Clean, Claude-style UI

---

### ๐Ÿ“‚ Session & Workspace Management

* Create sessions with **custom working directories**
* Resume any previous conversation
* Full local session history (SQLite-backed)
* Safe deletion & automatic persistence

---

### ๐Ÿ” Tool Permission Control

* Explicit approval for tool execution
* Allow / deny per tool
* Bulk permission policies
* Manual handling for AskUserQuestion flows

---

### ๐Ÿ“ฑ Mobile-First UI

* Fully responsive (desktop / phone / iPad)
* Claude-style light theme
* Fast session switching
* Touch-friendly interactions

---

## ๐Ÿ” Fully Compatible with Local Claude Code

Claude Code WebUI **does not reinvent configuration**.

It directly reuses:

```text
~/.claude/settings.json
```

Which means:

* Same API keys
* Same base URL
* Same models
* Same behavior

> Configure Claude Code once โ€” use it everywhere.

---

## ๐Ÿงฉ Architecture Overview

### Frontend

* React 19 + TypeScript
* Tailwind CSS 4
* Radix UI
* Zustand
* Markdown + syntax highlighting
* Streaming-first rendering

### Backend

* Bun runtime
* Hono web framework
* WebSocket-based streaming
* SQLite (WAL mode)
* Claude Agent SDK

---

## ๐Ÿ›  Run from Source

```bash
git clone https://github.com/DevAgentForge/claude-code-webui.git
cd claude-code-webui

bun install
bun run build
bun run start
```

---

## โš™๏ธ Environment Variables

```bash
PORT=10086
DB_PATH=./webui.db
CORS_ORIGIN=*
```

Claude-related config is shared with Claude Code:

* `ANTHROPIC_AUTH_TOKEN`
* `ANTHROPIC_BASE_URL`
* `ANTHROPIC_MODEL`
* `ANTHROPIC_DEFAULT_SONNET_MODEL`
* `ANTHROPIC_DEFAULT_OPUS_MODEL`
* `ANTHROPIC_DEFAULT_HAIKU_MODEL`
* `API_TIMEOUT_MS`
* `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`

---

## ๐Ÿ—บ Roadmap

Planned features:

* ๐ŸŒ Web-based configuration for Base URL & API Key
* ๐Ÿ™ Use **GitHub repositories as working directories**
* ๐Ÿง  Partial replacement of Claude Code Web
* ๐Ÿ‘ฅ Multi-session & multi-agent improvements
* ๐Ÿšง More coming soon

---

## ๐Ÿค Contributing

PRs are welcome.

1. Fork this repository
2. Create your feature branch
3. Commit your changes
4. Open a Pull Request

---

## โญ Final Note

If youโ€™ve ever wanted:

* Claude Code on your phone
* Claude Code on an iPad
* Claude Code without a terminal

This project is for you.

๐Ÿ‘‰ **Star it if it helps you.**