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

# Provider Overview

> Compare CCS providers: CLIProxy OAuth providers, Claude accounts, and API profiles

# Provider Overview

CCS supports CLIProxy OAuth providers plus Claude accounts and API
profiles (including Alibaba Coding Plan, OpenRouter, Novita, GLM, MiniMax, and
more). This guide helps you choose the right provider for your needs.

## Provider Categories

> [card] OAuth Providers
>
> **OAuth Providers** - Zero API keys, browser callback, device-code, or browser-polling login
>
> Perfect for beginners and quick setup

> [card] Claude Accounts
>
> **Multiple Subscriptions** - Isolated Claude instances
>
> Work/personal separation, concurrent sessions

> [card] API Profiles
>
> **Direct API Access** - Bring your own keys
>
> Custom endpoints, self-hosted models

## Quick Decision Guide

**Choose your path:**

**1. New to CCS? Start with OAuth**

**Recommended:** Codex for browser OAuth, or Kiro if you want a free Builder ID path

```bash theme={null}
ccs codex "your first query"
# Browser opens → Sign in → Start coding
```

* No API keys needed
* Good baseline for your first session
* Auto token refresh on supported providers
* Multi-account support

**2. Have Claude Pro/Team? Use Claude Accounts**

**Best for:** Multiple Claude subscriptions

```bash theme={null}
ccs auth create work
ccs auth create personal
# Use both simultaneously in different terminals
```

* Work/personal isolation
* Concurrent sessions
* Team collaboration
* Existing subscription leverage

**3. Need Custom Endpoints? Use API Profiles**

**Best for:** Self-hosted models, custom APIs

```bash theme={null}
ccs config
# Add API profile with custom endpoint + API key
```

* Full control over endpoints
* Self-hosted model support
* Custom headers/authentication
* Built-in presets such as OpenRouter, Novita, and Alibaba

## Authentication Methods Comparison

### Browser Callback vs Device Code vs Browser Polling

| Feature | Browser Callback | Device Code | Browser Polling |
| - | - | - | - |
| **Setup** | Browser opens and returns through a local callback | Manual URL/code or device login | Browser opens and CCS polls upstream auth completion |
| **Headless Servers** | Usually pair with `--headless` or `--paste-callback` | Native support | Limited; best on desktop/browser-capable machines |
| **Providers** | Gemini, Codex, Antigravity, iFlow, Claude, GitLab | Kimi, Kiro (default), Kilo, Qoder, xAI (Grok), deprecated GHCP compatibility | Cursor, CodeBuddy |
| **Best For** | Local development, desktop | CI/CD, remote servers | Provider-specific browser-driven flows |

Kiro also supports optional auth-code and IDC flows via `--kiro-auth-method`.
GitLab Duo also supports PAT login via `--gitlab-token-login`.

**Example: Browser Callback Flow**

```bash theme={null}
ccs codex "task"
# → Browser opens → Provider login → Token cached → Session starts
```

**Example: Device Code Flow**

```bash theme={null}
ccs xai --auth
# → Device code displayed → Copy URL/code → Token cached
```

**Example: Browser Polling Flow**

```bash theme={null}
ccs cursor --auth
# → Browser opens → Upstream auth completes → CCS detects the session
```

## All Providers Comparison

### Providers At A Glance

> [tab] Gemini
>
> **Google Gemini** - Google OAuth route
>
> | Feature | Details |
> | - | - |
> | **Models** | Gemini 3 Pro (High/Preview), Gemini 2.5 Pro, Gemini 3 Flash |
> | **Free Tier** | ✅ Yes (Gemini 2.5 Pro) |
> | **Auth Method** | Browser OAuth (Google SSO) |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Quota Display** | ✅ Auto project rotation |
> | **Token Refresh** | ✅ Automatic (CLIProxy-managed) |
> | **Best For** | Beginners, free tier users, fast responses |
>
> For command examples and setup flow, open the dedicated Gemini provider page.
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/gemini.md)

