Skip to main content

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

Browser OAuth Flow:
  1. Authorization Code flow via browser callback
  2. Callback server spawns on port 11451
  3. Browser opens for iFlow OAuth consent
  4. Token received via HTTP callback
  5. Auto-refresh prevents mid-request failures
Example Output:

Manual Authentication

Logout

Multi-Account Support

Manage multiple iFlow accounts for different projects:

Add Account

List Accounts

Switch Account

Rename Account

Account Registry: ~/.ccs/cliproxy/accounts.json Auto-Nicknames: Generated from email prefix (e.g., john@example.comjohn)

Configuration Options

Model Settings

iFlow provider settings stored in: Path: ~/.ccs/iflow.settings.json Configuration via Dashboard:
Manual Configuration:

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

Account Management Flags

Storage Locations

Token Management

Storage Format:
Auto-Refresh: Tokens managed by CLIProxyAPI Security: Device Code flow prevents token interception (no callback server)

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
Flow Timeline:
  1. CCS requests device code from iFlow API
  2. Displays code + URL to user
  3. User authorizes in browser (any device)
  4. CCS polls iFlow API for token availability
  5. Token saved when authorization complete
Callback Port: 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-run ccs 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
CCS automatically normalizes legacy iFlow model IDs to their canonical equivalents. This prevents 406/404 errors when iFlow’s API updates model naming. Known mappings: These mappings are applied automatically — no config change required. If you have 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 tier

Next Steps

Multi-Account Setup

Manage multiple iFlow accounts

Dashboard Config

Configure via web interface