{"id":42026108,"url":"https://github.com/pleaseai/setup-claude-code","last_synced_at":"2026-01-26T04:09:13.508Z","repository":{"id":320373717,"uuid":"1081832713","full_name":"pleaseai/setup-claude-code","owner":"pleaseai","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-13T08:41:30.000Z","size":1259,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T10:47:07.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pleaseai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-23T10:59:33.000Z","updated_at":"2026-01-13T08:41:18.000Z","dependencies_parsed_at":"2025-10-23T13:40:10.549Z","dependency_job_id":null,"html_url":"https://github.com/pleaseai/setup-claude-code","commit_stats":null,"previous_names":["pleaseai/setup-claude-code"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pleaseai/setup-claude-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fsetup-claude-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fsetup-claude-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fsetup-claude-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fsetup-claude-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pleaseai","download_url":"https://codeload.github.com/pleaseai/setup-claude-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fsetup-claude-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-26T04:09:12.893Z","updated_at":"2026-01-26T04:09:13.503Z","avatar_url":"https://github.com/pleaseai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup Claude Code\n\n[![Test](https://github.com/pleaseai/setup-claude-code/actions/workflows/test.yml/badge.svg)](https://github.com/pleaseai/setup-claude-code/actions/workflows/test.yml)\n[![Integration Test](https://github.com/pleaseai/setup-claude-code/actions/workflows/integration.yml/badge.svg)](https://github.com/pleaseai/setup-claude-code/actions/workflows/integration.yml)\n[![codecov](https://codecov.io/gh/pleaseai/setup-claude-code/graph/badge.svg?token=UDgUvPCl4k)](https://codecov.io/gh/pleaseai/setup-claude-code)\n[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)\n\nInstall [Claude Code CLI](https://claude.ai/code) in your GitHub Actions workflows with built-in caching support.\n\n## Features\n\n- ⚡ **Fast**: Built-in caching reduces installation time\n- 🔒 **Secure**: Verifies binary checksums via SHA256\n- 🧪 **Tested**: Comprehensive unit and integration tests\n- 📦 **TypeScript**: Type-safe, maintainable codebase\n- 🚀 **Node 24**: Uses the latest Node.js runtime\n- 🔌 **Plugins**: Install marketplace and plugins in one step\n\n## Usage\n\n### Basic Example\n\n```yaml\nname: CI\non: [push]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n\n      - uses: pleaseai/setup-claude-code@v1\n        with:\n          version: latest\n\n      - run: claude --version\n```\n\n### With Specific Version\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    version: 2.0.25 # Install specific version number\n```\n\n### With Stable Version\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    version: stable # Install stable version (recommended for production)\n```\n\n### Using Outputs\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  id: setup-claude\n  with:\n    version: latest\n\n- run: |\n    echo \"Cache hit: ${{ steps.setup-claude.outputs.cache-hit }}\"\n    echo \"Version: ${{ steps.setup-claude.outputs.version }}\"\n    echo \"Path: ${{ steps.setup-claude.outputs.claude-path }}\"\n```\n\n### Installing Plugins\n\n#### Single Marketplace with Comma-Separated Plugins\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    marketplaces: chatbot-pf/claude-plugins\n    plugins: dev-tools@passionfactory,pr-review-toolkit@passionfactory\n```\n\n#### Private Repositories\n\nThe action automatically uses `${{ github.token }}` for git authentication. For private repositories with custom access requirements, you can provide a Personal Access Token (PAT):\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    github_token: ${{ secrets.MY_PAT }} # Optional: only needed for custom access\n    marketplaces: your-org/private-plugins\n    plugins: private-plugin@your-org\n```\n\n#### Multiple Marketplaces with Multiline Format\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    marketplaces: |\n      chatbot-pf/claude-plugins\n      company/private-plugins\n      https://gitlab.com/org/plugins.git\n    plugins: |\n      dev-tools@passionfactory\n      pr-review-toolkit@passionfactory\n      custom-plugin@company\n```\n\n#### From Various Sources\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    marketplaces: |\n      owner/repo\n      https://gitlab.com/company/plugins.git\n      https://url.of/marketplace.json\n      ./local/marketplace\n    plugins: plugin1,plugin2,plugin3\n```\n\n#### Note on Marketplaces\n\n**Important**: Claude Code CLI does not have a default marketplace. You must add at least one marketplace before installing plugins. The `marketplaces` input is required if you want to use the `plugins` input.\n\nExample with marketplace and plugins together:\n\n```yaml\n- uses: pleaseai/setup-claude-code@v1\n  with:\n    marketplaces: chatbot-pf/claude-plugins\n    plugins: |\n      dev-tools@passionfactory\n      pr-review-toolkit@passionfactory\n```\n\n## Inputs\n\n| Input | Description | Required | Default |\n|-------|-------------|----------|---------|\n| `version` | Claude Code version to install. Options: `stable` (recommended), `latest`, or specific version number (e.g., `2.0.25`) | No | `latest` |\n| `github_token` | GitHub token for accessing plugin repositories. Automatically defaults to `${{ github.token }}`. Provide a custom PAT only if you need special access permissions. | No | `${{ github.token }}` |\n| `marketplaces` | Plugin marketplace sources. Supports: GitHub (`owner/repo`), Git URL, local path, or remote URL. Can be comma-separated or newline-separated (with `\\|`) for multiple marketplaces. **Required if installing plugins.** | No | - |\n| `plugins` | List of plugins to install. Can be comma-separated or newline-separated (with `\\|`). **Requires `marketplaces` to be specified.** | No | - |\n\n## Outputs\n\n| Output | Description |\n|--------|-------------|\n| `cache-hit` | Whether cache was restored (`true` or `false`) |\n| `version` | Installed Claude Code version |\n| `claude-path` | Absolute path to claude executable |\n| `marketplaces_added` | Number of marketplaces added or updated |\n| `plugins_installed` | Comma-separated list of successfully installed plugins |\n\n## Caching\n\nThis action automatically caches Claude Code installations to speed up your workflows:\n\n- **Latest version**: Daily cache rotation (cache key includes date)\n- **Specific versions**: Permanent cache (cache key is version-specific)\n\nCache keys follow the pattern:\n- Latest: `claude-code-v2-{os}-latest-{date}`\n- Versioned: `claude-code-v2-{os}-{version}`\n\n## Platform Support\n\n- ✅ Linux (x64, arm64)\n- ✅ Linux with musl (x64, arm64) - Alpine, etc.\n- ✅ macOS (x64, arm64)\n- ⏳ Windows (x64) - Planned (see [#3](https://github.com/pleaseai/setup-claude-code/issues/3))\n\n## Development\n\nThis action is built with TypeScript and uses modern tooling:\n\n- **Runtime**: Node.js 24\n- **Testing**: Vitest 3.x\n- **Linting**: @antfu/eslint-config\n- **Build**: @vercel/ncc\n\n### Setup\n\n```bash\n# Install dependencies\nnpm install\n\n# Run tests\nnpm test\n\n# Build\nnpm run build\n```\n\n### Commands\n\n```bash\nnpm test          # Run tests in watch mode\nnpm run test:ci   # Run tests once with coverage\nnpm run lint      # Check code style\nnpm run lint:fix  # Auto-fix style issues\nnpm run typecheck # Type check without emitting\nnpm run build     # Compile to dist/index.js\n```\n\n### Making Changes\n\n1. Modify TypeScript source in `src/`\n2. Write/update tests in `test/`\n3. Run tests: `npm test`\n4. Build: `npm run build`\n5. Commit both source and compiled `dist/` folder\n\n**Important**: Always commit the `dist/` folder. GitHub Actions cannot compile TypeScript at runtime.\n\n## Architecture\n\n```\nsrc/\n├── main.ts       # Entry point\n├── installer.ts  # Download, verify, install logic\n├── cache.ts      # Cache key generation and operations\n└── utils.ts      # Platform detection, PATH management\n\ntest/\n├── utils.test.ts\n└── cache.test.ts\n\n.github/workflows/\n├── test.yml          # CI: lint, test, build\n└── integration.yml   # E2E: actual installation test\n```\n\n## License\n\nMIT\n\n## Author\n\nMinsu Lee ([@amondnet](https://github.com/amondnet))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleaseai%2Fsetup-claude-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpleaseai%2Fsetup-claude-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleaseai%2Fsetup-claude-code/lists"}