> [tab] Kiro
>
> **Kiro (AWS)** - AWS device code by default, optional browser auth flows
>
> | Feature | Details |
> | - | - |
> | **Models** | Amazon CodeWhisperer (AWS) |
> | **Free Tier** | ✅ Yes (Builder ID) |
> | **Auth Method** | AWS device code by default, plus optional auth-code/Google flows |
> | **Multi-Account** | ✅ Yes (filename-based) |
> | **Model Picker** | ❌ No (single model) |
> | **Token Import** | ✅ From Kiro IDE |
> | **Browser Mode** | Normal (default), incognito disabled on Linux |
> | **Best For** | AWS users, Kiro IDE users |
>
> ```bash theme={null}
> ccs kiro "your query"
> ccs kiro --import             # Import from Kiro IDE
> ccs kiro --no-incognito       # Normal browser (Linux fix)
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/kiro.md)

> [tab] GitHub Copilot
>
> **GitHub Copilot (GHCP)** - Deprecated device-code OAuth compatibility via CLIProxy
>
> > [!WARNING]
> >
> > GitHub Copilot is kept for existing setups only. GitHub usage-based Copilot
> > billing begins June 1, 2026; prefer Codex or another active provider for
> > new work.
>
> | Feature | Details |
> | - | - |
> | **Models** | GitHub Copilot models |
> | **Free Tier** | ❌ No (requires subscription) |
> | **Auth Method** | Device code OAuth |
> | **Multi-Account** | ✅ Yes (GitHub username) |
> | **Device Code** | ✅ Built-in default flow |
> | **Quota Display** | ✅ Yes (`--quota`) |
> | **Best For** | Existing Copilot setups that still need compatibility |
>
> ```bash theme={null}
> # Start GHCP and complete the device-code prompt
> ccs ghcp "your query"
>
> # Check quota
> ccs ghcp --quota
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/ghcp.md)

> [tab] Codex
>
> **OpenAI Codex** - OpenAI coding models via OAuth
>
> | Feature | Details |
> | - | - |
> | **Models** | GPT-5 Codex, GPT-5 Codex Mini, GPT-5.2 Codex, GPT-5.3 Codex, GPT-5.4 |
> | **Free Tier** | ✅ Cross-plan-safe models available; paid plans unlock paid-only model IDs |
> | **Auth Method** | Browser OAuth (OpenAI) |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Best For** | OpenAI users who want Codex via OAuth |
>
> ```bash theme={null}
> ccs codex "your query"
> ccs codex --auth --add        # Add account
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/codex.md)

> [tab] xAI (Grok)
>
> **xAI (Grok)** - CLIProxy device-code OAuth
>
> | Feature | Details |
> | - | - |
> | **Provider ID** | `xai`; `grok` is a CLI alias |
> | **Models** | Live catalog with cached and static fallback |
> | **Auth Method** | Device code OAuth; no callback port |
> | **Multi-Account** | ✅ Yes (email or filename-derived ID) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Quota Display** | ❌ Not supported |
> | **Token Refresh** | ✅ CLIProxy-managed |
>
> ```bash theme={null}
> ccs xai --auth
> ccs xai --accounts
> ccs grok "your query" # alias for ccs xai
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/xai.md)

> [tab] Kimi
>
> **Kimi (Moonshot)** - Device-code OAuth via CLIProxy
>
> | Feature | Details |
> | - | - |
> | **Models** | Kimi K2.5, Kimi K2 Thinking, Kimi K2 |
> | **Auth Method** | Device code OAuth |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Token Refresh** | ✅ Auto via CLIProxy |
> | **Best For** | Moonshot users who want Kimi without an API key |
>
> ```bash theme={null}
> ccs kimi "your query"
> ccs kimi --accounts
> ccs kimi --use work
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/kimi.md)

> [tab] Antigravity
>
> **Antigravity (AGY)** - Subscription multi-model route
>
> | Feature | Details |
> | - | - |
> | **Models** | Claude Opus 4.6 Thinking (default), Claude Opus 4.6, Claude Sonnet 4.6 Thinking, Claude Sonnet 4.6, Gemini 3 Pro |
> | **Free Tier** | ❌ No (subscription required) |
> | **Auth Method** | Browser OAuth |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Best For** | Premium users, multi-model access |
>
> For command examples and setup flow, open the dedicated Antigravity provider page.
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/agy.md)

> [tab] Claude
>
> **Claude (Anthropic)** - Direct Anthropic OAuth
>
> | Feature | Details |
> | - | - |
> | **Models** | Claude models via Anthropic |
> | **Free Tier** | ❌ No (requires subscription) |
> | **Auth Method** | Browser OAuth (Anthropic SSO) |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | ✅ Interactive `--config` |
> | **Token Refresh** | ✅ Auto |
> | **Best For** | Anthropic subscribers, direct Claude access |
>
> ```bash theme={null}
> ccs claude "your query"
> ccs claude --auth --add       # Add account
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/claude.md)

