From 29e84c8684010eef14ca5439e4ffbb68591919b4 Mon Sep 17 00:00:00 2001 From: Etienne Coutaud Date: Thu, 25 Jun 2026 11:19:33 +0200 Subject: [PATCH] Add claude (Claude Code) plugin Manage the Claude Code CLI as a proto-versioned tool. Resolves versions from anthropics/claude-code git tags and installs the prebuilt binary from downloads.claude.ai (static musl on Linux). No checksum-url: upstream publishes checksums only inside a per-version manifest.json the TOML format can't parse. --- .prototools | 2 ++ claude/README.md | 30 ++++++++++++++++++++++++++++++ claude/plugin.toml | 29 +++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 claude/README.md create mode 100644 claude/plugin.toml diff --git a/.prototools b/.prototools index 9bcd6ce..522320f 100644 --- a/.prototools +++ b/.prototools @@ -1,6 +1,7 @@ actionlint = "1.7.12" blender = "4.5.11" buf = "1.71.0" +claude = "2.1.191" cloud-provider-kind = "0.10.0" cwic = "1.33.0" direnv = "2.37.1" @@ -24,6 +25,7 @@ yq = "4.53.3" actionlint = "file://./actionlint/plugin.toml" blender = "file://./blender/plugin.toml" buf = "file://./buf/plugin.toml" +claude = "file://./claude/plugin.toml" cloud-provider-kind = "file://./cloud-provider-kind/plugin.toml" cwic = "file://./cwic/plugin.toml" direnv = "file://./direnv/plugin.toml" diff --git a/claude/README.md b/claude/README.md new file mode 100644 index 0000000..4ddd8aa --- /dev/null +++ b/claude/README.md @@ -0,0 +1,30 @@ +# claude plugin + +[Claude Code](https://code.claude.com/docs) (Anthropic's agentic coding CLI) +plugin for [proto](https://github.com/moonrepo/proto). + +## Installation + +claude is not built into proto, so register this plugin, pin a version, then +install: + +```shell +proto plugin add claude "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/claude/plugin.toml" +proto pin claude --resolve +proto install claude +``` + +## Picking a version + +Versions track Claude Code's GitHub release tags +(). The current release is +also published at +. + +## Notes + +- Binaries are served from `https://downloads.claude.ai/claude-code-releases/` + as a single executable per platform (no archive). Linux uses the static + `musl` build so it runs on both glibc and musl hosts. +- Upstream publishes checksums only inside a per-version `manifest.json`, which + the TOML plugin format cannot parse, so installs are not checksum-verified. diff --git a/claude/plugin.toml b/claude/plugin.toml new file mode 100644 index 0000000..6e41fa6 --- /dev/null +++ b/claude/plugin.toml @@ -0,0 +1,29 @@ +name = "claude" +type = "cli" + +[resolve] +git-url = "https://github.com/anthropics/claude-code" + +[install.arch] +aarch64 = "arm64" +x86_64 = "x64" + +# Claude Code ships a single prebuilt binary per platform (no archive), served +# from downloads.claude.ai under a {version}/{platform}/ path. The Linux +# build uses the static musl variant so it runs on both glibc and musl hosts. +# Per-version checksums exist only inside a manifest.json (keyed JSON), which the +# TOML plugin format cannot parse, so no checksum-url is published here. +[platform.linux] +download-file = "linux-{arch}-musl/claude" +exe-path = "claude" + +[platform.macos] +download-file = "darwin-{arch}/claude" +exe-path = "claude" + +[platform.windows] +download-file = "win32-{arch}/claude.exe" +exe-path = "claude.exe" + +[install] +download-url = "https://downloads.claude.ai/claude-code-releases/{version}/{download_file}"