Remote Control Claude Code Codex

Chọn runtime trước khi bật remote access

Cả hai path có chung logic local-first: thiết bị remote đã đăng nhập đi qua relay, còn session thật vẫn chạy trên host được connect. Khác nhau là host process, identity system, và có thêm model routing hay không.

Luồng kết nối local-first
Phone / tablet / browser

Chỉ gửi control event và nhận session update.

Remote relay

Relay chỉ chuyển prompt, yêu cầu duyệt và trạng thái. File/workspace vẫn ở host.

Local session

Host chạy phiên Claude/Codex thật. File, tool, credential và quyền duyệt ở lại host.

Path Claude Code

Dùng command tích hợp của Claude Code. Remote Control cần login subscription claude.ai; auth bằng API key hoặc Console không tạo được remote session.

Path Codex

Dùng Codex app-server làm host process. ChatGPT identity lo remote relay; CLIProxyAPI/CCS chỉ đổi route của model call.

Yêu cầu Claude Code

Check phần này trước khi debug QR code hoặc session không hiện.

Paid plan
Pro / Max / Team / Enterprise
Đăng nhập claude.ai
Đăng nhập bằng claude.ai. API key hoặc Console token không tạo được remote session.
Admin Team / Enterprise
Với Team/Enterprise, admin cần bật Remote Control trong Claude Code settings trước.
Mở Claude Code settings
Trusted workspace
Trust mỗi project một lần trước khi điều khiển session từ xa.

Bật remote access

chọn 1

Chọn một cách. Đây là các lựa chọn thay thế, không phải các bước chạy cùng nhau.

A

Server mode

Phù hợp khi muốn server dùng lại với URL và QR code.

shell · claude
claude remote-control
B

Start session có tên

Mở Claude Code session mới kèm remote ngay.

shell · claude
claude --remote-control "My Project"
C

Trong Claude Code đang chạy

Gõ trong màn hình Claude Code đang mở.

claude · interactive
/remote-control
# or:
/rc
D

Bật mặc định

Mở /config trong Claude Code, rồi bật remote control cho session sau.

claude · interactive
/config
# Set: remoteControl: true

Nguồn đã check

Phần Claude và Codex ở trên đã tóm tắt các điểm cần chú ý. Muốn đọc kỹ hơn thì xem thêm official docs bên dưới.