> [tab] Qwen
>
> **Qwen3 Coder** - Use the API-key Alibaba Coding Plan route
>
> | Feature | Details |
> | - | - |
> | **Models** | Qwen3 Coder Plus, Qwen3 Coder Flash |
> | **Free Tier** | ❌ No (subscription required) |
> | **Auth Method** | API key |
> | **Multi-Account** | Profile-based |
> | **Model Picker** | ❌ No (single model) |
> | **Best For** | Specialized coding tasks |
>
> ```bash theme={null}
> ccs albb "your query"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/api/alibaba.md)

> [tab] iFlow
>
> **iFlow** - Various models
>
> | Feature | Details |
> | - | - |
> | **Models** | Multiple models available |
> | **Free Tier** | ❌ No (subscription required) |
> | **Auth Method** | Browser OAuth |
> | **Multi-Account** | ✅ Yes (email-based) |
> | **Model Picker** | Check provider for details |
> | **Best For** | iFlow subscribers |
>
> ```bash theme={null}
> ccs iflow "your query"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/oauth/iflow.md)

> [tab] MiniMax
>
> **MiniMax** - Long-context specialist
>
> | Feature | Details |
> | - | - |
> | **Models** | MiniMax with 1M token context |
> | **Free Tier** | ❌ No (API key required) |
> | **Auth Method** | API Key (via API Profiles) |
> | **Multi-Account** | ✅ Yes (profile-based) |
> | **Model Picker** | ❌ No (single model) |
> | **Context Window** | 1M tokens (largest available) |
> | **Best For** | Large codebase analysis, document processing |
>
> ```bash theme={null}
> # Quick setup with preset
> ccs api create mm --preset mm
>
> # Use profile
> ccs mm "analyze large document"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/api/minimax.md)

> [tab] Alibaba Coding Plan
>
> **Alibaba Coding Plan** - Qwen3 Coder via API key
>
> | Feature | Details |
> | - | - |
> | **Models** | qwen3-coder-plus (default), qwen3-coder-flash |
> | **Free Tier** | ❌ No (API key required) |
> | **Auth Method** | API Key (`sk-sp-...`) |
> | **Multi-Account** | ✅ Yes (profile-based) |
> | **Context Window** | 1M tokens |
> | **Best For** | Cost-effective coding tasks, Alibaba Cloud users |
>
> ```bash theme={null}
> # Quick setup with preset
> ccs api create --preset alibaba-coding-plan
>
> # Use default profile name
> ccs albb "implement this feature"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/api/alibaba.md)

> [tab] Novita AI
>
> **Novita AI** - Anthropic-compatible hosted endpoint
>
> | Feature | Details |
> | - | - |
> | **Models** | Default preset uses `deepseek/deepseek-v3.2`; other Novita-supported Anthropic-compatible models can be configured manually |
> | **Free Tier** | ❌ No (API key required) |
> | **Auth Method** | API Key |
> | **Multi-Account** | ✅ Yes (profile-based) |
> | **Model Picker** | ✅ Via API Profile editor |
> | **Best For** | Fast hosted setup when you want a built-in Anthropic-compatible preset |
>
> ```bash theme={null}
> ccs api create --preset novita
> ccs novita "summarize this incident"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/api/novita.md)

> [tab] Requesty
>
> **Requesty** - OpenAI-compatible LLM gateway
>
> | Feature | Details |
> | - | - |
> | **Models** | Default preset uses `openai/gpt-4o-mini`; other Requesty provider/model IDs can be configured manually |
> | **Free Tier** | ❌ No (API key required) |
> | **Auth Method** | API Key |
> | **Multi-Account** | ✅ Yes (profile-based) |
> | **Model Picker** | ✅ Via API Profile editor |
> | **Best For** | Routing through Requesty's OpenAI-compatible model gateway |
>
> ```bash theme={null}
> ccs api create --preset requesty
> ccs requesty "summarize this incident"
> ```
>
> [Full Documentation →](https://docs.ccs.kaitran.ca/providers/api/requesty.md)

### Claude Accounts

Run multiple Claude subscriptions simultaneously with separate account profiles:

| Feature | Details |
| - | - |
| **Setup** | `ccs auth create <profile>` |
| **Multi-Account** | ✅ Unlimited profiles |
| **Concurrent Sessions** | ✅ Different profiles use separate default account directories |
| **Session Isolation** | ✅ Separate by default; reusing the same profile reuses the same directory |
| **Subscription** | Requires existing Claude Pro/Team |
| **Best For** | Work/personal separation, team collaboration |

**Example:**

```bash theme={null}
# Create profiles
ccs auth create work
ccs auth create personal

