ภาพรวม
Claude Code คือเครื่องมือเขียนโค้ดแบบ agentic ที่อ่าน codebase ของคุณ แก้ไขไฟล์ รันคำสั่ง และผสานรวมกับ development tools ของคุณ ใช้งานได้ผ่าน terminal, IDE, desktop app และเบราว์เซอร์
Claude Code คือ AI coding assistant ที่ช่วยให้คุณสร้างฟีเจอร์ แก้บั๊ก และทำงาน development ให้เป็นอัตโนมัติ เข้าใจ codebase ทั้งหมดของคุณและสามารถทำงานข้ามหลายไฟล์และหลายเครื่องมือเพื่อให้งานสำเร็จ
เริ่มต้นใช้งาน
เลือก environment ที่คุณต้องการเริ่มต้น ส่วนใหญ่ต้องการ สมาชิก Claude หรือบัญชี Anthropic Console Terminal CLI และ VS Code ยังรองรับ third-party providers ด้วย
Terminal
CLI แบบ full-featured สำหรับทำงานกับ Claude Code โดยตรงใน terminal แก้ไขไฟล์ รันคำสั่ง และจัดการโปรเจกต์ทั้งหมดจาก command line
ติดตั้ง Claude Code ด้วยวิธีใดวิธีหนึ่งต่อไปนี้:
macOS, Linux, WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
Windows CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
จากนั้นเริ่ม Claude Code ในโปรเจกต์ใดก็ได้:
cd your-project
claude
ระบบจะให้คุณ login ในการใช้งานครั้งแรก แค่นั้นเอง!
VS Code
VS Code extension ให้ inline diffs, @-mentions, plan review และ conversation history โดยตรงใน editor
หรือค้นหา "Claude Code" ใน Extensions view (Cmd+Shift+X บน Mac, Ctrl+Shift+X บน Windows/Linux)
Desktop App
แอปแบบ standalone สำหรับรัน Claude Code นอก IDE หรือ terminal ดู diff แบบ visual รันหลาย session พร้อมกัน กำหนด task ที่เกิดซ้ำได้
ดาวน์โหลดและติดตั้ง:
- macOS (Intel และ Apple Silicon)
- Windows (x64)
- Windows ARM64
เว็บ
รัน Claude Code ในเบราว์เซอร์โดยไม่ต้องติดตั้งอะไรในเครื่อง เริ่ม task ที่ใช้เวลานานและกลับมาตรวจสอบเมื่องานเสร็จ ใช้ repo ที่ไม่มีในเครื่อง หรือรันหลาย task พร้อมกัน
เริ่มเขียนโค้ดที่ claude.ai/code
JetBrains
Plugin สำหรับ IntelliJ IDEA, PyCharm, WebStorm และ JetBrains IDE อื่นๆ พร้อม interactive diff viewing และ selection context sharing
สิ่งที่คุณทำได้
ต่อไปนี้คือวิธีบางส่วนที่คุณสามารถใช้ Claude Code:
ทำงานที่คุณเลื่อนออกไปโดยอัตโนมัติ
Claude Code จัดการงานที่น่าเบื่อที่กินเวลาของคุณ: เขียน test สำหรับโค้ดที่ยังไม่มี test แก้ lint errors ในโปรเจกต์ แก้ merge conflicts อัปเดต dependencies และเขียน release notes
claude "write tests for the auth module, run them, and fix any failures"
สร้างฟีเจอร์และแก้บั๊ก
อธิบายสิ่งที่คุณต้องการด้วยภาษาธรรมดา Claude Code จะวางแผนแนวทาง เขียนโค้ดข้ามหลายไฟล์ และตรวจสอบว่าใช้งานได้
สำหรับบั๊ก วาง error message หรืออธิบายอาการ Claude Code จะ trace ปัญหาผ่าน codebase ค้นหาสาเหตุหลัก และ implement การแก้ไข
สร้าง commits และ pull requests
Claude Code ทำงานโดยตรงกับ git โดย stage changes เขียน commit messages สร้าง branches และเปิด pull requests
claude "commit my changes with a descriptive message"
เชื่อมต่อ tools ด้วย MCP
Model Context Protocol (MCP) เป็น open standard สำหรับเชื่อมต่อ AI tools กับแหล่งข้อมูลภายนอก ด้วย MCP Claude Code สามารถอ่าน design docs ใน Google Drive อัปเดต tickets ใน Jira ดึงข้อมูลจาก Slack หรือใช้ tooling แบบ custom ของคุณเอง
ปรับแต่งด้วย instructions, skills และ hooks
CLAUDE.md คือ markdown file ที่คุณเพิ่มไว้ที่ root ของโปรเจกต์ซึ่ง Claude Code จะอ่านเมื่อเริ่ม session ทุกครั้ง ใช้เพื่อกำหนด coding standards, architectural decisions, preferred libraries และ review checklists
สร้าง skills เพื่อ package workflow ที่ทำซ้ำได้ที่ทีมสามารถแชร์กันได้ เช่น /review-pr หรือ /deploy-staging
Hooks ให้คุณรัน shell commands ก่อนหรือหลัง Claude Code actions เช่น auto-format หลังทุกการแก้ไขไฟล์ หรือรัน lint ก่อน commit
รัน agent teams และสร้าง custom agents
Spawn multiple Claude Code agents ที่ทำงานบนส่วนต่างๆ ของงานพร้อมกัน lead agent จะประสานงาน กำหนด subtasks และรวมผลลัพธ์
Pipe, script และทำให้เป็นอัตโนมัติด้วย CLI
Claude Code สามารถ compose ได้และทำตาม Unix philosophy:
# วิเคราะห์ log output ล่าสุด
tail -200 app.log | claude -p "Slack me if you see any anomalies"
# ทำ translation อัตโนมัติใน CI
claude -p "translate new strings into French and raise a PR for review"
# Bulk operations ข้ามไฟล์
git diff main --name-only | claude -p "review these changed files for security issues"
ใช้ Claude Code ทุกที่
ดูตารางด้านล่างสำหรับ integration ต่างๆ:
| ฉันต้องการ... | ตัวเลือกที่ดีที่สุด |
|---|---|
| ต่อ local session จากโทรศัพท์หรืออุปกรณ์อื่น | Remote Control |
| Push events จาก Telegram, Discord, iMessage หรือ webhooks | Channels |
| เริ่ม task ในเครื่อง ต่อบนมือถือ | Web หรือ Claude iOS app |
| รัน Claude ตามกำหนดการ | Routines หรือ Desktop scheduled tasks |
| ทำ PR reviews และ issue triage แบบอัตโนมัติ | GitHub Actions หรือ GitLab CI/CD |
| รับ code review อัตโนมัติทุก PR | GitHub Code Review |
| Route bug reports จาก Slack ไปยัง pull requests | Slack |
| Debug web applications แบบ live | Chrome |
| สร้าง custom agents สำหรับ workflow ของคุณ | Agent SDK |
ขั้นตอนถัดไป
เมื่อคุณติดตั้ง Claude Code แล้ว guides เหล่านี้จะช่วยให้คุณไปได้ลึกขึ้น:
- Quickstart: ทำ task จริงครั้งแรก ตั้งแต่การสำรวจ codebase ไปจนถึงการ commit การแก้ไข
- Store instructions and memories: ให้คำสั่งถาวรแก่ Claude ด้วยไฟล์ CLAUDE.md และ auto memory
- Common workflows และ best practices: รูปแบบสำหรับการใช้ Claude Code ให้ได้ประโยชน์สูงสุด
- Settings: ปรับแต่ง Claude Code สำหรับ workflow ของคุณ
- Troubleshooting: วิธีแก้ปัญหาที่พบบ่อย