Claude Code
Claude Code is preinstalled in Kloud Workspace as both a CLI tool and a VS Code extension.
- CLI available system-wide.
- VS Code extension preinstalled, running the same
claudebinary as the CLI. - Powerline-style statusline with the same terminal theming.
- Managed settings that take precedence over your own.
Sign In
The image ships no Claude credentials, so sign in from a terminal:
claude auth loginIt prints a sign-in link. Open it, sign in, and paste the code back into the terminal if it asks for one.
claude auth login uses a Claude subscription by default; add --console to use an Anthropic Console account with API usage billing instead. Check the result with claude auth status.
Claude Code keeps your sign-in under /home/kloud, in ~/.claude/ and ~/.claude.json. /home/kloud is lost when the container is recreated (see Storage), so sign in again after a recreate.
CLI
The claude binary is available globally and works independently of VS Code in any terminal session.
claude --versionStatusline
A custom Powerline-style bar is rendered whenever Claude Code is active in the terminal. It uses the Catppuccin Frappe color palette to match the workspace theme.
The statusline displays the following segments:
- Directory: git-aware path with repository name and truncated subdirectories.
- Git branch & status: current branch, staging state, and ahead/behind tracking.
- Lines changed: additions and deletions in the current session.
- Model name: the active Claude model.
- Context window usage: a visual progress bar showing how much of the context window is consumed.
Every segment except the directory can be hidden with an environment variable. These variables control the statusline:
WS_CLAUDE_STATUSLINE_DISABLE: Disables the Claude Code statusline.WS_CLAUDE_STATUSLINE_HIDE_CONTEXT_BAR: Hides the context usage bar in the Claude statusline.WS_CLAUDE_STATUSLINE_HIDE_GIT: Hides git branch and status in the Claude statusline.WS_CLAUDE_STATUSLINE_HIDE_LINES_CHANGED: Hides lines added/removed in the Claude statusline.WS_CLAUDE_STATUSLINE_HIDE_MODEL: Hides the model name in the Claude statusline.WS_CLAUDE_STATUSLINE_SCRIPT: Path to the statusline script.WS_CLAUDE_STATUSLINE_SHELL: Shell used to execute the statusline script.
When a new container starts, the workspace sets statusLine in ~/.claude/settings.json to run the script with the shell from these variables. This replaces any statusLine already in that file, including one you seed.
- To run your own statusline, set
WS_CLAUDE_STATUSLINE_SCRIPTto your script, kept under~/.wsso it survives a recreate, andWS_CLAUDE_STATUSLINE_SHELLto the shell that runs it. - To disable the statusline entirely, set
WS_CLAUDE_STATUSLINE_DISABLEtotrue. This removesstatusLinefrom the file, yours included.
Managed Settings
Kloud Workspace ships managed settings for Claude Code in /etc/claude-code/managed-settings.json:
| Setting | Value |
|---|---|
| Deny | Reading ./.env |
| OpenTelemetry export | Off (CLAUDE_CODE_ENABLE_TELEMETRY=0) |
ℹ️ INFO
Managed settings take precedence over your own ~/.claude/settings.json. The file is owned by root and is reset when the container is recreated.