Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to run Claude Code locally on a Mac, free and offline

说明与用途

在 Mac 上本地运行 Claude Code,无需 API 密钥或云模型,使用 Claude Code Local 自动根据内存选择模型,提供离线、无限制、私密使用。

问题

Run Claude Code without an API key, cloud model, or usage limits on a local Mac.

结果

Users can run Claude Code locally on a Mac with no API key, achieving offline, unlimited usage and privacy, while still accessing free cloud models if needed.

工作流

  • 1. Install Claude Code Local via one-liner or manual clone and setup.sh
  • 2. Server auto-selects a model based on available RAM
  • 3. Launch Claude Code with ANTHROPIC_BASE_URL pointing to localhost and ANTHROPIC_API_KEY=sk-local
  • 4. Use "keep going" to switch to free cloud models if local limits are hit
  • 5. Disable non-essential traffic for privacy

证据

Claude Code can run on a local model on your own Mac. No API key, no cloud model, no usage limit.

来源

Setup picks your model, downloads it, installs the server, and puts Claude Local.command on your Desktop.

来源

The key is just sk-local. The server never checks it.

来源

Your code never leaves your Mac. No cloud model, no tracking, no analytics.

来源

  • 记录日期: 2026-11-03T23:14:09.517Z