# Claude Code Guide — Install, Env, Troubleshoot > zebbern/claude-code-guide is a practical Claude Code install/config guide; verified 4,119★ with installer commands, Docker fallback, and key env vars. ## Install Save in your project root: ## Quick Use ```bash curl -fsSL https://claude.ai/install.sh | bash claude --help export ANTHROPIC_API_KEY='sk-your-key-here' ``` ## Intro zebbern/claude-code-guide is a practical Claude Code install/config guide; verified 4,119★ with installer commands, Docker fallback, and key env vars. **Best for:** Developers setting up Claude Code across macOS/Linux/Windows and tuning runtime/tool timeouts **Works with:** Claude Code CLI, Node.js (for npm install path), Docker fallback, and IDE extensions (VS Code/Cursor) **Setup time:** 8-20 minutes ### Key facts (verified) - GitHub: 4119 stars · 407 forks · pushed 2026-05-14. - License: MIT · owner avatar + repo URL verified via GitHub API. - README-backed entrypoint: `curl -fsSL https://claude.ai/install.sh | bash`. ## Main - Prefer the native installer for fewer Node.js edge cases; README keeps npm as an alternative path. - Use env vars as stability knobs: README lists default/max timeouts and output length caps for long-running shell tools. - If you’re containerizing, use the Docker fallback to standardize runtime + workspace mounts across machines. ### Source-backed notes - README includes native installer commands (`install.sh`, `install.ps1`, `install.cmd`) and an npm alternative path for Node-based installs. - README lists env vars such as `BASH_DEFAULT_TIMEOUT_MS`, `BASH_MAX_TIMEOUT_MS`, and `BASH_MAX_OUTPUT_LENGTH` for tool execution behavior. - README suggests installing the Claude Code IDE extension (VS Code/Cursor) and includes a Docker fallback example to run `claude` in a container. ### FAQ - **Do I need Node.js?**: Only for npm-based install; README notes the native installer bundles its own runtime. - **Why do long commands time out?**: Tune the timeout env vars listed in README (default/max timeouts and output caps). - **Can I run Claude Code in Docker?**: Yes — README includes a Docker fallback command that mounts your workspace and runs `claude`. ## Source & Thanks > Source: https://github.com/zebbern/claude-code-guide > License: MIT > GitHub stars: 4119 · forks: 407 --- ## Quick Use ```bash curl -fsSL https://claude.ai/install.sh | bash claude --help export ANTHROPIC_API_KEY='sk-your-key-here' ``` ## Intro zebbern/claude-code-guide 是 Claude Code 的实用指南(安装/配置/排障);已验证 4,119★,包含原生安装命令、Docker 兜底方案与关键环境变量说明。 **Best for:** 需要在 macOS/Linux/Windows 搭建 Claude Code,并调参(超时/IDE 扩展等)的开发者 **Works with:** Claude Code CLI;npm 安装路径需 Node.js;可选 Docker 兜底;VS Code/Cursor 扩展 **Setup time:** 8-20 minutes ### Key facts (verified) - GitHub:4119 stars · 407 forks;最近更新 2026-05-14。 - 许可证:MIT;作者头像与仓库链接均已通过 GitHub API 复核。 - README 中可对照的入口命令:`curl -fsSL https://claude.ai/install.sh | bash`。 ## Main - 优先用原生安装器减少 Node.js 相关问题;README 仍保留 npm 作为替代路径。 - 把环境变量当稳定性旋钮:README 列出命令超时与输出长度上限等关键参数。 - 需要容器化时用 Docker 兜底,统一运行时并固定 workspace 挂载,减少“机器差异”。 ### Source-backed notes - README 包含原生安装命令(`install.sh`/`install.ps1`/`install.cmd`),并提供 npm 替代安装路径。 - README 列出 `BASH_DEFAULT_TIMEOUT_MS`、`BASH_MAX_TIMEOUT_MS`、`BASH_MAX_OUTPUT_LENGTH` 等环境变量,用于控制工具执行行为。 - README 建议安装 VS Code/Cursor 的 Claude Code 扩展,并给出 Docker 兜底示例在容器里运行 `claude`。 ### FAQ - **一定要装 Node.js 吗?**:仅在走 npm 安装路径时需要;README 说明原生安装器自带运行时。 - **为什么长命令会超时?**:按 README 调整相关环境变量(默认/最大超时与输出上限)。 - **能在 Docker 里跑吗?**:可以。README 提供 Docker 兜底命令,挂载 workspace 后运行 `claude`。 ## Source & Thanks > Source: https://github.com/zebbern/claude-code-guide > License: MIT > GitHub stars: 4119 · forks: 407 --- Source: https://tokrepo.com/en/workflows/claude-code-guide-install-env-troubleshoot Author: Prompt Lab