画像付きガイド · 1 本の動画から 15 枚

Claude Code Web 版:ブラウザの中でクラウドセッションを回す

GitHub 連携から PR のマージまでの一連の流れ——リポジトリをクラウド sandbox に渡し、自分でブランチを切って commit するところを見届け、すでに書き上がった Pull Request を開き、引き継ぎたくなったら 1 コマンドで同じ会話をローカル端末へ移します。

GitHub pull request form for the AI-Diagrammer repository already carrying the title Add CLAUDE.md documentation file and a description generated by Claude Code, above a green Able to merge notice
Pull Request のタイトル・本文・ブランチ比較まで、Web 側のセッションが用意してくれます。

約 5 分 · 15 ステップ、いずれも元動画の該当秒へリンク

TL;DR — Claude Code Web 版とは何か

Claude Code Web 版は、同じエージェントを手元のマシンではなく Anthropic が管理するクラウド sandbox で動かすものです。GitHub の認可は 1 回だけ、リポジトリはセッションごとに 1 つ選び、あとはタスクを言葉で書くだけ。セッションは自分のブランチ(ここでは claude/initialize-project-…)で clone・変更・commit・push を行い、書き上がった Pull Request を提示します。ブラウザと端末は別の製品ではありません。「Open in CLI」が claude --teleport のコマンドをコピーするので、まったく同じ会話をローカル端末で再開し、自分のツールで確認できます。マージ後に main で git pull すれば、結果は手元に戻ります。

出典動画

本ページのスクリーンショットはすべて Eric Tech の画面録画から取っています。ブラウザだけで完結する Claude Code Web 版の実演で、収録は 2025 年 10 月、まだ「Research preview」と表示されていた頃のものです。

スクリーンショットは、当サイトが独自に書いた手順の図版としてのみ使用しています。録画に映るのは Claude Code v2.0.24 と Sonnet 4.5 で、UI の細部はその後変わっている可能性があります。動画内のスポンサー区間は本ページでは一切使用していません。

リポジトリを接続する

GitHub の認可は 1 回だけ。以降はセッションごとに 1 リポジトリです。

  1. 1

    claude.ai/code から GitHub を接続する

    claude.ai/code を開くと /onboarding に着地し、見出しの横に「Research preview」のバッジがあります。ページの一文がそのまま製品の説明です——クラウドで複数のコーディングタスクを、ブラウザ・端末・モバイルから。「Connect to GitHub」を押して始めます。

    Claude Code onboarding page at claude.ai/code/onboarding with the headline Code with Claude anywhere and a Connect to GitHub button below a Research preview card
    入口は claude.ai/code/onboarding。連携先として示されるのは GitHub だけです。0:40 から再生
  2. 2

    GitHub の 3 つの権限を承認する

    GitHub が Claude アプリの確認を求めます。権限は短く具体的です——GitHub の本人確認、アクセスできるリソースの把握、あなたに代わっての操作。最後の「Authorize Claude」で claude.ai に戻ります。

    GitHub OAuth consent screen titled Claude by Anthropic would like permission to, listing Verify your GitHub identity, Know which resources you can access and Act on your behalf above an Authorize Claude button
    認可の前に権限を読むこと。「あなたに代わっての操作」がセッションの push を可能にします。0:52 から再生
  3. 3

    クラウドセッションの入力欄を知る

    GitHub を繋ぐとセッションのホーム画面になります。プロンプト欄、「Select repository」、”Default” と書かれた環境チップ、そして空のセッション一覧。リポジトリを選ぶまで何も動かないので、最初の操作は必ずリポジトリの選択です。

    Empty Claude Code cloud session at claude.ai/code showing an Ask Claude to write code box beside a Select repository control, a Default environment chip and a No sessions list
    クラウドセッションに必要なタスク・リポジトリ・環境の 3 つが、この入力エリアにまとまっています。1:02 から再生
  4. 4

    リポジトリを選び、/init と打つ

    ここではリポジトリ欄が EricTechPro/AI-Diagrammer、環境は「Default」のまま。入力したのは 1 行のスラッシュコマンド /init です。新しいクラウド環境を試すのに一番安上がりな方法で、生成されるのは agent がコードを読んで書く CLAUDE.md だけです。

    Claude Code composer with EricTechPro/AI-Diagrammer chosen as the repository, the Default cloud environment selected and the /init slash command typed into the prompt box
    最初のタスクは 3 文字だけ:/init。2:20 から再生

