Skip to main content
Glama

happy_start_session

Start a new AI coding session on a specified machine with optional Git worktree isolation and environment configuration for development tasks.

Instructions

Start a new Happy AI session on a machine. Use happy_list_machines to find available machines first. Use happy_list_environment_sets to see available environment presets. Optionally create a Git worktree for isolated development.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
machine_idYesThe machine ID to start the session on
directoryYesThe directory path to run the session in (base repository path if using worktree)
messageNoOptional initial message to send to start the session working
agentNoAgent type to use (default: claude)
waitNoIf true, wait for AI to finish processing initial message before returning (default: false)
environment_preset_idNoOptional ID of an environment preset to use (from happy_list_environment_sets). Preset variables are applied first, then custom variables override them.
environment_variablesNoOptional custom environment variables as key-value pairs. These override any variables from the preset.
worktreeNoOptional Git branch name for creating a worktree. If provided, creates a new branch and worktree at .dev/worktree/<name> and spawns the session there. The directory must be a Git repository.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhigang1992/happy-server-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server