---
url: https://ws.kloudkit.com/ai/claude-code.md
description: >-
  Claude Code is preinstalled in Kloud Workspace as both a system-wide CLI and a
  VS Code extension, with a themed statusline and managed settings.
---

# Claude Code

![Claude Code logo](/icons/claude.svg){.doc-image}

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 `claude` binary as the CLI.
* Powerline-style statusline with the same [terminal theming](/editor/theme-and-fonts).
* Managed settings that take precedence over your own.

## Sign In

The image ships no Claude credentials, so sign in from a terminal:

```sh
claude auth login
```

It 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](/editor/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.

```sh
claude --version
```

## Statusline

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:

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](/settings/seed).

* To run your own statusline, set `WS_CLAUDE_STATUSLINE_SCRIPT` to your script, kept under `~/.ws`
  so it survives a recreate, and `WS_CLAUDE_STATUSLINE_SHELL` to the shell that runs it.
* To disable the statusline entirely, set `WS_CLAUDE_STATUSLINE_DISABLE` to `true`.
  This removes `statusLine` from 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.
:::
