# ภาพรวมการเชื่อมต่อเครื่องมือ AI

เชื่อมต่อเครื่องมือเขียนโค้ด ตัวแก้ไข และ Agent กับโมเดล Felo ด้วยคีย์ API เดียว เลือกไคลเอนต์แล้วตั้งค่าคีย์ ที่อยู่ API และโมเดล

เชื่อมต่อเครื่องมือเขียนโค้ด ตัวแก้ไข และ Agent กับโมเดล Felo ด้วยคีย์ API เดียว เลือกไคลเอนต์แล้วตั้งค่าคีย์ ที่อยู่ API และโมเดล

## ก่อนเริ่มต้น

[API Key](https://openapi.felo.ai/console/api-keys)

คุณต้องมีคีย์ของ Felo API Platform หนึ่งคีย์ คีย์เดียวกันใช้ได้กับโปรโตคอลโมเดล ไคลเอนต์ Agent และ API ต่าง ๆ ได้แก่ Search, Web Fetch, PPT, Mindmap, LiveDocs, X Search, YouTube Subtitling, Landing Page และ SuperAgent

```bash
export FELO_API_KEY="YOUR_API_KEY"
```

## เลือกเครื่องมือ

- [Codex](https://openapi.felo.ai/th/docs/agent-clients/codex.md)
- [Claude Code](https://openapi.felo.ai/th/docs/agent-clients/claude-code.md)
- [OpenCode](https://openapi.felo.ai/th/docs/agent-clients/opencode.md)
- [OpenClaw](https://openapi.felo.ai/th/docs/agent-clients/openclaw.md)
- [Hermes Agent](https://openapi.felo.ai/th/docs/agent-clients/hermes-agent.md)
- [TRAE](https://openapi.felo.ai/th/docs/agent-clients/trae.md)
- [Cursor](https://openapi.felo.ai/th/docs/agent-clients/cursor.md)
- [Cline](https://openapi.felo.ai/th/docs/agent-clients/cline.md)
- [Roo Code](https://openapi.felo.ai/th/docs/agent-clients/roo-code.md)
- [Kilo Code](https://openapi.felo.ai/th/docs/agent-clients/kilo-code.md)
- [Magpie](https://openapi.felo.ai/th/docs/agent-clients/magpie.md)
- [เครื่องมือ AI อื่น ๆ](https://openapi.felo.ai/th/docs/agent-clients/other-tools.md)

## ควรเลือก base URL ใด

| เครื่องมือถามหา | ใช้ base URL นี้ |
|---------------|-------------------|
| endpoint ที่เข้ากันได้กับ OpenAI | `https://openapi.felo.ai/api/v1` |
| endpoint ที่เข้ากันได้กับ Anthropic | `https://openapi.felo.ai/api` |
| URL ของ Chat Completions | `https://openapi.felo.ai/api/v1` |
| โฮสต์ของ Messages API | `https://openapi.felo.ai/api` |

| ตัวอย่างโมเดล | [Model ID](https://openapi.felo.ai/th/models) |

## ตรวจสอบการตั้งค่า

เลือกโมเดลจากผู้ให้บริการ Felo แล้วส่งข้อความสั้น ๆ สำหรับงานเขียนโค้ด ให้ใช้โมเดลที่รองรับการเรียกใช้เครื่องมือ

## การแก้ไขปัญหา

| ปัญหา | สิ่งที่ควรตรวจสอบ |
|-------|---------------|
| การรับรองความถูกต้องล้มเหลว | ยืนยันว่าคัดลอกคีย์ถูกต้องและ export เป็น `FELO_API_KEY` |
| เครื่องมือเรียกผู้ให้บริการผิดราย | ตรวจสอบว่าผู้ให้บริการ Felo ถูกเลือกสำหรับเวิร์กสเปซหรือเซสชันปัจจุบัน |
| ข้อผิดพลาด base URL | ใช้ `https://openapi.felo.ai/api/v1` สำหรับไคลเอนต์ที่เข้ากันได้กับ OpenAI และ `https://openapi.felo.ai/api` สำหรับไคลเอนต์ที่เข้ากันได้กับ Anthropic |
| ไม่พบโมเดล | เลือกโมเดลที่ปรากฏในรายการโมเดล Felo ของคุณ |
| เครื่องมือเพิกเฉยต่อการกำหนดค่าในเครื่อง | ย้ายการตั้งค่าผู้ให้บริการไปยังการกำหนดค่าระดับผู้ใช้หากไคลเอนต์กำหนดให้ต้องทำ |

## ขั้นตอนถัดไป

- [เริ่มต้นใช้งาน](https://openapi.felo.ai/th/docs/getting-started.md)
- [เอกสารอ้างอิง LLM API](https://openapi.felo.ai/th/docs/guides/protocols.md)
- [เอกสารอ้างอิง Chat API](https://openapi.felo.ai/th/docs/api-reference/chat.md)
- [เอกสารอ้างอิง SuperAgent API](https://openapi.felo.ai/th/docs/api-reference/superagent.md)