# Use simultaneously
ccs work "implement feature"      # Terminal 1
ccs personal "side project"        # Terminal 2 (concurrent)
```

[Full Documentation →](https://docs.ccs.kaitran.ca/providers/concepts/claude-accounts.md)

### API Profiles

Direct API access with custom endpoints and keys:

| Feature | Details |
| - | - |
| **Setup** | `ccs config` → Add API profile |
| **Custom Endpoints** | ✅ Full control |
| **Self-Hosted Models** | ✅ Supported |
| **API Key Management** | Manual (you provide keys) |
| **Model Configuration** | Provider-dependent |
| **Best For** | Custom APIs, self-hosted models, advanced users |

**Example:**

```bash theme={null}
# Configure via dashboard
ccs config

# Add profile:
# - Name: myapi
# - Endpoint: https://api.example.com/v1/chat
# - API Key: sk-...
# - Model: custom-model-name

# Use profile
ccs myapi "your query"
```

[Full Documentation →](https://docs.ccs.kaitran.ca/providers/concepts/api-profiles.md)

### Additional Current CLIProxy OAuth Providers

These providers are current and supported in CCS today even though they arrived
after the older nine-provider docs pass:

| Provider | Auth Model | Backend | Notes | Docs |
| - | - | - | - | - |
| xAI (Grok) | Device code | `original` or `plus` | canonical `xai`; `grok` is a CLI alias | [xAI Provider](https://docs.ccs.kaitran.ca/providers/oauth/xai.md) |
| Cursor | Browser polling | `plus` | current `ccs cursor` provider path; different from the deprecated local bridge | [Cursor Provider](https://docs.ccs.kaitran.ca/providers/oauth/cursor.md) |
| GitLab Duo | Browser OAuth or PAT | `plus` | supports `--gitlab-token-login` and `--gitlab-url` | [GitLab Duo Provider](https://docs.ccs.kaitran.ca/providers/oauth/gitlab.md) |
| CodeBuddy | Browser polling | `plus` | auth and routing via CLIProxy | [CodeBuddy Provider](https://docs.ccs.kaitran.ca/providers/oauth/codebuddy.md) |
| Kilo AI | Device code | `plus` | CLIProxy-backed device-code provider | [Kilo AI Provider](https://docs.ccs.kaitran.ca/providers/oauth/kilo.md) |
| Qoder | Device code | `plus` | Qoder coding provider with interactive model picker | [Qoder Provider](https://docs.ccs.kaitran.ca/providers/oauth/qoder.md) |

## Feature Matrix

### All Providers Feature Comparison

| Provider | Free Tier | Multi-Account | Model Picker | Quota Display | Token Refresh | Headless Mode |
| - | - | - | - | - | - | - |
| **Gemini** | ✅ | ✅ | ✅ | ✅ | ✅ Proactive | ✅ |
| **Kiro** | ✅ | ✅ | ❌ | ❌ | ✅ Auto | ✅ |
| **Kimi** | Varies | ✅ | ✅ | ❌ | ✅ Auto | ✅ Device Code |
| **GHCP (deprecated)** | ❌ | ✅ | ❌ | ✅ | ✅ Auto | ✅ Device Code |
| **Codex** | ✅ Limited | ✅ | ✅ | ✅ | ✅ Auto | ✅ |
| **xAI (Grok)** | Provider-dependent | ✅ | ✅ | ❌ | ✅ CLIProxy-managed | ✅ Device Code |
| **Antigravity** | ❌ | ✅ | ✅ | ✅ | ✅ Auto | ✅ |
| **Claude** | ❌ | ✅ | ✅ | ❌ | ✅ Auto | ✅ |
| **iFlow** | ❌ | ✅ | ❌ | ❌ | ✅ Auto | ✅ |
| **Cursor** | Varies | ✅ | ❌ | ❌ | ✅ Auto | Browser-driven |
| **GitLab Duo** | Varies | ✅ | ❌ | ❌ | ✅ Auto | ✅ |
| **CodeBuddy** | Varies | ✅ | ❌ | ❌ | ✅ Auto | Browser-driven |
| **Qoder** | Varies | ✅ | ✅ | ❌ | ❌ Re-auth | ✅ Device Code |
| **Kilo AI** | Varies | ✅ | ❌ | ❌ | Manual re-auth | ✅ Device Code |
| **MiniMax** | ❌ | ✅ | ❌ | ❌ | Manual | ✅ |
| **Alibaba Coding Plan** | ❌ | ✅ | ❌ | ❌ | Manual | ✅ |
| **Novita AI** | ❌ | ✅ | ✅ | ❌ | Manual | ✅ |
| **Claude Accounts** | ❌ | ✅ | ❌ | ❌ | N/A | N/A |
| **API Profiles** | Varies | ✅ | Varies | ❌ | Manual | ✅ |

### Authentication Features

| Provider | Auth Method | Account ID | Token Import | Browser Control |
| - | - | - | - | - |
| **Gemini** | Browser OAuth | Email | ❌ | Incognito default |
| **Kiro** | Device code + optional browser auth | Filename | ✅ IDE | Normal (no incognito) |
| **Kimi** | Device Code | Email | ❌ | N/A |
| **GHCP (deprecated)** | Device Code | GitHub username | ❌ | N/A |
| **Codex** | Browser OAuth | Email | ❌ | Incognito default |
| **xAI (Grok)** | Device Code | Email / filename-derived | ❌ | No callback |
| **Antigravity** | Browser OAuth | Email | ❌ | Incognito default |
| **Claude** | Browser OAuth | Email | ❌ | Incognito default |
| **iFlow** | Browser OAuth | Email | ❌ | Incognito default |
| **Cursor** | Browser polling | Provider-managed | ❌ | No local callback |
| **GitLab Duo** | Browser OAuth or PAT | GitLab user | ✅ PAT | Paste-callback for self-hosted |
| **CodeBuddy** | Browser polling | Provider-managed | ❌ | No local callback |
| **Kilo AI** | Device Code | Provider-managed | ❌ | N/A |
| **MiniMax** | API Key | Profile name | ❌ | N/A |
| **Alibaba Coding Plan** | API Key | Profile name | ❌ | N/A |
| **Novita AI** | API Key | Profile name | ❌ | N/A |
| **Claude Accounts** | OAuth (Claude) | Profile name | ❌ | N/A |
| **API Profiles** | API Key | Profile name | ❌ | N/A |

## Provider Selection Guide

### By Use Case

> [card] Beginner (First Time)
>
> **→ Codex or Kiro**
>
> * No API keys needed
> * Good first-run coverage in CCS docs
> * Codex works well for browser OAuth
> * Kiro offers a free Builder ID route

> [card] Work/Personal Separation
>
> **→ Claude Accounts**
>
> * Isolated sessions
> * Concurrent use
> * Separate subscriptions
> * Professional workflow

> [card] CI/CD Pipeline
>
> **→ GHCP** (deprecated compatibility, device code)
>
> * Headless-friendly
> * No browser needed
> * Scriptable auth
> * Quota management

> [card] Free Tier Only
>
> **→ Kiro**
>
> * CodeWhisperer via AWS Builder ID
> * Device-code friendly
> * No paid subscription required

> [card] Premium Models
>
> **→ Claude Accounts or Codex**
>
> * Claude Pro/Max account workflows
> * Codex paid-plan model access
> * Strong review and implementation coverage
> * Clear first-party documentation

> [card] Long-Context Tasks
>
> **→ MiniMax**
>
> * 1M token context window
> * Large codebase analysis
> * Document processing
> * API key authentication

> [card] Self-Hosted Models
>
> **→ API Profiles**
>
> * Custom endpoints
> * Local LLMs
> * Full control
> * Privacy-focused

> [card] AWS Ecosystem
>
> **→ Kiro**
>
> * CodeWhisperer integration
> * AWS Builder ID device code by default
> * IDE token import
> * Free Builder ID

> [card] OpenAI Workflow
>
> **→ Codex**
>
> * Cross-plan-safe GPT-5 Codex defaults
> * GPT-5.3 Codex / GPT-5.2 Codex when available
> * OpenAI ecosystem

> [card] Alibaba Cloud / Cost-Efficient Coding
>
> **→ Alibaba Coding Plan**
>
> * Qwen3 Coder Plus/Flash
> * 1M token context
> * $1.00/$5.00 per M tokens
> * `ccs api create --preset alibaba`

### By Authentication Preference

**Prefer Browser OAuth?**

* Gemini, Codex, Antigravity, iFlow, Claude, GitLab Duo, plus optional Kiro auth-code / Google flows

**Prefer Device Code?**

* Kimi, Kiro (default), Kilo AI, Qoder, xAI (Grok), deprecated GHCP compatibility

**Prefer Browser Polling?**

* Cursor, CodeBuddy

**Prefer PAT / Token Login?**

* GitLab Duo (`--gitlab-token-login`)

**Prefer API Keys?**

* API Profiles

**Prefer No External Auth?**

* Claude Accounts (uses Claude CLI's built-in OAuth)

### By Cost Model

**Free Tier Available:**

* **Gemini** - Gemini 2.5 Pro (free Google account)
* **Kiro** - CodeWhisperer (AWS Builder ID)

**Requires Subscription:**

* **Gemini 3 Pro** - Paid Google account
* **GHCP** - Deprecated GitHub Copilot compatibility for existing setups
* **Codex paid / preview models** - Paid Codex plan required for `gpt-5.5` and `gpt-5.3-codex`; `gpt-5.3-codex-spark` is research preview for ChatGPT Pro subscribers
* **Antigravity** - Subscription
* **Claude** - Anthropic subscription
* **iFlow** - Subscription

**Use Existing Subscription:**

* **Claude Accounts** - Claude Pro/Team

**Bring Your Own:**

* **API Profiles** - You manage costs
* **Alibaba Coding Plan** - Qwen3 Coder (from \$0.30/M input)
* **Novita AI** - Anthropic-compatible preset with hosted routing
* **Requesty** - OpenAI-compatible gateway preset
* **OpenRouter** - 300+ models, pay per use

## Multi-Account Management

All OAuth providers support multiple accounts:

> [tab] Email-Based (Most Providers)
>
> **Codex, Gemini, Antigravity, iFlow**
>
> ```bash theme={null}
> # Add account
> ccs codex --auth --add
>
> # List accounts
> ccs codex --accounts
>
> # Output:
> # * john (john@gmail.com) - default
> #   work (alice@company.com)
>
> # Switch account
> ccs codex --use work
>
> # Rename account
> ccs codex --nickname personal
> ```
>
> **Account ID:** Email prefix (`john@gmail.com` → `john`)

> [tab] Username-Based (GHCP)
>
> **GitHub Copilot (deprecated compatibility)**
>
> ```bash theme={null}
> # Add account
> ccs ghcp --auth --add
>
> # List accounts
> ccs ghcp --accounts
>
> # Output:
> # * kaitranntt (GitHub) - default
> #   company-bot (GitHub)
>
> # Switch account
> ccs ghcp --use company-bot
> ```
>
> **Account ID:** GitHub username

> [tab] Filename-Based (Kiro)
>
> **Kiro (AWS CodeWhisperer)**
>
> ```bash theme={null}
> # Add account
> ccs kiro --auth --add
>
> # List accounts
> ccs kiro --accounts
>
> # Output:
> # * github-ABC123 (default)
> #   github-XYZ789
>
> # Switch account
> ccs kiro --use github-XYZ789
> ```
>
> **Account ID:** Extracted from token filename

> [tab] xAI (Email Or Filename)
>
> **xAI (Grok)**
>
> ```bash theme={null}
> ccs xai --accounts
> ccs xai --use <account>
> ```
>
> **Account ID:** Email when present in token metadata; otherwise a stable ID
> derived from the `xai-*.json` filename.

> [tab] Provider-Managed IDs
>
> **Cursor, GitLab Duo, CodeBuddy, Kilo AI**
>
> ```bash theme={null}
> ccs cursor --auth
> ccs cursor --accounts
> ccs cursor --use <account>
>
> ccs gitlab --auth --gitlab-token-login
> ccs codebuddy --auth
> ccs kilo --auth
> ```
>
> **Account ID:** Derived from the upstream provider session or token metadata.

> [tab] Profile-Based (Claude)
>
> **Claude Accounts**
>
> ```bash theme={null}
> # Create profiles
> ccs auth create work
> ccs auth create personal
>
> # List profiles
> ccs auth list
>
> # Use profiles
> ccs work "task"
> ccs personal "task"
>
> # Set default
> ccs auth default work
> ```
>
> **Account ID:** Profile name (custom)

## Storage Locations

All providers store data in `~/.ccs/`:

```
~/.ccs/
├── cliproxy/
│   ├── auth/                           # OAuth tokens
│   │   ├── gemini-john@gmail.com.json
│   │   ├── kiro-github-ABC123.json
│   │   ├── ghcp-kaitranntt.json
│   │   ├── xai-subject-one.json
│   │   └── ...
│   ├── providers/
│   │   └── cursor.settings.json        # dedicated Cursor provider settings
│   ├── accounts.json                   # Account registry (all OAuth providers)
│   └── config.yaml                     # CLIProxy configuration
├── instances/                           # Claude account profiles
│   ├── work/
│   └── personal/
├── gemini.settings.json                 # Provider-specific settings
├── agy.settings.json
├── xai.settings.json
└── config.yaml                          # Global CCS config
```

## Common Commands (All Providers)

### Authentication

```bash theme={null}
# Initial auth (browser opens)
ccs <provider> --auth

