> ## 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.

# First Session

> Run your first CCS session with Claude or another supported provider

# First Session

After installing CCS, run your first session in under 2 minutes.

## Step 1: Choose a Provider

> [tab] Default Claude (OAuth)
>
> ```bash theme={null}
> # Browser opens for Claude OAuth
> ccs
> ```
>
> Requires a Claude Pro or Max subscription.

> [tab] Codex (OAuth)
>
> ```bash theme={null}
> # Browser opens for OpenAI OAuth
> ccs codex "review this code"
> ```
>
> Works well as a first browser-OAuth route.

> [tab] Kiro (Free tier)
>
> ```bash theme={null}
> # Device code flow (no browser required)
> ccs kiro "help me debug this"
> ```
>
> Free tier via AWS Builder ID.

> [tab] API Profile
>
> ```bash theme={null}
> # Z.AI GLM — requires API key setup first
> ccs glm "quick code fix"
> ```
>
> See [API Profiles](https://docs.ccs.kaitran.ca/providers/concepts/api-profiles.md) for setup.

> [!NOTE]
>
> Other supported routes such as GHCP, Gemini, iFlow, and Antigravity are
> documented in [Provider Overview](https://docs.ccs.kaitran.ca/providers/concepts/overview.md). This page
> keeps the first-run path focused on the safest baseline examples.

## Step 2: Authenticate

On first run, CCS triggers OAuth automatically.

**1. Browser opens**

CCS spawns a local OAuth callback server and opens the provider login page.
For Device Code providers (Kiro, Kimi), a code and URL are shown in
the terminal instead.

**2. Sign in**

Complete login with the account for your chosen provider.

**3. Token saved**

OAuth credentials are cached at `~/.ccs/cliproxy/auth/`. Future runs skip
this step.

**4. Session starts**

CCS launches the selected target runtime with the chosen provider injected
as the API backend. By default, that target runtime is Claude Code.

## Step 3: Start Coding

```bash theme={null}
# Interactive session (default)
ccs codex

# One-shot with prompt
ccs kiro "what does this regex do: ^[a-z]+$"

# Pass a prompt directly
ccs glm "refactor this function to use async/await"
```

### How Profile Switching Works

Each `ccs <profile>` command injects different environment variables into the
active target runtime:

```
ccs codex   →  ANTHROPIC_BASE_URL=http://127.0.0.1:8317/api/provider/codex
ccs kiro    →  ANTHROPIC_BASE_URL=http://127.0.0.1:8317/api/provider/kiro
ccs glm     →  ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
ccs         →  Default Claude account (no proxy)
```

Switching takes under 1 second. Running `ccs codex` in one terminal and `ccs glm`
in another keeps those sessions separate and avoids conflicts.

## Dashboard

Open the visual configuration dashboard at any time:

```bash theme={null}
ccs config
```

The dashboard shows all profiles, OAuth provider status, quota usage, and lets
you manage API keys without editing files.

## Quick Examples

```bash theme={null}
# Switch between providers instantly
ccs "design the auth layer"         # Default Claude
ccs glm "implement user service"    # Z.AI GLM (cost-optimized)
ccs codex "security review"         # OpenAI Codex

# Extended thinking / reasoning
ccs --effort high "debug this regression"
ccs codex --effort xhigh "complex refactor"
ccs km "reason through this architecture change"

# Multi-account: work vs personal
ccs work "review PR #123"
ccs personal "help with side project"
```

## Next Steps

> [card] [All Providers](https://docs.ccs.kaitran.ca/providers/concepts/overview.md)
>
> Compare OAuth providers, Claude accounts, and API profiles

> [card] [Configuration](https://docs.ccs.kaitran.ca/getting-started/configuration.md)
>
> Config file format, precedence rules, and env vars

> [card] [Claude Accounts](https://docs.ccs.kaitran.ca/providers/concepts/claude-accounts.md)
>
> Run multiple Claude subscriptions simultaneously

> [card] [API Profiles](https://docs.ccs.kaitran.ca/providers/concepts/api-profiles.md)
>
> Bring your own API keys


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