> ## Documentation Index
> Fetch the complete documentation index at: https://docs.triw.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CC Switch

> Kelola Triw sebagai profil provider untuk Claude Code, Codex, OpenCode, dan dsh.

CC Switch adalah aplikasi desktop yang menyimpan profil provider dan menuliskannya ke config masing-masing CLI. Satu profil Triw bisa dipakai beberapa tool.

## Kebutuhan sistem

| Item | Minimum |
| - | - |
| Windows | 10+ |
| macOS | 12 (Monterey)+ |
| Linux | glibc 2.35+ (Ubuntu 22.04+) dengan WebKitGTK 4.1 |

## Instalasi

Unduh dari [ccswitch.io/download](https://ccswitch.io/en/download) atau [GitHub releases](https://github.com/farion1231/cc-switch/releases). Pasang paket sesuai OS; tidak perlu langkah terminal.

## Menambahkan Triw

1. Buka CC Switch dan pilih tool di sidebar kiri (Claude Code, Codex, OpenCode, DeepSeek Harness, dll).
2. Klik **+ Add Provider**, pilih tipe **Custom / Third-party**.
3. Isi:

| Field | Nilai |
| - | - |
| Name | `Triw` |
| Base URL | lihat tabel di bawah |
| API Key | key `sk-...` Triw Anda |
| Model | id persis dari `GET /v1/models` |

4. Simpan, lalu aktifkan profil dengan kontrol switch untuk tool tersebut.

## Base URL per tool

| Tool | Protokol | Base URL |
| - | - | - |
| Claude Code | Anthropic Messages | `https://router.triw.io` |
| Codex | OpenAI Chat/Responses | `https://router.triw.io/v1` |
| OpenCode | OpenAI Chat | `https://router.triw.io/v1` |
| DeepSeek Harness | OpenAI Chat | `https://router.triw.io/v1` |

CC Switch menulis config CLI-nya, jadi tool tetap berjalan walau aplikasi ditutup. Kembali ke provider lain cukup satu klik.

## Verifikasi

Jalankan CLI, ajukan satu pertanyaan pendek, lalu cek **Logs** Triw. Jika CLI melaporkan 404 atau flag tidak dikenal, bentuk base URL untuk tool itu salah — tool Anthropic memakai host, tool OpenAI memakai `/v1`.

## Catatan

* Satu entri provider per protokol: simpan profil `Triw` (host) dan `Triw v1` (dengan `/v1`) bila memakai tool dari dua keluarga.
* Profil menyimpan key secara lokal; gunakan key Triw terpisah per tool agar pencabutan tidak berdampak luas.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.