# Kinan Environment Protocol

## REMEMBER: WSL Environment

Kinan uses **WSL (Ubuntu on Windows)** for Claude Code CLI.

### Key Facts:
- Terminal prompt: `kinan@DESKTOP-7PKTKV1:~$`
- Claude Code installed via npm in WSL
- OAuth token set: `CLAUDE_CODE_OAUTH_TOKEN` (1-year, expires Dec 2026)

### CRITICAL: Claude Code Interactive vs Bash

**INSIDE Claude Code (interactive session):**
- Shows: `> ` prompt with suggestions like "Try fix lint errors"
- Commands need `/` prefix: `/config`, `/logout`, `/exit`, `/login`
- Regular text is interpreted as prompts to Claude

**OUTSIDE Claude Code (bash shell):**
- Shows: `kinan@DESKTOP-7PKTKV1:~$`
- Run: `claude logout`, `claude login`, `claude --version`

### How to Exit Claude Code Interactive:
1. Press `Ctrl+C`
2. Or type `/exit`

### ✅ CORRECT WAY: Login with Max Plan FROM INSIDE Claude Code:
```
/login
```
Then select **"Claude.ai"** (NOT Claude Console/API)

### Alternative: From bash (NOT inside Claude Code):
```bash
claude logout
claude login
# Select "Claude Max account" when prompted
```

### Environment Variables (set in ~/.bashrc):
```bash
export CLAUDE_CODE_OAUTH_TOKEN="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"
```

### Useful Slash Commands Inside Claude Code:
- `/login` - Switch auth method (API vs Max plan)
- `/logout` - Log out
- `/status` - Check account status
- `/config` - Settings
- `/exit` - Exit to bash
- `/chrome` - Connect to Chrome browser (bridges Desktop + Code + Browser)

---
Created: 2025-12-20
Updated: 2025-12-20 - Added /login method for Max plan
