An open API service indexing awesome lists of open source software.

https://github.com/cometzero/claude-code-installer

GitHub-hosted mirror installer for Claude Code releases
https://github.com/cometzero/claude-code-installer

claude-code github-releases installer mirror

Last synced: 1 day ago
JSON representation

GitHub-hosted mirror installer for Claude Code releases

Awesome Lists containing this project

README

          

# claude-code-installer

GitHub-hosted mirror installer for Claude Code.

This repository exists for environments where `claude.ai` / `downloads.claude.ai` is blocked but GitHub Releases is still reachable. It mirrors the official Claude Code release archives from [`anthropics/claude-code`](https://github.com/anthropics/claude-code/releases) into this repository's Releases and provides install scripts that download from this repo instead of Anthropic download endpoints. The launcher created by these scripts also sets `DISABLE_UPDATES=1` so later `claude` runs do not try to self-update from Anthropic infrastructure.

## What is mirrored

Each mirrored release tag includes these assets:

- `claude-darwin-arm64.tar.gz`
- `claude-darwin-x64.tar.gz`
- `claude-linux-arm64.tar.gz`
- `claude-linux-arm64-musl.tar.gz`
- `claude-linux-x64.tar.gz`
- `claude-linux-x64-musl.tar.gz`
- `claude-win32-arm64.zip`
- `claude-win32-x64.zip`
- `SHASUMS256.txt`
- `SHASUMS256.txt.sig`
- `manifest.json` generated for this mirror

The binaries are **not committed to git history**. They only live as release assets.

## Install

Default install resolves the moving `latest` alias release, then downloads the actual versioned binary assets from that mirrored version tag.

The repository also maintains lightweight alias releases:

- `latest` → current mirrored latest release
- `stable` → current mirrored stable release

These alias releases only contain `alias.json` metadata; the large binaries remain attached only to versioned tags like `v2.1.118`.

### macOS / Linux

```bash
curl -fsSL https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.sh | bash
```

Install a specific target:

```bash
curl -fsSL https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.sh | bash -s -- latest
curl -fsSL https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.sh | bash -s -- stable
curl -fsSL https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.sh | bash -s -- 2.1.118
```

### Windows PowerShell

```powershell
irm https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.ps1 | iex
```

Specific target:

```powershell
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.ps1))) latest
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.ps1))) stable
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/cometzero/claude-code-installer/main/install.ps1))) 2.1.118
```

## How it works

1. Resolve the requested version from this repo's GitHub Releases.
2. Detect OS / architecture / musl.
3. Download the matching mirrored archive from this repo's release assets.
4. Verify the archive checksum against `manifest.json` / upstream `SHASUMS256.txt`.
5. Extract `claude` / `claude.exe` temporarily.
6. Copy the binary into a versioned local install directory.
7. Create a local launcher (`claude`, `claude.cmd`, `claude.ps1`) that runs the mirrored binary and sets `DISABLE_UPDATES=1` so runtime updates do not fall back to Anthropic download endpoints.
8. Delete temporary downloaded artifacts.

## Automation

The workflow `.github/workflows/sync-upstream-release.yml` checks upstream Claude Code releases on a schedule and creates a same-tag mirror release in this repository when a new upstream release appears.

After that, it also refreshes lightweight `latest` and `stable` alias releases so installer scripts can resolve those names without relying on GitHub's `releases/latest` semantics.

You can also run it manually with `workflow_dispatch` and optionally provide a specific tag.

## Provenance

- Upstream source: https://github.com/anthropics/claude-code
- Upstream release notes remain Anthropic's content.
- This repository only republishes release assets and thin installer scripts for compatibility in restricted networks.