CompareClaude Code Routines alternative

View as Markdown

Claude Code Routines alternative

If you already use Claude Code (claude -p), Codex (codex exec), or OpenCode locally and want those same agents running headless and unattended on schedules and webhooks, you usually weigh three options: vendor-hosted Claude Code Routines (or Codex Cloud), DIY GitHub Actions cron workflows, or anywhere.

anywhere runs headless claude -p (alongside Codex, OpenCode, Gemini, or custom scripts) inside a dedicated gVisor sandbox with a persistent Ubuntu Linux ZFS disk, queued and deduplicated webhooks, Workspace MCP Connections, a shared run Inbox, and $0 compute between runs.

Side-by-side comparison

Capability anywhere Claude Code Routines GitHub Actions (claude -p)
Harness & models Claude Code, Codex, OpenCode, Gemini, OpenRouter, or custom scripts Locked to one vendor’s harness and limits Any CLI, wired manually in YAML
Disk state Persistent ZFS disk (/app/data/ keeps warm git clones, SQLite, notes, CLI auth) Fresh repo checkouts or ephemeral containers where disk resets between runs Ephemeral runner wiped every run
Schedules Any-minute 5-field cron with IANA time zones (no hourly minimum) Vendor-managed schedule intervals and cloud caps Cron delays at top of hour; 5-minute minimum; disabled after 60 days of inactivity on public repos
Webhooks Secret HTTPS URLs saved before 202, dedupe_header, 100-deep serial queue, kept input + replay Vendor-managed event triggers and limits Requires custom dispatch token and payload bridge; no native webhook dedupe or replay
MCP auth & secrets Workspace MCP Connections inject OAuth/API tokens upstream (never on disk) + AES-256-GCM vault Fixed vendor integrations Static repo secrets in env vars; manual OAuth refresh
Headless browser Bundled agent-browser + pinned headless Chromium inside sandbox No persistent per-worker Linux browser disk Manual Playwright setup and teardown every run
Team visibility Shared workspace Inbox with notes, logs, transcripts, sandboxed HTML reports; unlimited free teammates on Team Single-user threads or vendor account scope; no shared report Inbox Raw CI job logs mixed with builds; no report Inbox
Pricing Raw compute while awake + disk; 0% AI markup; Free ($0), Pro ($10), Team ($50) Bundled per-person vendor plan with opaque cloud caps Runner minutes + manual maintenance

Running headless Claude Code on anywhere

A worker is a plain folder with an anywhere.toml and no workflow SDK:

title = "Daily error triage"
build = "npm i -g @anthropic-ai/claude-code"

[[trigger]]
name = "morning"
cron = "0 9 * * 1-5"
timezone = "America/New_York"
run = "bash run.sh"
timeout = 1800

[[trigger]]
name = "on-pr"
webhook = true
dedupe_header = "x-github-delivery"
run = "bash review-pr.sh"
timeout = 1200

Authenticate with either an encrypted API key (anywhere secrets set --worker triage ANTHROPIC_API_KEY) or an interactive CLI sign-in stored on the worker’s persistent disk (anywhere exec -t triage -- env CLAUDE_CONFIG_DIR=/app/data/claude claude auth login).

Because /app/data/ survives every run, sleep, and deploy:

  • Your git repo clones once and runs git fetch on every subsequent trigger instead of re-cloning gigabytes on every run.
  • Agent memory, SQLite databases, and daily triage notes persist across runs so tomorrow’s run knows what yesterday’s run already fixed.
  • You can inspect outputs, notes, and HTML reports ($ANYWHERE_RUN_DIR/artifacts/index.html) without waking the worker, or replay any failed webhook run with anywhere runs replay RUN_ID.

Read Harnesses & sign-in for safe headless claude -p flags (</dev/null, IS_SANDBOX=1, --permission-mode dontAsk) and Triggers for webhook deduplication and serial queues.

When Claude Code Routines or GitHub Actions is a better fit

  • Choose Claude Code Routines if you only ever run Anthropic’s Claude Code, don’t need persistent disk state between runs or minute-accurate cron, and want everything inside Anthropic’s native UI.
  • Choose GitHub Actions if your job is strictly tied to CI builds and artifacts inside a single GitHub repository and doesn’t need warm state, arbitrary webhooks, or cross-tool MCP OAuth.
  • Choose anywhere when you want headless Claude Code, Codex, OpenCode, or Gemini running reliably across cron and webhooks on warm persistent Linux disks, with shared team ownership and zero AI markup.

See all comparisons on /compare or get started in two minutes with /setup.

For agents:Markdown (/compare/claude-code-routines.md)Index (/llms.txt)