Happy CLI stores all configuration files and data in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/slopus/happy/llms.txt
Use this file to discover all available pages before exploring further.
~/.happy/ directory (or a custom location set via HAPPY_HOME_DIR).
Directory Structure
Happy uses the following directory structure for storing configuration and runtime data:Custom Home Directory
You can customize the location of the Happy home directory using theHAPPY_HOME_DIR environment variable:
Configuration Files
settings.json
The main configuration file stores all Happy CLI settings. This file is automatically created on first run. Schema version:2
Key settings:
Schema version for backwards compatibility
Whether initial onboarding has been completed
Unique identifier for this machine (used for server operations)
Whether the machine ID has been confirmed by the Happy server
Whether to automatically start the daemon when running Happy
Default Chrome mode setting for Claude sessions (enables browser access)
ID of the currently active AI backend profile
Array of AI backend profiles (synced with Happy app)
OS-level sandbox configuration. See Sandbox Configuration
CLI-local environment variable cache (not synced with app)
access.key
Stores authentication credentials in JSON format. This file contains:token: Authentication token for Happy serverencryption: Encryption keys for secure communicationpublicKey: Public encryption key (base64)machineKey: Machine-specific encryption key (base64)
daemon.state.json
Tracks the state of the Happy daemon process:Sandbox Configuration
Configure OS-level sandboxing for Happy sessions. See the full sandbox configuration guide.Session Isolation Modes
Session Isolation Modes
- strict: Only session directory and shared agent state
- workspace: Full workspace root directory access
- custom: Custom write paths defined by user
Network Modes
Network Modes
- blocked: Block all network access (most secure)
- allowed: Allow all network access (default)
- custom: Custom allow/deny lists for domains
Managing Settings
View Current Settings
Settings are stored as JSON and can be viewed directly:Update Settings
Settings are automatically updated through Happy CLI commands. Manual editing is supported but not recommended.Reset Settings
To reset all settings to defaults:Profile Management
AI backend profiles allow you to configure different environments for Claude, Codex, and Gemini.Profile Schema
Each profile contains:- Basic info:
id,name,description - AI configs:
anthropicConfig,openaiConfig,azureOpenAIConfig,togetherAIConfig - Tmux config: Terminal multiplexer settings
- Environment variables: Custom variables for the profile
- Defaults: Session type, permission mode, model mode
- Compatibility: Which agents can use this profile
Profile Environment Variables
Profiles can define environment variables that are automatically set when running sessions:Logs Directory
All Happy daemon logs are stored in~/.happy/logs/ with timestamps:
View Daemon Logs
Version Migration
Happy CLI automatically migrates settings between schema versions:- v1 → v2: Added profile support and local environment variables
- Invalid profiles are skipped with warnings (doesn’t crash)
- Always backwards compatible
If Happy detects a newer schema version than supported, it will show a warning but continue to work with available data.