Skip to main content

Overview

CCS supports multiple accounts per OAuth provider (Gemini, Codex, Antigravity, etc.), enabling you to:
  • Work around rate limits by switching accounts
  • Separate personal and work usage
  • Test with different quota tiers
  • Organize projects by account
Want several Claude accounts to auto-continue for you when one hits its limit, instead of switching by hand? See Account Pools. This page covers manual per-account management; pools add automatic failover for the built-in claude provider.

Prerequisites

  • CCS CLI installed
  • OAuth provider configured (gemini, codex, agy, iflow, kiro, kimi, ghcp)
  • Browser for OAuth flow
1

Add Your First Account

Run authentication for the provider:
This opens your browser for OAuth. After authorizing, CCS stores the token and assigns a default nickname (your email).Note: First account becomes the default for that provider.
2

Add Additional Accounts

Use the --add flag with --auth to add another account:
CCS detects this as a new account and:
  • Opens browser for second OAuth flow
  • Stores token separately from first account
  • Updates ~/.ccs/cliproxy/accounts.json registry
Tip: You can add unlimited accounts per provider.
3

List All Accounts

View registered accounts:
Output shows:
  • Account nicknames (email or custom name)
  • Default account marker
  • Last used timestamp
Example output:
4

Switch Default Account

Change which account is used by default:
This updates the default in config.yaml under cliproxy.variants.gemini.account.Note: Switching only affects future sessions, not active ones.
5

Use Account for Single Session

Override default without changing config:
This session uses work@company.com, but next time defaults to configured account.
6

Set Custom Nicknames (Optional)

Make accounts easier to identify:
Now you can reference accounts by nickname:
7

Logout Specific Account

Remove an account:
This:
  • Revokes OAuth token
  • Removes from accounts.json
  • Prompts to set new default if removing default account

Understanding Account Storage

Registry File: ~/.ccs/cliproxy/accounts.json

Config Reference: ~/.ccs/config.yaml

Common Use Cases

Scenario 1: Rate Limit Rotation

If you hit quota limits, switch to another account:

Scenario 2: Separate Work/Personal

Keep projects isolated:

Scenario 3: Testing Different Tiers

Compare behavior across quota tiers:

Troubleshooting

Account Not Found

Error: Account 'xyz' not found for gemini Solution: List accounts to verify name:

Default Account Not Set

Error: No default account configured Solution: Set default explicitly:

Token Expired

CCS automatically refreshes OAuth tokens 5 minutes before expiry. If manual refresh needed:

Next Steps

Token Management

Learn about token refresh, session files, and troubleshooting

Remote Proxy

Deploy CLIProxy on remote server for team sharing