# Hướng dẫn cài đặt SillyTavern trên Android

> Triển khai SillyTavern trên điện thoại Android thông qua Termux, và kết nối với cổng LLMoxy để sử dụng Claude và GPT.

### Cài đặt Termux

Tải xuống và cài đặt Termux từ F-Droid hoặc GitHub.

![Cài đặt Termux](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-01.png)

![Giao diện Termux](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-02.png)

### Cập nhật gói phần mềm

Cập nhật gói phần mềm trong Termux:

```bash
pkg update && pkg upgrade
```

![Cập nhật gói phần mềm](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-03.png)

![Cập nhật hoàn tất](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-04.png)

### Cài đặt Git

```bash
pkg install git
```

![Cài đặt Git](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-05.png)

### Sao chép kho lưu trữ Tavern

Người dùng ngoài Trung Quốc sử dụng GitHub:

```bash
git clone https://github.com/SillyTavern/SillyTavern -b release
```

Người dùng khu vực Châu Á - Thái Bình Dương nếu kết nối GitHub không ổn định, sử dụng bản sao Gitee:

```bash
git clone https://gitee.com/mirrors/sillytavern.git -b release
```

![Sao chép Tavern](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-06.png)

### Vào thư mục và cài đặt Node.js

Vào thư mục SillyTavern và cài đặt Node.js:

```bash
cd SillyTavern
```

```bash
pkg install nodejs
```

![Vào thư mục](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-07.png)

![Cài đặt Node.js](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-08.png)

### Cài đặt phụ thuộc

```bash
npm install
```

![npm install](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-09.png)

### Chạy Tavern

Nếu đã ở trong thư mục SillyTavern, chạy trực tiếp tập lệnh khởi động:

```bash
cd SillyTavern
./start.sh
```

![Chạy Tavern](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-10.png)

![Khởi động Tavern](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-11.png)

> Nếu không thể chuyển hướng hoặc bị lỗi font, hãy mở trong trình duyệt: `http://127.0.0.1:8000`

### Cấu hình API

Cấu hình LLMoxy trong SillyTavern:

- Nhấp vào Cài đặt, chọn **Tùy chỉnh (tương thích OpenAI)** làm nguồn hoàn thành trò chuyện
- URL điểm cuối tùy chỉnh: `https://llmoxy.com/v1`
- Khóa API: nhập token của bạn
- Tên mô hình: `grok-4.7`
- Nhấp vào "Lấy mô hình khả dụng" để xác minh cấu hình

![Bước cấu hình 1](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-12.png)

![Bước cấu hình 2](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-13.png)

![Bước cấu hình 3](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-14.png)

![Bước cấu hình 4](https://vi.llmoxy.com/docs-assets/migrated/tutorial-android-sillytavern/image-15.png)

> **⚠️ Lưu ý**
> Khi kiểm tra cấu hình, đảm bảo không có khoảng trắng ở cuối!

Đây là bản markdown của https://vi.llmoxy.com/docs/client-tutorials/android-sillytavern.
