iFlow Provider
Access iFlow AI models through Browser OAuth authentication. Seamless integration with Claude Code for instant model switching.Overview
The iFlow provider enables Claude Code to use iFlow’s AI platform through Browser OAuth authentication with callback server on port 11451. Provider Identifier:iflow
Command: ccs iflow
Supported Models:
- Various models available via iFlow platform
- Model selection configurable via CLIProxy settings
Authentication
First-Time Setup
- Authorization Code flow via browser callback
- Callback server spawns on port 11451
- Browser opens for iFlow OAuth consent
- Token received via HTTP callback
- Auto-refresh prevents mid-request failures
Manual Authentication
Logout
Multi-Account Support
Manage multiple iFlow accounts for different projects:Add Account
List Accounts
Switch Account
Rename Account
~/.ccs/cliproxy/accounts.json
Auto-Nicknames: Generated from email prefix (e.g., john@example.com → john)
Configuration Options
Model Settings
iFlow provider settings stored in: Path:~/.ccs/iflow.settings.json
Configuration via Dashboard:
CLIProxy Integration
iFlow integrates with unified CLIProxy config: Path:~/.ccs/cliproxy/config.yaml
Provider Routing: Requests routed to /api/provider/iflow endpoint
Concurrent Usage: Run iFlow + other providers simultaneously without conflicts
Commands
Basic Usage
Authentication Flags
| Flag | Description |
|---|---|
--auth | Trigger OAuth flow (no session) |
--logout | Clear all tokens |
--auth --add | Add new account (keep existing) |
Account Management Flags
| Flag | Description |
|---|---|
--accounts | List all accounts |
--use <nickname> | Switch default account |
--nickname <name> | Rename default account |
Storage Locations
| Path | Purpose |
|---|---|
~/.ccs/cliproxy/auth/iflow-*.json | OAuth tokens (one per account) |
~/.ccs/cliproxy/accounts.json | Account registry with nicknames |
~/.ccs/iflow.settings.json | Provider-specific settings |
~/.ccs/cliproxy/config.yaml | CLIProxy unified config |
Token Management
Storage Format:Device Code Flow Details
Why Device Code?- More secure (no callback server listening on local port)
- Works seamlessly in headless environments
- No port conflicts or firewall issues
- User completes auth on trusted device
- CCS requests device code from iFlow API
- Displays code + URL to user
- User authorizes in browser (any device)
- CCS polls iFlow API for token availability
- Token saved when authorization complete
null (no server required)
Requirements
- iFlow subscription/account
- Browser for OAuth (on any device - not necessarily same machine)
- Network access to iFlow authentication servers
Troubleshooting
Device Code Expired
Error: “Device code expired before authorization” Solution: Device codes expire after 10-15 minutes. Re-runccs iflow --auth to get new code.
Authorization Not Detected
Multi-Account Issues
Token Expiry
Tokens refresh automatically via CLIProxyAPI. If refresh fails:Model Alias Normalization
Available since v7.51.0
| Legacy Model ID | Canonical Model ID |
|---|---|
kimi-k2.5 | kimi-k2 |
deepseek-v3.2-chat | deepseek-v3.2 |
glm-4.7 | glm-4.6 |
minimax-m2.5 | qwen3-coder-plus |
ANTHROPIC_MODEL set to a legacy alias in your iFlow settings, it will continue to work.
Cost Information
iFlow Subscription/Account Required: Check iflow.ai for current pricing and subscription options Usage Limits: Subject to iFlow’s rate limits and subscription tierNext Steps
Multi-Account Setup
Manage multiple iFlow accounts
Dashboard Config
Configure via web interface
