# 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 by | Anthropic |
| Command | `claude` |
| Version checked | 2.1.308, in EnvHaven v1.9.0 |
| Documentation | [code.claude.com/docs](https://code.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):

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

Windows (PowerShell):

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

Homebrew:

```bash
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:

```bash
claude --dangerously-skip-permissions
```

Or by permission mode:

```bash
claude --permission-mode bypassPermissions
```

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

```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](https://envhaven.com/yolo/claude-code).

## 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

```bash
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](https://envhaven.com/mcp-config) writes the same server for every agent at once.

## Run it from scripts

```bash
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.

- [Claude Code in the browser](https://envhaven.com/agents/claude-code/browser)
- [Claude Code on iPhone](https://envhaven.com/agents/claude-code/iphone)
- [Claude Code on iPad](https://envhaven.com/agents/claude-code/ipad)
- [Claude Code on Android](https://envhaven.com/agents/claude-code/android)
- [Claude Code on a Chromebook](https://envhaven.com/agents/claude-code/chromebook)
- [Claude Code on Windows](https://envhaven.com/agents/claude-code/windows)
- [Claude Code on a VPS](https://envhaven.com/agents/claude-code/vps)
- [Claude Code in Docker](https://envhaven.com/agents/claude-code/docker)
- [Claude Code on a Raspberry Pi](https://envhaven.com/agents/claude-code/raspberry-pi)
- [Claude Code 24/7](https://envhaven.com/agents/claude-code/24-7)

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

- [Claude Code vs Codex](https://envhaven.com/compare/claude-code-vs-codex)
- [Claude Code vs OpenCode](https://envhaven.com/compare/claude-code-vs-opencode)
- [Claude Code vs Kiro](https://envhaven.com/compare/kiro-vs-claude-code)
- [Claude Code vs Factory Droid](https://envhaven.com/compare/factory-droid-vs-claude-code)
- [Claude Code vs OpenClaw](https://envhaven.com/compare/openclaw-vs-claude-code)
- [Claude Code vs Antigravity CLI](https://envhaven.com/compare/antigravity-cli-vs-claude-code)
- [Claude Code vs Grok Build](https://envhaven.com/compare/grok-build-vs-claude-code)
- [Claude Code vs Kimi Code CLI](https://envhaven.com/compare/kimi-code-cli-vs-claude-code)
- [Claude Code vs Muse Code](https://envhaven.com/compare/muse-code-vs-claude-code)
- [Claude Code vs Pi](https://envhaven.com/compare/pi-vs-claude-code)
- [Claude Code vs Qwen Code](https://envhaven.com/compare/qwen-code-vs-claude-code)
- [Claude Code vs Mistral Vibe](https://envhaven.com/compare/mistral-vibe-vs-claude-code)

## When Claude Code misbehaves

- [Claude Code: --dangerously-skip-permissions cannot be used with root](https://envhaven.com/errors/claude-code/dangerously-skip-permissions-root)
- [Claude Code: settings files did not load (Invalid or malformed JSON)](https://envhaven.com/errors/claude-code/settings-files-did-not-load)
- [Claude Code: Invalid API key · Fix external API key](https://envhaven.com/errors/claude-code/invalid-api-key)
- [Claude Code: API Error: Server is temporarily limiting requests (not your usage limit)](https://envhaven.com/errors/claude-code/server-temporarily-limiting-requests)
- [Claude Code: API Error: Repeated 529 Overloaded errors](https://envhaven.com/errors/claude-code/repeated-529-overloaded-errors)
- [Claude Code: You've hit your session limit](https://envhaven.com/errors/claude-code/session-limit)
- [Claude Code: Not logged in · Please run /login](https://envhaven.com/errors/claude-code/not-logged-in)
- [Claude Code: OAuth token has expired. Please obtain a new token or refresh your existing token.](https://envhaven.com/errors/claude-code/oauth-token-has-expired)
- [Claude Code: Remote Control isn't enabled for this account](https://envhaven.com/errors/claude-code/remote-control-isnt-enabled-for-this-account)
- [Claude Code: You must be logged in to use Remote Control.](https://envhaven.com/errors/claude-code/remote-control-must-be-logged-in)
- [Claude Code: No repositories found](https://envhaven.com/errors/claude-code/mobile-no-repositories-found)
- [Claude Code: Status line command skipped: workspace trust not accepted](https://envhaven.com/errors/claude-code/status-line-skipped-workspace-trust)
- [Claude Code: bash: claude: command not found](https://envhaven.com/errors/claude-code/command-not-found)
- [Claude Code: Error: claude native binary not installed.](https://envhaven.com/errors/claude-code/native-binary-not-installed)
- [Is Claude Code down?](https://envhaven.com/status/claude-code) Live status of the providers it depends on.

## Keep reading

- [Claude Code full-access mode](https://envhaven.com/yolo/claude-code)
- [Claude Code in the browser](https://envhaven.com/agents/claude-code/browser)
- [Claude Code on iPhone](https://envhaven.com/agents/claude-code/iphone)
- [Claude Code on iPad](https://envhaven.com/agents/claude-code/ipad)
- [Claude Code vs Codex](https://envhaven.com/compare/claude-code-vs-codex)
- [Claude Code vs OpenCode](https://envhaven.com/compare/claude-code-vs-opencode)

Source: https://envhaven.com/agents/claude-code
