{"id":50981189,"url":"https://github.com/susomejias/claude-code-cron","last_synced_at":"2026-06-19T14:33:04.040Z","repository":{"id":351295273,"uuid":"1210258833","full_name":"susomejias/claude-code-cron","owner":"susomejias","description":"A GitHub template to run Claude Code on a cron schedule — no server required.","archived":false,"fork":false,"pushed_at":"2026-04-14T11:48:15.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T13:25:37.772Z","etag":null,"topics":["automation","claude-code","cron","github-actions","template"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/susomejias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-04-14T08:31:44.000Z","updated_at":"2026-04-14T11:48:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/susomejias/claude-code-cron","commit_stats":null,"previous_names":["susomejias/claude-code-cron"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/susomejias/claude-code-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susomejias%2Fclaude-code-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susomejias%2Fclaude-code-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susomejias%2Fclaude-code-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susomejias%2Fclaude-code-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susomejias","download_url":"https://codeload.github.com/susomejias/claude-code-cron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susomejias%2Fclaude-code-cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34536277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","claude-code","cron","github-actions","template"],"created_at":"2026-06-19T14:33:02.451Z","updated_at":"2026-06-19T14:33:04.019Z","avatar_url":"https://github.com/susomejias.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-code-cron\n\nA GitHub template to run Claude Code on a cron schedule — no server required.\n\n## Quick start\n\n1. Click **\"Use this template\"** to create your repo\n2. Configure authentication (see [Authentication](#authentication))\n3. Set your prompt (see [Configuration](#configuration))\n\nThe workflow runs automatically on schedule, or trigger it manually from the **Actions** tab.\n\n## Authentication\n\nAdd one of the following as a repository secret in **Settings \u003e Secrets and variables \u003e Actions**.\n\n### Option A — Claude Pro/Max subscription (recommended)\n\nUses your existing Claude subscription quota. Generates a token valid for 1 year.\n\n```bash\n# Run locally (requires Claude Code installed)\nclaude setup-token\n```\n\nAdd the output as a secret named `CLAUDE_CODE_OAUTH_TOKEN`.\n\n\u003e Requires Claude Pro, Max, Team, or Enterprise subscription.\n\n### Option B — Anthropic API key\n\nBilled per token. Get your key at [console.anthropic.com](https://console.anthropic.com).\n\nAdd it as a secret named `ANTHROPIC_API_KEY`.\n\n\u003e If both secrets are set, the API key takes precedence.\n\n## Configuration\n\n### Prompt\n\nAdd `CLAUDE_PROMPT` as a **repository variable** (Settings \u003e Secrets and variables \u003e Actions \u003e Variables):\n\n```\nCLAUDE_PROMPT=Review open issues in this repo and suggest which ones to tackle next.\n```\n\nYou can also override it for a single run via **Actions \u003e Claude Code Cron \u003e Run workflow**.\n\n### Model\n\nOptionally add `CLAUDE_MODEL` as a **repository variable** to choose which model to use. If not set, Claude Code uses its default model.\n\nCheck the [Anthropic docs](https://docs.anthropic.com/en/docs/about-claude/models) for the latest available model IDs.\n\n### Cron schedule\n\nEdit the `cron` expression in `.github/workflows/claude-cron.yml`:\n\n```yaml\nschedule:\n  - cron: '0 6 * * *'  # every day at 6:00 UTC (default)\n```\n\n**GitHub Actions always uses UTC.** There is no timezone setting — you need to convert your local time manually:\n\n| Your local time | Offset | UTC value to use |\n|---|---|---|\n| 6:00 Spain/Paris (winter) | UTC+1 | `0 5 * * *` |\n| 6:00 Spain/Paris (summer) | UTC+2 | `0 4 * * *` |\n| 6:00 New York (winter) | UTC-5 | `0 11 * * *` |\n| 6:00 New York (summer) | UTC-4 | `0 10 * * *` |\n| 6:00 London (winter) | UTC+0 | `0 6 * * *` |\n| 6:00 London (summer) | UTC+1 | `0 5 * * *` |\n\nFormula: `UTC hour = local hour - offset`. For example, 6:00 at UTC+2 → `6 - 2 = 4` → `0 4 * * *`.\n\nNote: if your region observes daylight saving time, the UTC equivalent shifts by 1 hour twice a year — there is no way to handle this automatically in GitHub Actions.\n\nGitHub Actions cron may also be delayed by a few minutes during periods of high load.\n\n## Syncing with the template\n\nRepos created from a template don't automatically receive updates. To pull in the latest changes:\n\n```bash\n# Add the template as a remote (one-time)\ngit remote add template https://github.com/susomejias/claude-code-cron.git\n\n# Fetch and merge the latest changes\ngit fetch template\ngit merge template/main --allow-unrelated-histories\n```\n\nResolve any conflicts, then commit and push. You can repeat the fetch + merge step anytime the template is updated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusomejias%2Fclaude-code-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusomejias%2Fclaude-code-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusomejias%2Fclaude-code-cron/lists"}