クラウド環境を設定する

sandbox に名前を付け、ネットワークの到達範囲を決め、必要な秘密情報を貼り付けます。

  1. 5

    クラウド環境を定義する

    「New cloud environment」は 3 項目だけです。sandbox の名前(1 つしか使わないなら Default で十分)、ネットワークポリシー、そして .env 形式で貼り付ける秘密情報。録画では API_KEY=hunter2 と DATABASE_URL=bondi という仮の値を使っています。これらは手元ではなく sandbox に属します。

    New cloud environment dialog in Claude Code on the web with the name Default, network access set to Trusted network access and an Environment variables box holding API_KEY=hunter2 and DATABASE_URL=bondi
    環境変数は .env ブロックとして貼るので、アプリの設定を一度にまとめて入れられます。1:25 から再生
  2. 6

    ネットワークポリシーを意識して選ぶ

    ネットワークメニューがこの画面で唯一のセキュリティ判断です。「Trusted network access」は検証済みの配布元から依存を取得し、安全性と性能のバランスを取ります。「No network access」はインターネットを遮断して最大の安全性と引き換えに機能を制限します。「Custom access」は許可・拒否するドメインを自分で列挙します。

    Expanded network access menu inside the New cloud environment dialog offering Trusted network access, No network access and Custom access, each with a one-line explanation of what it permits
    既定は Trusted。最も厳しいのが No network access、最も細かいのが Custom です。1:34 から再生

最初のタスクを走らせる

タスクを書けば、commit・push・PR の下書きまでセッションがやります。

  1. 7

    git 操作もセッションがやる

    セッションの記録には git add CLAUDE.md、Claude を共作者として記す commit、そして git push -u origin claude/initialize-project-011CUK5b4bEuwLiG2a6MdzrR が順に並びます。ブランチはセッションが自分で作るので、名前を考える必要も main に触る必要もありません。

    Claude Code cloud session transcript showing the git add CLAUDE.md, git commit and git push -u origin claude/initialize-project commands and the resulting one file changed with 132 insertions
    1 ファイル・132 行の追加を、セッションが自分で作ったブランチへ push。4:01 から再生
  2. 8

    返ってきた要約を読む

    タスクが止まると、何をしたか、ファイルに何が入ったかを要約します。開発コマンド、Supabase と Azure OpenAI に必要な環境変数、アーキテクチャの説明、データモデル、データベース schema、よくある作業の実践的な指針。その下に「Create PR」と「Open in CLI」の 2 つのボタンが並びます。

    Claude Code on the web reporting that CLAUDE.md was created and pushed to a claude/initialize-project branch, followed by the six bullet points it wrote and the Create PR and Open in CLI buttons
    この要約は、そのまま commit された CLAUDE.md のレビュー項目になります。3:38 から再生
  3. 9

    すでに書き終わった Pull Request に着地する

    「Create PR」を押すと GitHub の compare ページが開きます。緑の「Able to merge」、比較対象に設定済みのブランチ、入力済みのタイトル、そして Generated with [Claude Code](https://claude.com/claude-code) で終わる本物の説明文。文言を直してもいいし、そのまま「Create pull request」を押してもかまいません。

    GitHub compare page for AI-Diagrammer with a green Able to merge notice, the title Add CLAUDE.md documentation file already filled in and a description ending in Generated with Claude Code
    タイトル・本文・ブランチ比較が、クラウドセッションから埋まった状態で届きます。4:24 から再生

セッションを端末へ引き継ぐ

ブラウザから、自分のマシン上のまったく同じ会話へ移ります。

  1. 10

    セッションを端末へ teleport する

    「Open in CLI」がコマンドをコピーします。手元のプロジェクトフォルダで claude --teleport session_011CUK5b4bEuwLiG2a6MdzrR を実行すると、同じ会話がローカルで再開します。バナーもモデルも、流れ続ける /init の解析もブラウザと同一です。これは再開ではなく引き継ぎです。

    Terminal in the AI-Diagrammer folder running claude --teleport session_011CUK5b4bEuwLiG2a6MdzrR, resuming the browser conversation in Claude Code v2.0.24 with the /init codebase analysis already streaming
    claude --teleport はブラウザの会話をそのまま自分の端末に引き継ぎます。5:42 から再生
  2. 11

    図を頼めば、本物の図が出てくる

    セッションに戻り、Mermaid 図付きの README を平文で頼むと、pull 済みリポジトリに実際に描画される構成図ができます。上部が Diagram Editor と Auth Form、その下に Canvas Rendering、AI Input、Supabase、History Hook、Toolbar、さらに下へ Azure OpenAI、ストレージ、自動レイアウトのモジュール。GitHub が README の Preview タブで描画します。

    Rendered README.md preview on GitHub showing the Mermaid architecture diagram Claude wrote, branching from Diagram Editor and Auth Form down to Canvas, AI Input, Supabase, History Hook and Toolbar
    Mermaid のソースは Claude が書き、図を描くのは GitHub です。6:21 から再生

マージして手元に戻す

GitHub でマージし、main で pull すれば、ローカルのリポジトリがクラウドセッションと一致します。

  1. 12

    GitHub から離れずにマージする

    Pull Request #1 のタイトルは Initialize project documentation with CLAUDE.md and comprehensive README で、2 つの commit を main にマージします。マージが済むと GitHub が完了を知らせ、セッションのブランチを消すための「Delete branch」ボタンを出します——多くの人が忘れる後片付けです。

    GitHub pull request number 1 carrying a purple Merged badge, the message Pull request successfully merged and closed and a Delete branch button for the claude/initialize-project branch
    マージ済み・クローズ済み、そしてセッションブランチの削除を促されます。7:19 から再生
  2. 13

    マージ結果を手元に pull する

    main で git pull を 1 回実行するとマージ commit まで fast-forward し、2 files changed, 391 insertions(+), 1 deletion(-) と表示されます。CLAUDE.md が 132 行、README.md が 260 行の追加です。クラウドセッションの成果が、あなたが確認した後で手元に来ました。

    Terminal output of git pull on main after the merge, showing Fast-forward, CLAUDE.md with 132 added lines, README.md with 260 and a total of two files changed with 391 insertions
    マージ commit まで fast-forward:2 ファイル、391 行追加、1 行削除。7:37 から再生

セッションを並行で回す

クラウド版がワークフローを変える理由:セッションごとに専用ブランチと専用 sandbox が付きます。

  1. 14

    旧来の形:開発者ごとに 1 環境

    置き換えられる前のワークフローが手描きで示されます。Dev 1 と Dev 2 がそれぞれ自分の環境で Claude Code を動かし、同じプロジェクトの別々のブランチを進め、最後にどちらも main へマージします。環境が 1 つなら同時に 1 タスク。目の前のブランチが終わるまで次を始められません。

    Hand-drawn Excalidraw diagram labelled Env #1 and Env #2 where Dev 1 and Dev 2 each drive their own Claude Code instance into branch 1 and branch 2 of the same project before merging to main
    開発者 2 人、環境 2 つ、ブランチ 2 本——構造として直列です。7:53 から再生
  2. 15

    新しい形:1 人で複数セッション

    同じ開発者が 3 つの Claude Code Web セッションへ同時に枝分かれします。それぞれが専用の sandbox、専用のブランチ、専用の Pull Request を持ち、3 本とも GitHub を通って好きな順にテストへ回ります。ボトルネックは「マシンが何台あるか」から「どれだけレビューできるか」へ移ります。

    Hand-drawn My Workflow diagram with Eric fanning out to three Claude Code Web sessions that each push a separate branch and pull request through GitHub to a testing step
    3 セッション、3 ブランチ、3 つの Pull Request——sandbox 同士は衝突しません。8:30 から再生

Claude Code Web 版の FAQ