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

# CC-Switch 연동

> CC-Switch에서 APIAny.AI API Key, Base URL, 추천 모델을 설정합니다.

[CC-Switch](https://github.com/farion1231/cc-switch)는 환경 변수 또는 로컬 설정 파일을 통해 APIAny.AI에 연결할 수 있습니다. 터미널, 에디터, 자동화된 개발 워크플로에서 사용하기에 적합합니다.

## 준비 사항

* CC-Switch가 설치되어 있습니다.
* [APIAny.AI 대시보드](https://apiany.ai/ko/dashboard/api-keys)에서 API Key를 생성했습니다.
* 사용할 모델 ID를 선택했습니다.

## Claude Code 설정

CC-Switch에서 Claude Code로 전환한 다음 설정을 추가하고 다음을 입력합니다.

| 필드           | 값                    |
| ------------ | -------------------- |
| Name         | `APIAny.AI`          |
| Endpoint URL | `https://apiany.ai`  |
| API Key      | `sk-xxxxxxxxxxxx`    |
| API Format   | `Anthropic Messages` |

## Codex 설정

auth.json을 다음과 같이 작성합니다.

```json theme={null}
{
  "OPENAI_API_KEY": "sk-xxxxxxxxxxxx"
}
```

그런 다음 config.toml을 다음과 같이 작성합니다.

```toml theme={null}
model = "gpt-5.5"
model_provider = "apiany"

[model_providers.apiany]
name = "APIAny.AI"
base_url = "https://apiany.ai/v1"
wire_api = "responses"
requires_openai_auth = true
```

설정을 저장한 후 CC-Switch에서 APIAny.AI를 활성화합니다.

## 추천 모델

| 모델 ID               | 적합한 용도                                   |
| ------------------- | ---------------------------------------- |
| `gpt-5.5`           | 복잡한 추론, 코딩, 프로덕션 워크플로에 가장 먼저 추천하는 모델입니다. |
| `gpt-5.4`           | 고급 대화 및 에이전트 작업에 적합한 강력한 범용 모델입니다.       |
| `gpt-5.4-mini`      | 속도, 품질, 비용의 균형이 잡혀 일상적인 사용에 적합합니다.       |
| `gpt-4o-mini`       | 간단한 대화, 번역, 경량 작업에 적합하며 빠르고 경제적입니다.      |
| `claude-sonnet-4-6` | 장문 작성 및 코딩 워크플로를 위한 Claude 호환 모델 ID입니다.  |
| `gemini-3.5-flash`  | 빠른 멀티모달 사용을 위한 Gemini 호환 모델 ID입니다.       |

## 단계별 스크린샷

아래 스크린샷은 CC-Switch의 주요 설정 화면을 보여줍니다. 스크린샷의 API 주소와 이름은 APIAny.AI에 맞게 조정되어 있습니다.

### 1단계

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cc-switch/step-2.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=2575e6a082e66bcfd880536782dff669" alt="CC-Switch setup screenshot 1" width="2024" height="1480" data-path="images/integrations/cc-switch/step-2.png" />

### 2단계

<img src="https://mintcdn.com/lingquai/Twqr-r52XykGBMod/images/integrations/cc-switch/step-1.png?fit=max&auto=format&n=Twqr-r52XykGBMod&q=85&s=6b64a3aa7c2ad95c9ad50f2ec13a68f0" alt="CC-Switch setup screenshot 2" width="2224" height="1676" data-path="images/integrations/cc-switch/step-1.png" />

## 문제 해결

### 401 또는 인증 오류

API Key가 완전히 복사되었는지, 앞뒤에 불필요한 공백이 없는지, APIAny.AI 대시보드에서 활성화되어 있는지 확인하세요.

### 모델이 앱에 표시되지 않음

모델 ID를 직접 입력하고 [모델 카탈로그](/ko/models/chat-models)에서 사용 가능한지 확인하세요. 일부 도구는 모델 목록을 자동으로 가져오지 않습니다.

### 어떤 Base URL을 사용해야 하나요?

OpenAI 호환 설정에서는 일반적으로 `https://apiany.ai/v1`을, Claude 호환 설정에서는 일반적으로 `https://apiany.ai`를 사용합니다. 전체 엔드포인트 주소를 요구하는 도구에서는 `https://apiany.ai/v1/chat/completions`를 사용하세요.
