Overview
Jean supports three CLI backends for AI interaction. This reference covers installation, authentication, configuration, and command-line usage for each.Claude CLI
Installation
macOS (Homebrew):- Visit the Claude CLI GitHub repository
- Download the binary for your platform
- Add to PATH
Authentication
Configuration
Global settings:~/.claude/settings.json
.claude/settings.json in project root
~/.claude.json (global) or .mcp.json (project)
Command-Line Usage
Basic chat:Environment Variables
Status Interface
Codex CLI
Installation
Via installer (recommended):- Visit https://openai.com/codex
- Download installer for your platform
- Run installer
Authentication
Configuration
Global config:~/.codex/config.toml
.codex/config.toml in project root
Command-Line Usage
Basic chat:Environment Variables
Status Interface
OpenCode
Installation
Via npm:- Visit https://github.com/opencode/opencode/releases
- Download for your platform
- Add to PATH
Authentication
OpenCode supports multiple providers: Anthropic:Configuration
Global config:~/.config/opencode/opencode.json
opencode.json in project root
Command-Line Usage
Basic chat:Environment Variables
Status Interface
Backend Detection
Jean detects backends by checking:-
System PATH:
which claude,which codex,which opencode -
Common locations:
- macOS:
/usr/local/bin/,/opt/homebrew/bin/ - Linux:
/usr/bin/,/usr/local/bin/,~/.local/bin/ - Windows:
%ProgramFiles%,%LocalAppData%,%AppData%
- macOS:
-
Platform-specific:
- macOS: Checks Homebrew installation paths
- Windows: Checks registry keys
- Linux: Checks XDG directories
Version Requirements
| Backend | Minimum Version | Recommended |
|---|---|---|
| Claude CLI | 1.0.0 | Latest stable |
| Codex CLI | 0.5.0 | Latest stable |
| OpenCode | 0.1.0 | Latest stable |
Updating Backends
Claude CLI:Troubleshooting
Backend Not Detected
- Verify installation: Run
claude --versionin terminal - Check PATH:
echo $PATH(Unix) orecho %PATH%(Windows) - Reinstall via Jean UI: Preferences > Backends > Install
- Restart Jean after installation
Authentication Fails
- Run
[backend] authin terminal - Follow interactive prompts
- Verify with
[backend] auth status - Check API key is valid (not expired/revoked)
- Restart Jean
Command Not Found
Permission Denied
MCP Servers Not Loading
- Check config file syntax (JSON/TOML)
- Verify file location matches backend:
- Claude:
.claude.jsonor.mcp.json - Codex:
config.toml - OpenCode:
opencode.json
- Claude:
- Test MCP server manually:
- Check logs: Help > Open Logs Folder
Jean-Specific Integration
Jean wraps CLI backends with additional functionality:Features
- Persistent sessions: Chat history saved across restarts
- UI integration: Model/backend selection via dropdowns
- Event streaming: Real-time message updates
- Error handling: User-friendly error messages
- Process management: Automatic cleanup on session close
Command Invocation
Jean constructs CLI commands based on session settings: Claude example:Process Lifecycle
- Spawn: Jean spawns CLI as child process
- Stream: STDOUT streamed to UI in real-time
- Parse: JSON stream parsed for structured output
- Store: Messages saved to session database
- Cleanup: Process killed on session close or cancel
Error Handling
1- General error2- Authentication failed3- API rate limit130- Process interrupted (Ctrl+C)
Custom Providers (Claude CLI)
Jean supports custom provider profiles for Claude CLI:Profile Structure
Example Profiles
See “Multi-Backend Setup” guide for predefined profiles (OpenRouter, MiniMax, Z.ai, Moonshot).Creating Profiles
- Preferences > Advanced > CLI Profiles
- Add new profile
- Configure environment variables
- Save and select from provider dropdown