Claude Code

Anthropic's agentic coding tool: it reads your codebase, edits files and runs commands, in the terminal and beyond, driven by Claude models. Run it in EnvHaven from any browser, signed in once with your own account, and keep it working 24/7; or install it on your own machine.

Updated November 23, 2026 · Checked against Claude Code 2.1.308 in EnvHaven v1.9.0

At a glance
Made byAnthropic
Commandclaude
Version checked2.1.308, in EnvHaven v1.9.0
Documentationcode.claude.com/docs

Use Claude Code in EnvHaven

  1. Open your workspace in any browser, on a laptop, a tablet or a phone.
  2. Tap Launch, choose Claude Code and tap Sign in: it opens claude.ai so you can approve the workspace, then takes the short code the page shows, so a Claude plan works with no API key. For an API key, choose Set key instead and paste ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN; the workspace keeps it write-only.
  3. Start it with one tap: signed in, Claude Code gets a green dot in the Launch menu and an icon in the workspace’s top bar. Support is built in (2.1.308), so there is nothing to install or update.
  4. Give it a task. The image writes defaultMode: "bypassPermissions" into the workspace user’s own settings, so claude starts without prompts, as an unprivileged user.
  5. Close the tab whenever you like. The workspace is an always-on Linux machine, so Claude Code keeps working, and every device you open it from shows the same session.

Every agent signs in with your own account: EnvHaven never resells tokens or adds a markup.

Install Claude Code on another machine

macOS, Linux, WSL (native installer, updates itself):

curl -fsSL https://claude.ai/install.sh | bash

Windows (PowerShell):

irm https://claude.ai/install.ps1 | iex

Homebrew:

brew install --cask claude-code

Sign in from the terminal

In a workspace the Launch menu does this for you. On any other machine, or when you would rather type it:

  • Run claude and sign in in the browser (or later with /login); on a remote machine, press c to copy the URL and paste back the code it shows.
  • Or set ANTHROPIC_API_KEY for a Console API key, or CLAUDE_CODE_OAUTH_TOKEN with a one-year token from claude setup-token for CI and headless machines.
  • Claude Pro, Max, Ultra, Team and Enterprise plans sign in through claude.ai; API keys bill per token. Anthropic allows hosted platforms to run Claude Code only unmodified, with each user signing in with their own credentials, which is how EnvHaven runs it.

Run Claude Code without permission prompts

For one session:

claude --dangerously-skip-permissions

Or by permission mode:

claude --permission-mode bypassPermissions

As the default, in ~/.claude/settings.json:

{
  "permissions": { "defaultMode": "bypassPermissions" }
}

Bypass mode runs every tool without asking, with two exceptions worth knowing. Claude Code refuses it as root or under sudo (“--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons”) unless it detects a recognized sandbox, and it ignores the setting in a project’s .claude/settings.json. rm on critical paths still asks, with a two-minute countdown before it denies.

In EnvHaven: The image writes defaultMode: "bypassPermissions" into the workspace user’s own settings, so claude starts without prompts, as an unprivileged user. The details, and when full access is safe, are on the Claude Code full-access page.

Instructions file

Claude Code reads CLAUDE.md, .claude/CLAUDE.md, CLAUDE.local.md, ~/.claude/CLAUDE.md, .claude/rules/*.md. It reads AGENTS.md only when the project has no CLAUDE.md, from version 2.1.277; a CLAUDE.md containing @AGENTS.md imports it either way.

Add MCP servers

claude mcp add <name> -- <command> [args...]

Add -e KEY=value for environment variables and -s user to make it available in every project. Project servers live in .mcp.json; local and user ones in ~/.claude.json.

The MCP config converter writes the same server for every agent at once.

Run it from scripts

claude -p "<prompt>"

Headless runs cannot stop to ask, so they need the full-access setting above.

Claude Code away from your desk

Claude Code keeps working only while the machine it runs on is awake. In EnvHaven that machine is the workspace, which never sleeps: start a task, close the laptop and check on it from a phone.

Anthropic’s own options:

  • Remote Control (claude --remote-control): the Claude app or claude.ai/code drives a session that keeps running on your own machine. It needs a Claude plan; API keys are not supported.
  • Cloud sessions (Claude Code on the web), which run on Anthropic’s infrastructure and are reachable from the Claude app’s Code tab.

Compare Claude Code

When Claude Code misbehaves