Happy CLI can be configured using environment variables to customize its behavior for different environments and use cases.Documentation 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.
Core Configuration
HAPPY_SERVER_URL
URL of the Happy server to connect to.The base URL for the Happy API server.
HAPPY_WEBAPP_URL
URL of the Happy web application.The URL for the Happy web application interface.
HAPPY_HOME_DIR
Custom location for Happy configuration and data files.Directory path where Happy stores settings, keys, and logs. Supports
~ for home directory.When using
HAPPY_VARIANT=dev, ensure HAPPY_HOME_DIR contains “dev” to avoid confusion.Feature Flags
HAPPY_EXPERIMENTAL
Enable experimental features in Happy CLI.Accepts:
true, 1, yes (case-insensitive)HAPPY_DISABLE_CAFFEINATE
Disable the caffeinate feature (macOS) that keeps the system awake during sessions.Accepts:
true, 1, yes (case-insensitive)HAPPY_VARIANT
Specify the Happy variant (stable or dev).Accepts:
stable or devDaemon Configuration
HAPPY_DAEMON_HTTP_TIMEOUT
Timeout for daemon HTTP requests in milliseconds.HTTP request timeout in milliseconds (10 seconds default).
HAPPY_DAEMON_HEARTBEAT_INTERVAL
Interval between daemon heartbeat checks in milliseconds.Heartbeat interval in milliseconds (60 seconds default).
Claude Configuration
HAPPY_CLAUDE_PATH
Custom path to the Claude CLI executable.Absolute path to the
claude binary. Useful for testing custom Claude builds.HAPPY_USE_BUNDLED_CLAUDE
Force Happy to use its bundled Claude version.Set to
1 to use the Claude version bundled with Happy.CLAUDE_CONFIG_DIR
Custom location for Claude configuration files.Directory where Claude stores its configuration and project data.
CLAUDE_CODE_ENTRYPOINT
Specify the Claude Code entrypoint.Entrypoint identifier for Claude Code SDK.
CLAUDE_SDK_MCP_SERVERS
Configure MCP servers for Claude SDK.MCP server configuration (automatically managed by Happy).
Codex Configuration
CODEX_HOME
Custom location for Codex configuration files.Directory where Codex stores its state and configuration.
HAPPY_HTTP_MCP_URL
Base URL for HTTP-based MCP bridge.URL for the Happy MCP HTTP bridge.
Gemini Configuration
GEMINI_API_KEY
API key for Gemini access.Your Gemini API key for authentication.
GEMINI_MODEL
Default Gemini model to use.Model identifier. Available:
gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-liteGOOGLE_CLOUD_PROJECT
Google Cloud Project ID for Workspace accounts.Required for Google Workspace accounts using Gemini.
AI Provider Configuration
These environment variables can be used to configure AI provider settings. They can also be set via AI Backend Profiles.Anthropic
| Variable | Description | Default |
|---|---|---|
ANTHROPIC_BASE_URL | Custom API endpoint | https://api.anthropic.com |
ANTHROPIC_AUTH_TOKEN | API authentication token | - |
ANTHROPIC_MODEL | Default model to use | - |
OpenAI
| Variable | Description | Default |
|---|---|---|
OPENAI_API_KEY | OpenAI API key | - |
OPENAI_BASE_URL | Custom API endpoint | https://api.openai.com |
OPENAI_MODEL | Default model to use | - |
Azure OpenAI
| Variable | Description | Default |
|---|---|---|
AZURE_OPENAI_API_KEY | Azure OpenAI API key | - |
AZURE_OPENAI_ENDPOINT | Azure endpoint URL | - |
AZURE_OPENAI_API_VERSION | API version | - |
AZURE_OPENAI_DEPLOYMENT_NAME | Deployment name | - |
Together AI
| Variable | Description | Default |
|---|---|---|
TOGETHER_API_KEY | Together AI API key | - |
TOGETHER_MODEL | Model to use | - |
Tmux Configuration
| Variable | Description | Default |
|---|---|---|
TMUX_SESSION_NAME | Target tmux session name | Current/most recent |
TMUX_TMPDIR | Tmux temporary directory | System default |
TMUX_UPDATE_ENVIRONMENT | Update environment in tmux | - |
Debug and Development
DEBUG
Enable debug logging and verbose output.When set (any value), enables debug mode with verbose logging.
HAPPY_PROJECT_ROOT
Project root directory (used in development).Root directory of the Happy project for development purposes.
HAPPY_RUN_SANDBOX_NETWORK_TESTS
Enable sandbox network integration tests.Set to
1 to run network integration tests for sandboxing.Using Environment Files
You can use.env files with Node’s --env-file flag:
Environment Variables Summary
Core
HAPPY_SERVER_URL, HAPPY_WEBAPP_URL, HAPPY_HOME_DIR, HAPPY_VARIANTFeatures
HAPPY_EXPERIMENTAL, HAPPY_DISABLE_CAFFEINATEClaude
HAPPY_CLAUDE_PATH, CLAUDE_CONFIG_DIR, ANTHROPIC_BASE_URLDaemon
HAPPY_DAEMON_HTTP_TIMEOUT, HAPPY_DAEMON_HEARTBEAT_INTERVAL