@kimuson/claude-code-viewer 0.4.14 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,9 +4,11 @@
4
4
  [![CI](https://github.com/d-kimuson/claude-code-viewer/actions/workflows/ci.yml/badge.svg)](https://github.com/d-kimuson/claude-code-viewer/actions/workflows/ci.yml)
5
5
  [![GitHub Release](https://img.shields.io/github/v/release/d-kimuson/claude-code-viewer)](https://github.com/d-kimuson/claude-code-viewer/releases)
6
6
 
7
+ <img height="auto" width="50%" alt="ccv-logo" src="https://github.com/user-attachments/assets/0e092b2b-6acd-4380-b924-eed7a28acd69" />
8
+
7
9
  A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects. Start new conversations, resume existing sessions, monitor running tasks in real-time, and browse your conversation history—all through a modern web interface.
8
10
 
9
- ![demo](./docs/assets/claude-code-viewer-demo-min.gif)
11
+ https://github.com/user-attachments/assets/090d4806-163f-4bac-972a-002c7433145e
10
12
 
11
13
  ## Introduction
12
14
 
@@ -32,14 +34,14 @@ Claude Code Viewer is a web-based Claude Code client focused on **comprehensive
32
34
  | Push Changes | Push committed changes directly from the Git Diff Viewer. Supports both separate push operations and combined commit-and-push workflows for streamlined deployment |
33
35
  | MCP Server Viewer | View MCP server configurations directly in the session sidebar. Lists all configured servers with their names and commands, with real-time reload capability |
34
36
  | System Information | Monitor Claude Code and Claude Code Viewer versions, feature compatibility, and system status |
35
- | Multi-language Support | Full internationalization support with English and Japanese language options |
37
+ | Multi-language Support | Full internationalization support with English, Japanese, and Simplified Chinese language options |
36
38
 
37
39
  ## Screenshots
38
40
 
39
41
  | Feature | Capture |
40
42
  | --- | --- |
41
- | BasicChat (Desktop) | ![](./e2e/snapshots/projects/L2hvbWUvcnVubmVyL3dvcmsvY2xhdWRlLWNvZGUtdmlld2VyL2NsYXVkZS1jb2RlLXZpZXdlci9tb2NrLWdsb2JhbC1jbGF1ZGUtZGlyL3Byb2plY3RzL3NhbXBsZS1wcm9qZWN0/sessions/fe5e1c67-53e7-4862-81ae-d0e013e3270b/desktop-dark.png) |
42
- | BasicChat (Mobile) | ![](./e2e/snapshots/projects/L2hvbWUvcnVubmVyL3dvcmsvY2xhdWRlLWNvZGUtdmlld2VyL2NsYXVkZS1jb2RlLXZpZXdlci9tb2NrLWdsb2JhbC1jbGF1ZGUtZGlyL3Byb2plY3RzL3NhbXBsZS1wcm9qZWN0/sessions/fe5e1c67-53e7-4862-81ae-d0e013e3270b/mobile-dark.png) |
43
+ | BasicChat (Desktop) | ![](./e2e/snapshots/projects/L2hvbWUvcnVubmVyL3dvcmsvY2xhdWRlLWNvZGUtdmlld2VyL2NsYXVkZS1jb2RlLXZpZXdlci9tb2NrLWdsb2JhbC1jbGF1ZGUtZGlyL3Byb2plY3RzL3NhbXBsZS1wcm9qZWN0/session_sessionId_fe5e1c67-53e7-4862-81ae-d0e013e3270b/desktop-dark.png) |
44
+ | BasicChat (Mobile) | ![](./e2e/snapshots/projects/L2hvbWUvcnVubmVyL3dvcmsvY2xhdWRlLWNvZGUtdmlld2VyL2NsYXVkZS1jb2RlLXZpZXdlci9tb2NrLWdsb2JhbC1jbGF1ZGUtZGlyL3Byb2plY3RzL3NhbXBsZS1wcm9qZWN0/session_sessionId_fe5e1c67-53e7-4862-81ae-d0e013e3270b/mobile-dark.png) |
43
45
  | CommandCompletion | ![](./docs/assets/command_completion.png) |
44
46
  | FileCompletion | ![](./docs/assets/file_completion.png) |
45
47
  | Diff Viewer | ![](./docs/assets/git_diff.png) |
@@ -53,17 +55,30 @@ Note: Additional UI screenshots are available in [/e2e/snapshots/](./e2e/snapsho
53
55
  Run directly from npm without installation:
54
56
 
55
57
  ```bash
56
- PORT=3400 npx @kimuson/claude-code-viewer@latest
58
+ npx @kimuson/claude-code-viewer@latest --port 3400
57
59
  ```
58
60
 
59
61
  Alternatively, install globally:
60
62
 
61
63
  ```bash
62
64
  npm install -g @kimuson/claude-code-viewer
63
- claude-code-viewer
65
+ claude-code-viewer --port 3400
64
66
  ```
65
67
 
66
- The server will start on port 3400 (or your specified PORT). Open `http://localhost:3400` in your browser to access the interface.
68
+ The server will start on port 3400 (or the default port 3000). Open `http://localhost:3400` in your browser to access the interface.
69
+
70
+ **Available Options:**
71
+
72
+ ```bash
73
+ claude-code-viewer [options]
74
+
75
+ Options:
76
+ -p, --port <port> Port to listen on (default: 3000)
77
+ -h, --hostname <hostname> Hostname to listen on (default: localhost)
78
+ -P, --password <password> Password for authentication
79
+ -e, --executable <executable> Path to Claude Code executable
80
+ --claude-dir <claude-dir> Path to Claude directory
81
+ ```
67
82
 
68
83
  ### Docker Deployment
69
84
 
@@ -77,7 +92,8 @@ Run the container directly:
77
92
 
78
93
  ```bash
79
94
  docker run --rm -p 3400:3400 \
80
- -e CLAUDE_CODE_VIEWER_AUTH_PASSWORD=your-password \
95
+ -e PORT=3400 \
96
+ -e CCV_PASSWORD=your-password \
81
97
  -e ANTHROPIC_BASE_URL=... \
82
98
  -e ANTHROPIC_API_KEY=... \
83
99
  -e ANTHROPIC_AUTH_TOKEN=... \
@@ -124,15 +140,22 @@ The application reads Claude Code conversation logs from:
124
140
 
125
141
  ## Configuration
126
142
 
127
- ### Environment Variables
143
+ ### Command-Line Options and Environment Variables
128
144
 
129
- Claude Code Viewer reads several reserved environment variables. All values are optional and only need to be set if you want to override the defaults.
145
+ Claude Code Viewer can be configured using command-line options or environment variables. Command-line options take precedence over environment variables.
130
146
 
131
- | Key | Description |
132
- | --- | --- |
133
- | CLAUDE_CODE_VIEWER_CC_EXECUTABLE_PATH | Path to Claude Code installation. If not set, uses system PATH installation, or falls back to bundled version from dependencies |
134
- | CLAUDE_CODE_VIEWER_AUTH_PASSWORD | Password for authentication. When set, enables password-based authentication to protect access to Claude Code Viewer. All `/api` routes (except login, logout, check, config, and version endpoints) require authentication. If not set, authentication is disabled and the application is publicly accessible |
135
- | PORT | Port number for Claude Code Viewer to run on |
147
+ | Command-Line Option | Environment Variable | Description | Default |
148
+ | --- | --- | --- | --- |
149
+ | `-p, --port <port>` | `PORT` | Port number for Claude Code Viewer to run on | `3000` |
150
+ | `-h, --hostname <hostname>` | `HOSTNAME` | Hostname to listen on for remote access | `localhost` |
151
+ | `-P, --password <password>` | `CCV_PASSWORD` | Password for authentication. When set, enables password-based authentication to protect access to Claude Code Viewer. All `/api` routes (except login, logout, check, config, and version endpoints) require authentication. If not set, authentication is disabled and the application is publicly accessible | (none) |
152
+ | `-e, --executable <executable>` | `CCV_CC_EXECUTABLE_PATH` | Path to Claude Code installation. If not set, uses system PATH installation, or falls back to bundled version from dependencies | (auto-detect) |
153
+ | `--claude-dir <claude-dir>` | `CCV_GLOBAL_CLAUDE_DIR` | Path to Claude directory where session logs are stored | `~/.claude` |
154
+
155
+ **Breaking Change**: Environment variable names have been changed. If you're using environment variables, update them as follows:
156
+ - `CLAUDE_CODE_VIEWER_AUTH_PASSWORD` → `CCV_PASSWORD`
157
+ - `CLAUDE_CODE_VIEWER_CC_EXECUTABLE_PATH` → `CCV_CC_EXECUTABLE_PATH`
158
+ - New environment variable added: `CCV_GLOBAL_CLAUDE_DIR` (previously the Claude directory path was hardcoded to `~/.claude`)
136
159
 
137
160
  ### User Settings
138
161
 
@@ -146,13 +169,13 @@ Settings can be configured from the sidebar in Claude Code Viewer.
146
169
  | Permission Mode | Ask permission | Controls the approval logic when Claude Code requests tool invocations. By default, users approve requests through the UI. This feature requires Claude Code v1.0.82 or later; earlier versions automatically approve regardless of this setting. |
147
170
  | Theme | System | Toggles between Dark Mode and Light Mode. Default follows system settings. |
148
171
  | Notifications | None | Enables sound notifications when running session processes complete. Choose from multiple notification sounds with test playback functionality. |
149
- | Language | System | Interface language selection. Supports English and Japanese with automatic system detection. |
172
+ | Language | System | Interface language selection. Supports English, Japanese, and Simplified Chinese with automatic system detection. |
150
173
 
151
174
  ## Internationalization (i18n)
152
175
 
153
- Claude Code Viewer currently supports **English** and **Japanese**. Adding new languages is straightforward—simply add a new `messages.json` file for your locale (see [src/i18n/locales/](./src/i18n/locales/) for examples).
176
+ Claude Code Viewer currently supports **English**, **Japanese**, and **Simplified Chinese (简体中文)**. Adding new languages is straightforward—simply add a new `messages.json` file for your locale (see [src/i18n/locales/](./src/i18n/locales/) for examples).
154
177
 
155
- However, we haven't added other languages yet because we're uncertain about demand. **If you'd like support for your language, please open an issue**—we'll add it quickly!
178
+ If you'd like support for your language, please open an issuewe'll add it quickly!
156
179
 
157
180
  ## Alternatives & Differentiation
158
181
 
@@ -199,7 +222,7 @@ Claude Code Viewer is designed with remote hosting in mind. To support remote de
199
222
  - **Real-time Notifications**: Audio notifications for task completion to maintain workflow awareness
200
223
  - **System Monitoring**: Monitor Claude Code compatibility and feature availability across environments
201
224
 
202
- The application features a separated client-server architecture that enables remote hosting. **Basic password authentication is available** via the `CLAUDE_CODE_VIEWER_AUTH_PASSWORD` environment variable. When set, users must authenticate with the configured password before accessing the application. However, this is a simple single-password authentication mechanism without advanced features like multi-user support, role-based access control, or OAuth integration. If you require more sophisticated authentication, carefully evaluate your security requirements and implement appropriate access controls at the infrastructure level (e.g., reverse proxy with OAuth, VPN, IP whitelisting).
225
+ The application features a separated client-server architecture that enables remote hosting. **Basic password authentication is available** via the `--password` command-line option or `CCV_PASSWORD` environment variable. When set, users must authenticate with the configured password before accessing the application. However, this is a simple single-password authentication mechanism without advanced features like multi-user support, role-based access control, or OAuth integration. If you require more sophisticated authentication, carefully evaluate your security requirements and implement appropriate access controls at the infrastructure level (e.g., reverse proxy with OAuth, VPN, IP whitelisting).
203
226
 
204
227
  ## License
205
228