SuperAPIAI Directory

claudecode-remote

github.com · AI coding

Claude Code Remote is a web interface for Claude Code that starts a service on the machine running Claude Code and can be accessed from a browser on a phone, tablet, or another computer. It discovers projects and sessions from the local Claude Code history and provides two types of sessions: CLI sessions are read-only live views, while web sessions allow full interaction in the browser. The project uses the existing Claude Code login and requires no API key; it does not send code, sessions, or credentials to third-party servers, access is protected by a password set on first launch, the password is stored as a salted hash, and logins are valid for 24 hours. The service listens on port 3001 by default and can be accessed remotely through tunnels such as ngrok. It requires Node.js 20 or later. This project is an independent project and is not an official Anthropic product.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose Claude Code Remote provides a web interface for Claude Code. After you start the service on the machine running Claude Code, you can access it from any browser, including a phone, tablet, or another computer. It discovers and displays projects and sessions from the local Claude Code history in the browser interface.

Key capabilities

  1. Two types of sessions: CLI sessions are read-only and let you view in real time all Claude Code sessions started on the local machine via the CLI or VS Code; web sessions are fully interactive and let you run Claude Code directly in the browser, loading Claude Code settings and CLAUDE.md files just like claude in a terminal.
  2. Project discovery: automatically discovers projects from ~/.claude/projects/; any directory where Claude Code has been used before will appear.
  3. Session persistence: web sessions persist across page refreshes and reconnections.
  4. Model selection: the model selector sends Claude Code's aliases sonnet, opus, and haiku, so each alias runs the current model of that family.
  5. Permission modes: you can select a permission mode for a web session in the chat sidebar, effective from the next message; the server remembers the selection across refreshes and new sessions in ~/.claude-code-remote/preferences.json. Since 0.3.0, web sessions start in Default mode; earlier versions started in Bypass. In either mode, questions Claude asks you are displayed in the browser; if Claude is waiting for an answer and the session's last browser tab is closed, the request is rejected.

Usage The runtime requires Node.js 20 or later, and Claude Code must already be logged in on the local machine. The Agent SDK bundles the Claude Code binary, so claude does not need to be in PATH; it uses your existing login. The official instructions provide x64 and arm64 binaries for macOS, Linux, and Windows.

Two installation methods are offered: Option 1 install from source (recommended), Option 2 use the npm package. The provided materials do not give the complete installation commands for these two methods, so they are not provided for now. After the service starts, the default address is http://localhost:3001。首次访问时页面会要求设置密码,建议立即设置。自定义端口可使用 PORT=8080 npm start or PORT=8080 claudecode-remote. Development mode starts both the server on port 3001 and the Vite dev server on port 5174, and supports hot reload; the materials do not give the complete development start command. To reset, you can delete the runtime configuration and restart; the materials do not give the specific command.

The server listens on all network interfaces, so other devices on the same network can access it through its port (default 3001, unless PORT is set). Before a password is set, the first person to open the page can set the password, so you should set a password before exposing the server. To access it from another device, you can use a tunnel such as ngrok; you can also use a stable domain name. The materials do not give the specific tunnel configuration command.

In implementation, the server wraps the Claude Agent SDK (@anthropic-ai/claude-agent-sdk), which bundles the Claude Code binary. Each chat message runs that Claude Code in the project directory; the first message of a web session starts a Claude Code session, and subsequent messages resume that session. A web session loads user, project, and local settings (~/.claude/settings.json, .claude/settings.json, .claude/settings.local.json) as well as CLAUDE.md files, and uses Claude Code's own system prompt.

Privacy and security The app does not communicate with third-party servers. Neither the server nor the web page sends your code, sessions, or credentials to other servers; the page does not load content from other hosts, fonts and scripts are bundled, and images in Claude replies are displayed as links. Claude Code still communicates with Anthropic as usual: each message you send runs Claude Code locally, and Claude Code sends the prompt and the context it needs to Anthropic, using your Claude Code configuration, including any hooks and MCP servers you have set up.

No API key is required; use your existing Claude Code login. If claude is available in the terminal, this tool is also available. Access is protected by the password you set on first launch, and the password is stored in salted hash form in ~/.claude-code-remote/runtime.json, and login is valid for 24 hours. If you expose the server through a tunnel such as ngrok, traffic between the browser and the machine passes through that service, and the tunnel service can see that traffic.

Use cases Suitable for viewing a Claude Code session running on your machine from your phone, or for starting and continuing an interactive Claude Code programming session in the browser; also suitable for accessing Claude Code projects on the same development machine from a tablet, another computer, or other devices.

Limitations Requires Node.js 20 or later, and Claude Code must already be logged in on the machine; remote access depends on port exposure or a tunnel, and the tunnel can see traffic; before the password is first set, there is a risk that someone else may set it; communication between Claude Code and Anthropic, hooks, and MCP configuration still work according to Claude Code's original mechanisms; images in Claude replies are displayed as links. This project is an independent project and is not an official Anthropic product. Project address:https://github.com/seeknull/claudecode-remote

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools