本文へスキップ
記事中級

コーディングエージェントのランナーを作る

GitHub リポジトリを Linux サンドボックスにクローンし、Claude Code にバックグラウンドでタスクを実行させ、変更を diff として返す Worker を構築します。

最終更新
2026年10月22日
元の記事を読む

この紹介文は現在英語版のみです。

You send a prompt, a coding agent edits a GitHub repository inside an isolated Linux sandbox, and you read its changes back as a diff. The runner uses Claude Code, which calls Anthropic models through AI Gateway; the Worker injects the gateway token so the sandbox never holds it.

What you’ll learn

  • Create a Sandbox SDK project
  • Restrict the sandbox’s outbound traffic to AI Gateway and GitHub
  • Run Claude Code in the background and route requests to it
  • Deploy the runner and run a task end to end

Cloudflare products used

Sandbox SDK, Workers, AI Gateway.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

さらに学ぶ