Skip to main content

Remote Control ของ Claude Code

การตั้งค่า Remote Control, การเชื่อมต่อจากอุปกรณ์ต่าง ๆ และการเปรียบเทียบกับ web interface

ภาพรวม

Remote Control ช่วยให้คุณควบคุม Claude Code session ที่รันบนเครื่องของคุณจากอุปกรณ์อื่น เช่น phone, tablet หรือ computer เครื่องอื่น

การตั้งค่า Remote Control

เริ่มต้น Remote Control Server

claude --remote

Claude Code จะแสดง URL สำหรับเชื่อมต่อ:

Remote control server started at:
http://localhost:3000

To connect from another device on your network:
http://192.168.1.100:3000

ตัวเลือก

# กำหนด port
claude --remote --port 8080

# เปิดให้เข้าถึงจากภายนอก network
claude --remote --host 0.0.0.0

# ตั้งค่า authentication
claude --remote --auth-token your-secret-token

การเชื่อมต่อจากอุปกรณ์

เบราว์เซอร์

เปิด URL ที่แสดงใน terminal บน browser ของอุปกรณ์ที่ต้องการ:

http://192.168.1.100:3000

Mobile App

แอป Claude Code บน iOS/Android รองรับการเชื่อมต่อกับ Remote Control server:

  1. เปิดแอป
  2. เลือก "Connect to Remote Session"
  3. ใส่ URL ของ server

การตั้งค่าความปลอดภัย

Authentication Token

# ตั้งค่า token
claude --remote --auth-token $(openssl rand -hex 32)

ผู้ใช้ที่เชื่อมต่อจะต้องใส่ token นี้

HTTPS

สำหรับการใช้งานบนเครือข่ายสาธารณะ ควรใช้ HTTPS:

claude --remote \
--cert /path/to/cert.pem \
--key /path/to/key.pem

การเปรียบเทียบ: Remote Control vs Web Interface

คุณสมบัติRemote ControlWeb Interface (claude.ai)
Filesystem access✅ เต็มรูปแบบ❌ ไม่มี
Shell commands
MCP serversบางส่วน
Hooks
ไม่ต้องติดตั้งบนอุปกรณ์
ใช้งานจากทุกที่ต้องตั้งค่า network
Session persistence✅ ต่อจาก local sessionแยก sessions

Use Cases

ทำงานกับ Phone ขณะเดินทาง

เปิด session ที่บ้าน ทำงานต่อจาก phone ระหว่างเดินทาง โดยยังคง access ไฟล์ในเครื่องได้

Code Review จาก iPad

Review โค้ดบน iPad พร้อม full context ของ project โดยไม่ต้องติดตั้ง development environment

Pair Programming

ให้เพื่อนร่วมงานเชื่อมต่อมาดูและช่วยใน session เดียวกัน

ดูสิ่งที่เกี่ยวข้อง

  • ./platforms - แพลตฟอร์มอื่น ๆ ของ Claude Code
  • ./permissions - การจัดการ permissions สำหรับ remote sessions