# Add new account (preserves existing)
ccs <provider> --auth --add

# Logout (clear tokens)
ccs <provider> --logout

# Headless mode (manual URL)
ccs <provider> --headless
```

### Account Management

```bash theme={null}
# List all accounts
ccs <provider> --accounts

# Switch default account
ccs <provider> --use <nickname>

# Rename current account
ccs <provider> --nickname <new-name>
```

### Execution

```bash theme={null}
# Execute query (interactive session)
ccs <provider> "your prompt"

# One-shot mode
ccs <provider> "quick question" --one-shot
```

### Configuration

```bash theme={null}
# Provider-specific config (supported providers only)
ccs codex --config
ccs claude --config
ccs xai --config

# Global dashboard
ccs config
```

## Provider-Specific Features

### Gemini Unique Features

* ✅ Automatic CLIProxy-managed token refresh
* ✅ Auto project rotation on quota exceeded
* ✅ Interactive model picker (4 models)
* ✅ Free tier (Gemini 2.5 Pro)

### Kiro Unique Features

* ✅ Token import from Kiro IDE (`--import`)
* ✅ Browser mode control (`--no-incognito`)
* ✅ AWS Builder ID device code by default
* ✅ Free tier (Builder ID)

### GHCP Deprecated Compatibility Features

* ✅ Built-in device-code OAuth flow
* ✅ Quota display (`--quota`)
* ✅ Device code for headless servers
* ✅ GitHub integration

### More Current CLIProxy Providers

* ✅ **Cursor** provider path lives under `ccs cursor --auth`
* ✅ **GitLab Duo** supports browser OAuth and PAT login
* ✅ **CodeBuddy** is supported as a browser-polling provider
* ✅ **Kilo AI** is supported as a device-code provider
* ✅ **Qoder** is supported as a device-code provider with model picker
* ✅ **xAI (Grok)** is supported as a device-code provider; `grok` is its CLI alias

### Antigravity Unique Features

* ✅ Multi-model access (Claude + Gemini)
* ✅ Claude Opus 4.6 Thinking (latest flagship)
* ✅ Claude Sonnet 4.6 Thinking
* ✅ Interactive model picker

### Claude Accounts Unique Features

* ✅ Concurrent sessions (different profiles)
* ✅ Separate account directories by default
* ✅ Unlimited profiles
* ✅ Work/personal separation

## Next Steps

> [card] [Gemini Provider](https://docs.ccs.kaitran.ca/providers/oauth/gemini.md)
>
> Free tier, proactive refresh, 4 models

> [card] [Kiro Provider](https://docs.ccs.kaitran.ca/providers/oauth/kiro.md)
>
> AWS CodeWhisperer, IDE import, free tier

> [card] [GHCP Provider (Deprecated)](https://docs.ccs.kaitran.ca/providers/oauth/ghcp.md)
>
> Compatibility path, device code, quota display

> [card] [Codex Provider](https://docs.ccs.kaitran.ca/providers/oauth/codex.md)
>
> GPT-5 Codex defaults, paid-plan models, plan-aware fallbacks

> [card] [xAI (Grok) Provider](https://docs.ccs.kaitran.ca/providers/oauth/xai.md)
>
> Device-code OAuth, `xai` provider ID, `grok` CLI alias

> [card] [Antigravity Provider](https://docs.ccs.kaitran.ca/providers/oauth/agy.md)
>
> Claude Opus 4.6 Thinking, multi-model picker

> [card] [Claude Provider](https://docs.ccs.kaitran.ca/providers/oauth/claude.md)
>
> Direct Anthropic OAuth access

> [card] [Alibaba Coding Plan](https://docs.ccs.kaitran.ca/providers/api/alibaba.md)
>
> Qwen3 Coder via API key

> [card] [iFlow Provider](https://docs.ccs.kaitran.ca/providers/oauth/iflow.md)
>
> Various models available

> [card] [Cursor Provider](https://docs.ccs.kaitran.ca/providers/oauth/cursor.md)
>
> Current CLIProxy Cursor provider path

> [card] [GitLab Duo](https://docs.ccs.kaitran.ca/providers/oauth/gitlab.md)
>
> Browser OAuth or PAT login

> [card] [CodeBuddy](https://docs.ccs.kaitran.ca/providers/oauth/codebuddy.md)
>
> Tencent CodeBuddy provider

> [card] [Kilo AI](https://docs.ccs.kaitran.ca/providers/oauth/kilo.md)
>
> CLIProxy device-code provider

> [card] [Qoder Provider](https://docs.ccs.kaitran.ca/providers/oauth/qoder.md)
>
> Qoder coding provider

> [card] [MiniMax Provider](https://docs.ccs.kaitran.ca/providers/api/minimax.md)
>
> 1M context window, long-context tasks

> [card] [Novita Provider](https://docs.ccs.kaitran.ca/providers/api/novita.md)
>
> Anthropic-compatible preset, default `deepseek/deepseek-v3.2`

> [card] [Requesty Provider](https://docs.ccs.kaitran.ca/providers/api/requesty.md)
>
> OpenAI-compatible gateway, default `openai/gpt-4o-mini`

> [card] [Claude Accounts](https://docs.ccs.kaitran.ca/providers/concepts/claude-accounts.md)
>
> Multiple subscriptions, concurrent sessions

> [card] [API Profiles](https://docs.ccs.kaitran.ca/providers/concepts/api-profiles.md)
>
> Custom endpoints, self-hosted models

> [card] [Alibaba Coding Plan](https://docs.ccs.kaitran.ca/providers/api/alibaba.md)
>
> Qwen3 Coder, 1M context, cost-effective

## FAQ

> [accordion] Can I use multiple providers simultaneously?
>
> **Yes!** Different providers are the simplest way to avoid reusing the same provider or proxy lane:
>
> ```bash theme={null}
> # Terminal 1
> ccs codex "task A"
>
> # Terminal 2
> ccs kimi "task B"
>
> # No conflicts
> ```

> [accordion] Which provider is best for beginners?
>
> **Kiro or Codex** - pick the one that matches the account you already have:
>
> ```bash theme={null}
> ccs codex "your first query"
> # Browser opens → Provider login → Start coding
> ```

> [accordion] Can I switch between accounts without re-authenticating?
>
> **Yes!** All OAuth providers support multi-account with instant switching:
>
> ```bash theme={null}
> ccs codex --use work      # Switch to work account
> ccs codex --use personal  # Switch to personal
> # No re-auth needed
> ```

> [accordion] Which providers work without a browser (CI/CD)?
>
> * **GHCP** - Deprecated compatibility with built-in device-code flow
> * **xAI (Grok)** - Native device-code OAuth (`ccs xai --auth --headless`)
> * **All OAuth Providers** - Headless mode (`--headless`, copy URL manually)
> * **API Profiles** - No browser needed (API keys only)

> [accordion] Can I use the same account across multiple machines?
>
> **Yes** for OAuth providers - tokens sync automatically if you:
>
> 1. Copy `~/.ccs/cliproxy/auth/` to new machine
> 2. Re-authenticate on new machine (tokens specific to each machine)
>
> **Better:** Re-auth on each machine for security.

> [accordion] Which providers support concurrent sessions?
>
> * **Different providers:** Concurrent; usually the easiest way to keep sessions separate
> * **Same provider, different accounts:** Concurrent (if supported by backend)
> * **Claude Accounts:** Concurrent with different profiles; same profile is allowed but reuses the same account directory
> * **Same provider, same account:** Provider-specific; may reuse the same provider/proxy session instead of giving full isolation


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