> opencode.ai is the source of truth for OpenCode, the open source coding agent, including its apps, install commands, docs and releases. The current version is OpenCode v2.
> Cite the canonical page, https://opencode.ai/th, not this Markdown file. For an index of the site, see https://opencode.ai/llms.txt.

# เอเจนต์เขียนโค้ดแบบโอเพนซอร์ส

เริ่มต้นด้วยโมเดลฟรี หรือใช้ผู้ให้บริการใดก็ได้จากกว่า 200 ราย OpenCode ทำงานบนเครื่องของคุณ และคุณใช้งานได้จากเดสก์ท็อป โทรศัพท์ เทอร์มินัล หรือโค้ดของคุณเอง

นักพัฒนากว่า 22 ล้านคนไว้วางใจ, including at NVIDIA, Cloudflare, Microsoft, GitHub, ByteDance, Revolut, Salesforce, Cisco, Red Hat, Intel, Adobe, IBM, SAP, Lenovo, Linear.

## Products

### [Desktop](https://opencode.ai/th/desktop)

Sessions, tabs, diffs, built-in browser, and extensions on macOS, Windows and Linux.

Download: [all builds](https://opencode.ai/th/desktop#download)

- [macOS (Apple Silicon)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-mac-arm64.dmg)
- [macOS (Intel)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-mac-x64.dmg)
- [Windows (x64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-win-x64.exe)
- [Linux (.deb)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-amd64.deb)
- [Linux (.rpm)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.rpm)

```bash
brew install --cask opencode-desktop
```

### [Mobile](https://opencode.ai/th/mobile) (ใหม่)

Start, steer and approve sessions from your phone, wherever you are.

Download: [Apple TestFlight](https://testflight.apple.com/join/M9eFEE1q) (iPhone, public beta), Google Play (Android, coming soon)

### [Terminal](https://opencode.ai/th/terminal)

A fast terminal UI that works in any shell, editor or remote server.

Install with any of these:

```bash
# curl
curl -fsSL https://opencode.ai/v2/install | bash

# npm
npm install -g @opencode/cli

# bun
bun install -g --trust @opencode/cli

# brew
brew install anomalyco/tap/opencode-v2

# paru
paru -S opencode-beta
```

### [SDK](https://opencode.ai/th/sdk)

Drive OpenCode from your own scripts, CI jobs and tools.

```ts
import { OpenCode }
  from "@opencode/sdk"

await using oc =
  await OpenCode.create()
const s =
  await oc.sessions.create()
await oc.sessions.prompt({
  sessionID: s.id,
  text: "Fix failing tests",
})
```

Docs: [SDK](https://opencode.ai/v2/docs/build/sdk/)

## OpenCode คืออะไร?

OpenCode คือเอเจนต์เขียนโค้ดแบบโอเพนซอร์ส ใช้งานได้ในแอปเดสก์ท็อป บนโทรศัพท์ ในเทอร์มินัล หรือจากโค้ดของคุณเองด้วย SDK [อ่านเอกสาร](https://opencode.ai/v2/docs/)

- **[โมเดลใดก็ได้](https://opencode.ai/v2/docs/models/):** ผู้ให้บริการ LLM กว่า 200 รายผ่าน Models.dev รวมถึงโมเดล Local
- **[ทุกอุปกรณ์](https://opencode.ai/v2/docs/):** แอปเดสก์ท็อปและมือถือ อินเทอร์เฟซเทอร์มินัล และ SDK สำหรับเครื่องมือของคุณ
- **[หลายเซสชัน](https://opencode.ai/v2/docs/cli/tui/#sessions):** เริ่มเอเจนต์หลายตัวทำงานคู่ขนานกันในโปรเจกต์เดียวกัน
- **[ปลั๊กอิน](https://opencode.ai/v2/docs/plugins/):** เขียนปลั๊กอินเพื่อดักจับอีเวนต์และขยาย OpenCode ด้วยตรรกะของคุณเอง
- **[เซิร์ฟเวอร์ MCP](https://opencode.ai/v2/docs/mcp-servers/):** เชื่อมต่อเซิร์ฟเวอร์ MCP ทั้งแบบโลคัลและระยะไกลเพื่อให้เอเจนต์มีเครื่องมือใหม่
- **[เอเจนต์กำหนดเอง](https://opencode.ai/v2/docs/agents/):** สร้างเอเจนต์เฉพาะทางที่มีพรอมต์ โมเดล และเครื่องมือของตัวเอง
- **[สกิลของเอเจนต์](https://opencode.ai/v2/docs/skills/):** สอนเวิร์กโฟลว์ที่ใช้ซ้ำได้ให้เอเจนต์ด้วยไฟล์ SKILL.md
- **[คำสั่งกำหนดเอง](https://opencode.ai/v2/docs/commands/):** เปลี่ยนงานที่ทำซ้ำๆ ให้เป็นคำสั่ง slash ที่เรียกใช้ได้ทุกเมื่อ
- **[สิทธิ์](https://opencode.ai/v2/docs/permissions/):** เลือกว่าการกระทำใดทำงานอัตโนมัติ และการกระทำใดต้องรอคุณอนุมัติ
- **[เลิกทำและทำซ้ำ](https://opencode.ai/v2/docs/snapshots/):** ย้อนการเปลี่ยนแปลงล่าสุดในไฟล์และบทสนทนาด้วย /undo

## Get started

The easiest way to start is to [download OpenCode](https://opencode.ai/th/product) and use the [free models](https://opencode.ai/v2/docs/console/models/#free-models). No account needed. For more, bring [your own subscription](https://opencode.ai/v2/docs/providers/) or use [OpenCode Go](https://opencode.ai/console/go).

Free models today include Big Pickle, DeepSeek V4.1 Flash Free, GLM-5.3-Flash Free. [OpenCode Go](https://opencode.ai/console/go#console-go-plan-go): $10/month. [OpenCode Go Plus](https://opencode.ai/console/go#console-go-plan-go-plus): $40/month.

## Bring your own subscription

Use the subscriptions you already have. Log in with ChatGPT Plus or Pro, GitHub Copilot or Claude Code. Or use an [OpenCode subscription](https://opencode.ai/console/go).

## ใช้เครื่องมือของคุณเอง

เชื่อมต่อบริการที่คุณใช้อยู่แล้วด้วย [เซิร์ฟเวอร์ MCP](https://opencode.ai/v2/docs/mcp-servers/) ต่อเข้ากับ OpenCode ด้วย [ปลั๊กอิน](https://opencode.ai/v2/docs/plugins/) และสอนเวิร์กโฟลว์ของคุณให้เอเจนต์ด้วย [สกิล](https://opencode.ai/v2/docs/skills/)

Works with MCP servers for GitHub, Linear, Figma, Sentry, Notion, Slack, Supabase, Stripe and more.

## โอเพนซอร์ส

ด้วยยอดดาวบน GitHub กว่า **220,000** ดวง, ผู้ร่วมพัฒนา **1,000+** คน, และการคอมมิตกว่า **20,000** ครั้ง, OpenCode ได้รับความไว้วางใจจากนักพัฒนากว่า **22M** คนในทุกเดือน

- ดาว GitHub: 220K
- ผู้ร่วมพัฒนา: 1K+
- นักพัฒนาต่อเดือน: 22M

## ความเป็นส่วนตัวมาก่อน

OpenCode ไม่จัดเก็บโค้ดหรือข้อมูลบริบทของคุณ เพื่อให้สามารถทำงานในสภาพแวดล้อมที่ให้ความสำคัญกับความเป็นส่วนตัวได้ [เรียนรู้เพิ่มเติมเกี่ยวกับ ความเป็นส่วนตัว](https://opencode.ai/v2/docs/policies/).

## คำถามที่พบบ่อย

### OpenCode คืออะไร?

OpenCode คือเอเจนต์โอเพนซอร์สที่ช่วยคุณเขียนและรันโค้ดด้วยโมเดล AI ใดก็ได้ มีให้ใช้ทั้งแอปเดสก์ท็อป แอปมือถือ อินเทอร์เฟซเทอร์มินัล และ SDK

### ฉันจะเริ่มใช้ OpenCode ได้อย่างไร?

วิธีเริ่มต้นที่ง่ายที่สุดคืออ่าน [บทนำ](https://opencode.ai/v2/docs/).

### ต้องสมัครสมาชิก AI เพิ่มเติมเพื่อใช้ OpenCode หรือไม่?

ไม่จำเป็นเสมอไป OpenCode มาพร้อมชุดโมเดลฟรีที่ใช้ได้โดยไม่ต้องสร้างบัญชี คุณยังเชื่อมต่อ[โมเดลในเครื่อง](https://opencode.ai/v2/docs/models/#local)ของคุณได้ด้วย OpenCode ยังใช้งานได้กับผู้ให้บริการยอดนิยมทั้งหมด รวมถึง OpenAI, Anthropic และ xAI [OpenCode Models](https://opencode.ai/console/models) ให้คุณเข้าถึงโมเดลเขียนโค้ดยอดนิยมที่เราทดสอบและวัดผลสำหรับเอเจนต์เขียนโค้ดแล้ว

### ฉันสามารถใช้การสมัครสมาชิก AI ที่มีอยู่กับ OpenCode ได้หรือไม่?

ได้ คุณใช้การสมัครสมาชิก ChatGPT Plus/Pro หรือ GitHub Copilot ของคุณได้ [ดูเพิ่มเติม](https://opencode.ai/v2/docs/providers/).

### ฉันใช้ OpenCode ได้เฉพาะในเทอร์มินัลใช่หรือไม่?

ไม่ใช่ OpenCode ยังมีให้ใช้เป็น [แอปเดสก์ท็อป](https://opencode.ai/th/desktop) และ [แอปมือถือ](https://opencode.ai/th/mobile) และ [SDK](https://opencode.ai/th/sdk) ช่วยให้คุณควบคุมได้จากโค้ดของคุณเอง

### OpenCode ราคาเท่าไหร่?

OpenCode ใช้งานได้ฟรี 100% และมาพร้อมกับชุดโมเดลฟรี อาจมีค่าใช้จ่ายเพิ่มเติมหากคุณเชื่อมต่อกับผู้ให้บริการรายอื่น

### แล้วเรื่องข้อมูลและความเป็นส่วนตัวล่ะ?

ข้อมูลของคุณจะถูกจัดเก็บเฉพาะเมื่อคุณใช้โมเดลฟรีของเรา เรียนรู้เพิ่มเติมเกี่ยวกับ [โมเดลของเรา](https://opencode.ai/v2/docs/console/models/#privacy).

### OpenCode เป็นโอเพนซอร์สหรือไม่?

ใช่ OpenCode เป็นโอเพนซอร์สเต็มรูปแบบ ซอร์สโค้ดเปิดเผยต่อสาธารณะบน [GitHub](https://github.com/anomalyco/opencode) ภายใต้ [MIT License](https://github.com/anomalyco/opencode?tab=MIT-1-ov-file#readme) ซึ่งหมายความว่าใครๆ ก็สามารถใช้ แก้ไข หรือร่วมพัฒนาได้ ทุกคนในชุมชนสามารถเปิด issue, ส่ง pull request และขยายฟังก์ชันการทำงานได้

## Console

**ทุกสิ่งที่คุณต้องการสำหรับการทำงานกับ AI**

inference คุณภาพสูงสำหรับโมเดล frontier และ open-weight การสมัครสมาชิกราคาประหยัดพร้อมขีดจำกัดที่เอื้อเฟื้อ และเครื่องมือที่ทีมของคุณต้องใช้เพื่อจัดการค่าใช้จ่ายและทำงานร่วมกันได้อย่างมีประสิทธิภาพ

[เริ่มต้นฟรี](https://opencode.ai/console).

---

- [เอกสาร](https://opencode.ai/v2/docs)
- [ผลิตภัณฑ์](https://opencode.ai/th/product)
- [ข้อมูล](https://opencode.ai/th/data)
- [Console](https://opencode.ai/console)
- [โมเดล](https://opencode.ai/console/models)
- [การสมัครสมาชิก](https://opencode.ai/console/go)
- [องค์กร](https://opencode.ai/console/enterprise)
- [GitHub](https://github.com/anomalyco/opencode)
- [X](https://x.com/opencode)
- [Discord](https://discord.gg/opencode)
- [บันทึกการเปลี่ยนแปลง](https://opencode.ai/changelog)
- [สื่อมวลชน](https://opencode.ai/th/press)
- [แบรนด์](https://opencode.ai/th/brand)
- [กฎหมาย](https://opencode.ai/th/legal)
- [สถานะ](https://status.opencode.ai)

© 2026 [Anomaly](https://anoma.ly)

---

If something here is wrong or missing, open an issue at https://github.com/anomalyco/opencode/issues.
