Google AI Studio がビルドモードに「GitHub からインポート」機能を追加し、既存リポジトリを編集・デプロイ可能なアプリに変換
Google AI Studio が Build モードに GitHub リポジトリからのインポート機能を追加し、既存コードを即座に実行可能・編集可能なアプリへ変換するワークフローを実現した。
キーポイント
GitHub リポジトリの自動変換機能
Build モードで GitHub からリポジトリを選択すると、AI Studio のランタイム互換形式へ自動的に変換され、編集とデプロイが可能になる。
開発ワークフローの拡張
従来のプロンプトからのゼロベース開発に加え、既存コードを起点として AI を活用して継続的に改善・デプロイする「インポート→反復→デプロイ」の流れが確立された。
セキュリティ設定の自動化
Gemini API を使用する際、API キーをクライアント側に露出させるリスクを防ぐため、自動的にサーバーサイドシークレットとして設定される仕組みが導入された。
既存リポジトリの即時活用
Google AI Studio の Build モードに「Import from GitHub」機能が追加され、Vite や React などの既存プロジェクトをインポートして編集・デプロイ可能なアプリに変換できるようになりました。
セキュリティ重視の API キー管理
Gemini API のキーはクライアントコードに埋め込まず、サーバーサイド環境変数(GEMINI_API_KEY)から読み取る形式で提供され、セキュリティリスクを回避する設計が推奨されています。
ハッカソン・プロトタイプの迅速な進化
過去のハッカソンのコードやスクリプトベースのプロトタイプをインポートし、AI を活用して UI を追加したり設定ページを実装したりすることで、短期間で本格的なアプリとしてデプロイできます。
影響分析・編集コメントを表示
影響分析
この機能は、AI エージェントによるコード生成と既存のエンジニアリング資産をシームレスに統合する重要な一歩であり、開発者が手元のコードベースを即座に AI の文脈で活用・拡張できる環境を提供します。特にセキュリティ設定の自動化により、実運用レベルでの導入障壁が下がるため、企業内でのプロトタイプから本番デプロイまでのサイクルが大幅に短縮される可能性があります。
編集コメント
既存のコードベースを AI で再構築・デプロイするワークフローが実装されたことで、開発者の生産性向上とセキュリティリスク低減の両面で即効性のある改善が見込めます。
Google AI Studio は、ビルドモード内に「GitHub からインポート」機能を展開しています。これはリポジトリを取得し、ランタイム互換形式に変換する機能です。その後、継続的な反復開発やデプロイなどが可能になります。このアップデートは、Google AI Studio の公式アカウントと、製品を率いるローガン・キルパトリック氏によって共有されました。
@github からコードを @ai_studio のビルドに持ち込むのは、『GitHub からインポート』をクリックするだけです pic.twitter.com/lIyZ1lnpQQ
— Google AI Studio (@GoogleAIStudio) 2026 年 7 月 8 日
本日、@GoogleAIStudio のビルドで「GitHub からインポート」機能を展開します!
リポジトリを自動的に取得し、当社のランタイムと互換性のある形式に変換した上で、AI Studio 内で継続的な反復開発やデプロイなどを可能にします pic.twitter.com/F63MjsJQjf
— Logan Kilpatrick (@OfficialLoganK) 2026 年 7 月 8 日
『GitHub からインポート』
ビルドモードは、Google AI Studio の「バイブコーディング」用インターフェースです。プロンプトでアプリを記述すると、Gemini がライブプレビュー付きのフルスタックアプリを生成します。その後、チャットまたは注釈モードを通じてリファインできます。
新機能では、スタート地点として空白のプロンプトではなく、GitHub リポジトリを指定できるようになります。AI Studio はそのリポジトリを取得し、ランタイムと互換性のある形式に変換します。
このフローは 3 つの部分で構成されます:
- リポジトリのインポート
- AI Studio 内での継続的な反復開発
- デプロイの実行
インポートフローの仕組み
Google は内部の手順を公開していません。平易に言えば、インポーターはリポジトリを読み込み、ランタイムに合わせて調整し、Build 内で開きます。以下に埋め込まれた対話型ウォークスルーは概念シミュレーションであり、実際のバックエンドではありません。
(function(){
var f=document.getElementById('mtp-embed');
window.addEventListener('message',function(e){
if(e&&e.data&&e.data.type==='mtp-embed-height'&&e.data.height){
f.style.height=e.data.height+'px';
}
});
})();
コードを移動する際に重要となるドキュメント化された挙動があります。Gemini API を使用するアプリの場合、AI Studio は GEMINI_API_KEY をサーバーサイドのシークレットとして設定します。キーはクライアント側のコードに決して含まれません。
したがって、リポジトリがブラウザから Gemini API を呼び出す場合は、サーバーサイドのパターンを計画してください。以下の例では対比のために両方の側面を示しています。
Copy CodeCopiedUse a different Browser
// 推奨されない:ブラウザから Gemini API を呼び出すとキーが露出する
const res = await fetch(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": MY_KEY, // クライアントバンドル内で可視
},
body: JSON.stringify({ contents: [{ parts: [{ text: "Hello" }] }] }),
}
);
// 推奨:キーはサーバー環境から読み込み、API サーバー側で呼び出してください
// GEMINI_API_KEY はサーバーサイドのランタイム内にあり、配布されるクライアントコード内には存在しません。
export async function handler(req) {
const apiKey = process.env.GEMINI_API_KEY; // サーバーサイドのみ
const r = await fetch(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey,
},
body: JSON.stringify({ contents: [{ parts: [{ text: "Hello" }] }] }),
}
);
return new Response(await r.text(), { status: r.status });
}
上記のエンドポイントとヘッダーは Gemini REST API に準拠しています。重要なのは配置場所です:キーをサーバー上に保持してください。
ユースケースと例
ハッカソンリポジトリの復活:数ヶ月前に Vite と React を組み合わせたデモを作成したことがあります。それをインポートし、Build に対して設定ページを追加するよう指示して、Cloud Run にデプロイします。
チームメンバーの迅速なオンボーディング:同僚が公開リポジトリを共有します。それをインポートし、ウォークスルー UI を生成して、ライブプレビューリンクとして返却します。
スクリプトからアプリへの変換:リポジトリ内に小さな Gemini プロトタイプがあります。それをインポートし、注釈モードを使用して実際のインターフェースを追加します。
GitHub からのインポートとその他のビルドワークフローの比較
| ワークフロー | 機能 | 方向性 | 適しているケース | 備考 |
|---|---|---|---|---|
| GitHub からのインポート(新機能) | リポジトリを取り込み、ランタイム向けに正規化する | GitHub → AI Studio | 既存のコードベースの継続 | 直近で発表;詳細は現在も進行中 |
Push / export to GitHub
リポジトリを作成し、アプリコードをコミットする
AI Studio → GitHub
バージョン管理と外部編集
歴史的に 1 つのアプリにつき 1 つのリポジトリ
Download as ZIP
生成されたコードを ZIP ファイルとしてエクスポートする
AI Studio → ローカル
VS Code または Cursor でのローカル開発
手動で再インポートが必要
Remix from App Gallery
ギャラリーのアプリを Build モードにコピーする
Gallery → AI Studio
テンプレートから開始
自分のリポジトリではない
Deploy to Cloud Run
アプリを生 URL に配信する
AI Studio → Cloud Run
本番環境ホスティング
Cloud Run の課金が発生する可能性がある
この表は変化の形状を示しています。インポート機能により、以前欠けていた流入経路が追加されました。
主要なポイント
Google AI Studio は Build モードに「GitHub からのインポート」機能を追加し、既存のリポジトリから開始できるようにしました。
AI Studio はリポジトリをランタイム互換形式に変換した後、反復処理とデプロイをサポートします。
これにより、Build モードが以前欠いていた GitHub からの流入経路が追加されました。
AI Studio のランタイムでは GEMINI_API_KEY がサーバーサイドで保持されるため、クライアントサイドのキーコードを使用する場合はその点を考慮してください。
正確なランタイム形式、プライベートリポジトリのサポート、同期動作については、リリース時点ではまだ未確定です。
この投稿「Google AI Studio Adds 'Import from GitHub' to Build Mode, Turning an Existing Repo Into an Editable, Deployable App」は、MarkTechPost に最初に掲載されました。
原文を表示
Google AI Studio is rolling out an ‘import from GitHub’ feature inside its Build mode. It takes a repo and transforms it into a runtime-compatible format. You can then keep iterating on it, deploy it, and more. The update was shared by the Google AI Studio account and by Logan Kilpatrick, who leads the product.
bringing your code from @github into ai studio build is as easy as clicking 'import from github' pic.twitter.com/lIyZ1lnpQQ
— Google AI Studio (@GoogleAIStudio) July 8, 2026
Today we are rolling out "import from GitHub" in @GoogleAIStudio Build!!
We will automagically take the repo and transform it into a format that is compatible with our runtime and then let you keep iterating on it in AI Studio, deploy it, and more. pic.twitter.com/F63MjsJQjf
— Logan Kilpatrick (@OfficialLoganK) July 8, 2026
‘Import from GitHub’
Build mode is Google AI Studio’s ‘vibe coding’ surface. You describe an app in a prompt. Gemini generates a full-stack app with a live preview. You then refine it through chat or annotation mode.
The new feature adds a starting point. Instead of a blank prompt, you point Build at a GitHub repository. AI Studio then transforms the repo into a format compatible with its runtime.
The flow has three parts:
Import the repo
Keep iterating on it in AI Studio.
Deploy it.
How the Import Flow Works
Google has not published the internal steps. In plain terms, the importer reads the repo, fits it to the runtime, then opens it in Build. The interactive walkthrough embedded below is a concept simulation, not the real backend.
(function(){
var f=document.getElementById('mtp-embed');
window.addEventListener('message',function(e){
if(e&&e.data&&e.data.type==='mtp-embed-height'&&e.data.height){
f.style.height=e.data.height+'px';
}
});
})();
One documented behavior matters when moving code in. For apps that use the Gemini API, AI Studio configures your GEMINI_API_KEY as a server-side secret. Keys are never included in client-side code.
So plan for the server-side pattern if your repo calls the Gemini API from the browser. The example below shows both sides for contrast.
Copy CodeCopiedUse a different Browser
// Discouraged: calling the Gemini API from the browser exposes the key
const res = await fetch(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": MY_KEY, // visible in the client bundle
},
body: JSON.stringify({ contents: [{ parts: [{ text: "Hello" }] }] }),
}
);
// Recommended: read the key from the server environment, call the API server-side
// GEMINI_API_KEY lives in the server-side runtime, not in shipped client code.
export async function handler(req) {
const apiKey = process.env.GEMINI_API_KEY; // server-side only
const r = await fetch(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest:generateContent",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey,
},
body: JSON.stringify({ contents: [{ parts: [{ text: "Hello" }] }] }),
}
);
return new Response(await r.text(), { status: r.status });
}
The endpoint and header above match the Gemini REST API. The point is placement: keep the key on the server.
Use Cases With Examples
Reviving a hackathon repo: You built a Vite plus React demo months ago. You import it, ask Build to add a settings page, then deploy to Cloud Run.
Onboarding a teammate fast: A colleague shares a public repo. You import it, generate a walkthrough UI, and hand back a live preview link.
Turning a script into an app: You have a small Gemini prototype in a repo. You import it, then use annotation mode to add a real interface.
Import from GitHub vs Other Build Workflows
WorkflowWhat it doesDirectionBest forNotes
Import from GitHub (new)Ingests a repo, normalizes it to the runtimeGitHub → AI StudioContinuing an existing codebaseJust announced; details still emerging
Push / export to GitHubCreates a repo and commits app codeAI Studio → GitHubVersion control and external editingHistorically one repo per app
Download as ZIPExports generated code as a ZIP fileAI Studio → localLocal dev in VS Code or CursorManual re-import needed
Remix from App GalleryCopies a gallery app into BuildGallery → AI StudioStarting from a templateNot your own repo
Deploy to Cloud RunShips the app to a live URLAI Studio → Cloud RunProduction hostingCloud Run pricing may apply
The table shows the shape of the change. Import adds the inbound path that was missing.
Key Takeaways
Google AI Studio is adding “import from GitHub” to Build mode, letting you start from an existing repo.
AI Studio transforms the repo into a runtime-compatible format, then supports iterate and deploy.
This adds the inbound GitHub path that Build mode previously lacked.
AI Studio’s runtime keeps GEMINI_API_KEY server-side, so plan for that with client-side key code.
Exact runtime format, private-repo support, and sync behavior are still unconfirmed at launch.
The post Google AI Studio Adds ‘Import from GitHub’ to Build Mode, Turning an Existing Repo Into an Editable, Deployable App appeared first on MarkTechPost.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み