# 🤖 Claude-All Models

Folder ini berisi konfigurasi untuk semua AI providers yang didukung claude-all.

## 📁 Struktur

```
models/
├── gemini/
│   └── config.json
├── openai/
│   └── config.json
├── glm/
│   └── config.json
├── minimax/
│   └── config.json
├── letta/
│   └── config.json
└── ...
```

## ✏️ Cara Edit Model

### 1. Tambah Model Baru ke Provider yang Ada

Edit `models/<provider>/config.json`, tambah di array `models`:

```json
{
  "models": [
    {
      "id": "model-id-untuk-api",
      "name": "Nama Display",
      "description": "Deskripsi model"
    }
  ]
}
```

### 2. Contoh: Tambah GLM-4.7

Edit `models/glm/config.json`:

```json
{
  "name": "ZhipuAI GLM",
  "models": [
    {
      "id": "glm-4",
      "name": "GLM-4",
      "description": "Latest flagship model"
    },
    {
      "id": "glm-4-flash",
      "name": "GLM-4 Flash",
      "description": "Fast variant"
    },
    {
      "id": "glm-5",
      "name": "GLM-5",
      "description": "Latest flagship"
    }
  ]
}
```

### 3. Tambah Provider Baru

1. Buat folder: `mkdir models/newprovider`
2. Buat config:

```json
{
  "name": "New Provider",
  "description": "Description",
  "api_base": "https://api.newprovider.com/v1",
  "auth_type": "api_key",
  "key_file": "~/.newprovider_api_key",
  "key_url": "https://newprovider.com/api-keys",
  "models": [
    {
      "id": "model-1",
      "name": "Model 1",
      "description": "Description"
    }
  ]
}
```

## 🔑 Auth Types

| Type | Description |
|------|-------------|
| `api_key` | Simple API key authentication |
| `oauth` | OAuth2 flow (Gemini, OpenAI) |
| `bearer` | Bearer token |

## 📋 Provider List

| Provider | Models | Auth |
|----------|--------|------|
| Gemini | gemini-2.5-flash, gemini-2.5-pro, etc | oauth/api_key |
| OpenAI | gpt-4o, gpt-4-turbo, etc | oauth/api_key |
| GLM | glm-4, glm-4-flash, glm-4-air | api_key |
| MiniMax | abab6.5-chat, etc | api_key |
| Letta | letta-free, letta-pro | api_key |
| Perplexity | llama-3.1-sonar-small, etc | api_key |
| Groq | llama-3.2-90b, mixtral-8x7b, etc | api_key |
| Ollama | llama3, mistral, codellama, etc | local |
| xAI | grok-2, grok-2-mini | api_key |
| DeepSeek | deepseek-chat, deepseek-coder | api_key |
| Cohere | command-r-plus, command-r | api_key |
| Mistral | mistral-large, mistral-small | api_key |
| Moonshot | moonshot-v1-8k, moonshot-v1-32k | api_key |
| Qwen | qwen-max, qwen-plus | api_key |
| OpenRouter | any model via openrouter | api_key |

## 🚀 Usage

```bash
# List available models
claude-all list

# Use specific provider
claude-all gemini
claude-all glm
claude-all minimax

# Add new model interactively
claude-all add-model
```
