From 6ce590e0cf522898a3db4fee5ab10c6d5a536123 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 28 Nov 2025 21:16:55 -0500 Subject: [PATCH] docs(readme): add Zero-Config OAuth Providers section - Add OAuth section with gemini, codex, agy providers - Include provider table with accurate model mappings - Add authentication commands (--auth, --headless, --logout) - Add OAuth vs API key comparison table - Add troubleshooting section for timeout, port, binary issues - Credit CLIProxyAPI as underlying technology --- README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/README.md b/README.md index 351d1eb5..93b367b8 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,73 @@ irm ccs.kaitran.ca/install | iex
+## Zero-Config OAuth Providers + +**New in v5.0.0**: Instant access to premium models with zero API key setup. Browser-based OAuth authentication. + +> Powered by [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI) - the universal API proxy for AI models. + +| Provider | Default Model | Opus | Haiku | Example | +|:---------|:--------------|:-----|:------|:--------| +| **Gemini** | gemini-2.5-pro | gemini-2.5-pro | gemini-2.5-flash | `ccs gemini "explain code"` | +| **Codex** | gpt-5.1-codex-max | gpt-5.1-codex-max-high | gpt-5.1-codex-mini-high | `ccs codex "implement API"` | +| **Antigravity** | gemini-3-pro-preview | gemini-3-pro-preview | gemini-2.5-flash | `ccs agy "review architecture"` | + +**First Run**: Browser opens for authentication. Tokens cached in `~/.ccs/cliproxy/auth//`. + +**Subsequent Runs**: Instant - no re-auth needed until token expires. + +### Authentication Commands + +```bash +# Interactive OAuth (default) - browser opens, complete auth +ccs gemini + +# Authenticate only (save tokens, don't start session) +ccs gemini --auth +ccs codex --auth + +# Headless mode (for SSH/servers without browser) +ccs agy --headless # Displays URL, paste in browser elsewhere + +# Logout (clear tokens) +ccs gemini --logout +``` + +### OAuth vs API Key Models + +| Feature | OAuth Providers
(gemini, codex, agy) | API Key Models
(glm, kimi) | +|:--------|:----------------------------------------|:------------------------------| +| **Setup** | Browser auth on first run | Edit settings.json, add API key | +| **Token Storage** | `~/.ccs/cliproxy/auth//` | `~/.ccs/*.settings.json` | +| **Renewal** | Automatic (OAuth refresh tokens) | Manual (update key when expired) | +| **Binary** | Auto-downloads CLIProxyAPI (~15MB) | No additional binaries | +| **Port** | 8317 (configurable) | N/A | +| **Best For** | Quick testing, no key management | Production, explicit key control | + +### Troubleshooting OAuth + +**OAuth timeout (2min limit)**: +```bash +# If browser doesn't load in time: +ccs gemini --auth --headless # Get URL manually +``` + +**Port 8317 conflict**: +```bash +ccs doctor # Check port availability +# Error: "Port 8317 in use" +lsof -ti:8317 | xargs kill # Unix: kill process using port +``` + +**Binary download failures**: +```bash +ccs doctor # Shows binary status + version +# Manual download: https://github.com/router-for-me/CLIProxyAPI/releases +``` + +
+ ### Configuration (Auto-created) **CCS automatically creates configuration during installation** (via npm postinstall script).