> 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)
- [Windows (ARM64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-win-arm64.exe)
- [Linux (.deb, x64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-amd64.deb)
- [Linux (.deb, ARM64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-arm64.deb)
- [Linux (.rpm, x64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.rpm)
- [Linux (.rpm, ARM64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-aarch64.rpm)
- [Linux (AppImage, x64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.AppImage)
- [Linux (AppImage, ARM64)](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-arm64.AppImage)

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

### [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
```

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

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

Download: [App Store](https://apps.apple.com/us/app/opencode/id6788226734) (iPhone), [Google Play](https://play.google.com/store/apps/details?id=ai.opencode.mobilecode) (Android)

### [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/th/docs/build/sdk/)

## รู้จัก OpenCode

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

- **[โมเดลใดก็ได้](https://opencode.ai/docs/models/):** ผู้ให้บริการ LLM กว่า 200 รายผ่าน Models.dev รวมถึงโมเดลในเครื่อง
- **[ทุกอุปกรณ์](https://opencode.ai/docs/):** แอปเดสก์ท็อป อินเทอร์เฟซเทอร์มินัล แอปมือถือ และ SDK สำหรับเครื่องมือของคุณ
- **[หลายเซสชัน](https://opencode.ai/docs/cli/tui/#sessions):** เปิดให้เอเจนต์หลายตัวทำงานพร้อมกันในโปรเจกต์เดียว
- **[ปลั๊กอิน](https://opencode.ai/docs/plugins/):** เขียนปลั๊กอินให้ตอบสนองต่ออีเวนต์ และเพิ่มความสามารถให้ OpenCode ด้วยตรรกะของคุณเอง
- **[เซิร์ฟเวอร์ MCP](https://opencode.ai/docs/mcp-servers/):** เชื่อมต่อเซิร์ฟเวอร์ MCP ทั้งแบบโลคัลและระยะไกลเพื่อให้เอเจนต์มีเครื่องมือใหม่
- **[เอเจนต์ที่กำหนดเอง](https://opencode.ai/docs/agents/):** สร้างเอเจนต์เฉพาะทางที่มีพรอมต์ โมเดล และเครื่องมือของตัวเอง
- **[สกิลของเอเจนต์](https://opencode.ai/docs/skills/):** สอนเวิร์กโฟลว์ที่ใช้ซ้ำได้ให้เอเจนต์ด้วยไฟล์ SKILL.md
- **[คำสั่งกำหนดเอง](https://opencode.ai/docs/commands/):** เปลี่ยนงานที่ทำซ้ำๆ ให้เป็นคำสั่ง slash ที่เรียกใช้ได้ทุกเมื่อ
- **[สิทธิ์](https://opencode.ai/docs/permissions/):** เลือกได้ว่างานใดทำอัตโนมัติ และงานใดต้องรอคุณอนุมัติ
- **[เลิกทำและทำซ้ำ](https://opencode.ai/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/th/docs/console/models/#free-models). No account needed. For more, bring [your own subscription](https://opencode.ai/th/docs/providers/) or use [OpenCode Go](https://opencode.ai/th/console/go).

Free models today include Big Pickle, DeepSeek V4.1 Flash Free. [OpenCode Go](https://opencode.ai/th/console/go#console-go-plan-go): $10/month. [OpenCode Go Plus](https://opencode.ai/th/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 or GitHub Copilot. Or use an [OpenCode subscription](https://opencode.ai/th/console/go).

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

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

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

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

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

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

## Console

**ครบทุกอย่างสำหรับการทำงานกับ AI**

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

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

---

- [เอกสาร](https://opencode.ai/th/docs)
- [ผลิตภัณฑ์](https://opencode.ai/th/product)
- [ข้อมูล](https://opencode.ai/th/data)
- [Console](https://opencode.ai/th/console)
- [โมเดล](https://opencode.ai/th/console/models)
- [แพ็กเกจ](https://opencode.ai/th/console/go)
- [Enterprise](https://opencode.ai/th/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.
