# Quickstart

> เริ่มต้นใช้งาน Foundry ได้ภายในไม่กี่นาที ด้วยวิซาร์ดติดตั้งอัตโนมัติที่ช่วยจัดการโครงสร้างพื้นฐาน (Docker), ระบบยืนยันตัวตน พร้อมเปิดแดชบอร์ดให้คุณทันที

Source: https://bifrost5.com/th/foundry/docs/quickstart/

# Quickstart

Information

Once your first run works, Production-Grade keeps it safe in the cloud and lets you check in from your phone.

[See editions](/th/foundry/docs/editions)

เริ่มต้นใช้งาน Foundry ได้ภายในไม่กี่นาที ด้วยวิซาร์ดติดตั้งอัตโนมัติที่ช่วยจัดการโครงสร้างพื้นฐาน (Docker), ระบบยืนยันตัวตน พร้อมเปิดแดชบอร์ดให้คุณทันที

## สิ่งที่ต้องเตรียมล่วงหน้า

- Node.js 18+ (แนะนำเวอร์ชัน LTS เช่น ติดตั้งผ่าน [nvm](https://github.com/nvm-sh/nvm))

- Docker & Docker Compose สำหรับจัดเก็บสถานะด้วย DragonflyDB

- AI provider CLI หรือ API key อย่างน้อยหนึ่งตัวที่คุณมีแพ็กเกจใช้งานอยู่แล้ว (BYOK): Cursor CLI, Claude, Gemini, Codex หรือโมเดลโลคอลอย่าง Ollama

## ติดตั้งและเริ่มต้นใช้งาน

```
# 1. Clone and install
git clone https://github.com/bifrost5/foundry.git
cd foundry
npm install

# 2. Run the setup wizard
# Starts the infrastructure, sets up auth and state, and opens the dashboard
npm run setup
```

**Visit:** `http://localhost:5173` to manage your software factory. Then pick a path in [Workflows](/th/foundry/docs/workflows).

## การติดตั้งด้วยตัวเอง (Headless หรือ CI)

เหมาะสำหรับกรณีที่ไม่สะดวกใช้วิซาร์ด เช่น บนเซิร์ฟเวอร์ที่ไม่มีเบราว์เซอร์ ทั้งนี้สามารถเลือกใช้ pnpm หรือ npm ได้เช่นเดียวกัน

```
npm install && npm run build
docker-compose up -d
redis-cli -h localhost -p 6499 ping   # should answer PONG
```

พอร์ตเริ่มต้นสำหรับสถานะคือ **6499** หากคุณใช้โฮสต์หรือพอร์ตอื่น โปรดส่งพารามิเตอร์ `--redis-host` และ `--redis-port` ในทุกคำสั่ง CLI
