> For the complete documentation index, see [llms.txt](https://docs.tinyapi.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tinyapi.org/claude-code.md).

# Claude Code ตั้งค่า

## คู่มือใช้งาน CC-Switch กับ TinyToken

**CC-Switch ใช้งาน** · 2026/6/8 · อ่านไม่เกิน 5 นาที

คู่มือใช้งาน CC-Switch กับ TinyToken สำหรับ Claude Code

## สรุปก่อนเริ่ม

คู่มือนี้ใช้สำหรับตั้งค่า Claude Code ให้เรียก API ผ่าน TinyToken โดยใช้ CC-Switch เป็นตัวจัดการ Provider

## 1. ดาวน์โหลดและเปิด CC-Switch

ไปที่หน้า GitHub Release ของ CC-Switch แล้วดาวน์โหลดไฟล์สำหรับระบบของคุณ เช่น Windows ให้ใช้ไฟล์ .msi จากนั้นติดตั้งและเปิดโปรแกรม

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-553cd18f6f361cf21c38b0a351455e03ae4e753e%2Fclaude-code-01.png?alt=media)

เลือกไฟล์ติดตั้ง CC-Switch จากหน้า Assets

## 2. เปิดหน้า Claude ใน CC-Switch

เมื่อเปิดโปรแกรมแล้ว ให้เลือกแท็บ Claude และกดปุ่ม + เพื่อเพิ่ม Provider ใหม่

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-186df7ece1dc5369364b8d2a88b3be814024e1cf%2Fclaude-code-02.png?alt=media)

หน้าแรกของ CC-Switch สำหรับ Claude

## 3. เลือก Custom Configuration

ในหน้า Add New Provider ให้เลือก Custom Configuration เพื่อกรอกข้อมูล TinyToken เอง

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-a2bf2f52990752b9b85a49c8bfa4ce39c8bf97e6%2Fclaude-code-03.png?alt=media)

เลือก Custom Configuration

## 4. คัดลอก API Key จาก TinyToken

เปิด <https://tinyapi.org/keys> แล้วกดปุ่มคัดลอก API Key

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-314e424b7a8f4f9b4bbc0d0a4f81e5020e89a2f7%2Fclaude-code-04.png?alt=media)

คัดลอก API Key จากหน้า TinyToken

## 5. กรอก Provider ของ TinyToken

Provider Name: TinyToken

Website URL: <https://tinyapi.org>

API Key: วาง API Key ที่คัดลอกมา

API Endpoint: <https://api.tinyapi.org>

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-3b497b84af5bd929c2d3a4f96d12811cae2555ff%2Fclaude-code-05.png?alt=media)

กรอก URL, API Key และ Endpoint

## 6. ตั้งค่า Advanced Options

เปิด Advanced Options

API Format: Anthropic Messages (Native)

Auth Field: ANTHROPIC\_AUTH\_TOKEN (Default)

Main Model: claude-opus-4-6 หรือโมเดลที่ต้องการ แล้วกด Add / Save

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-33c72afc5760b795b777dc52055b5da8fee8cc02%2Fclaude-code-06.png?alt=media)

ตั้งค่า API Format และ Main Model

## 7. เปิดใช้งาน Provider

กลับมาหน้าหลักแล้วกด Enable ให้ TinyToken ขึ้นสถานะ In Use

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-ab7571d1cc55568b411aaf8d6af8c6645ea32797%2Fclaude-code-07.png?alt=media)

TinyToken แสดงสถานะ In Use

## 8. ตั้งค่า Skip first-run confirmation

ไปที่ Settings > General แล้วเปิด Skip Claude Code first-run confirmation

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-e61b73443feb3fd416e45d9e2c003de96dc8d89b%2Fclaude-code-08.png?alt=media)

เปิด Skip Claude Code first-run confirmation

## 9. ทดสอบใน Terminal

เปิด PowerShell หรือ Terminal แล้วพิมพ์ claude ถ้ามีหน้าให้ยืนยัน ให้เลือก Yes, I trust this folder

**Command**

```
claude
```

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-f6c7d09aeea1a4cb6e41947a685795a82fd760a8%2Fclaude-code-09.png?alt=media)

เลือก Yes, I trust this folder

## 10. ตรวจสอบว่าใช้งานได้

ลองถามว่า what is your model ถ้า Claude ตอบกลับได้ แปลว่าตั้งค่าสำเร็จ

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-c49f8f4bc02ea4bf3a00448ac42c42c3b5b29110%2Fclaude-code-10.png?alt=media)

Claude Code ใช้งานผ่าน TinyToken สำเร็จ

## หมายเหตุ

* ถ้าจะเปลี่ยนโมเดล ให้คัดลอกชื่อโมเดลจากหน้า All AI Model / Pricing ของ TinyToken
* ถ้า API ไม่ทำงาน ให้ตรวจสอบ API Key, Endpoint และสถานะ In Use อีกครั้ง

![รูปประกอบคู่มือ](https://524826316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzefZXBaGhZNtvOIDrgZR%2Fuploads%2Fgit-blob-e10bde2a341c4f94db3f60c1960569d36f08ca05%2Fclaude-code-11.png?alt=media)

คัดลอกชื่อโมเดลจากหน้า TinyToken


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tinyapi.org/claude-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
