# 策展 · X (Twitter) 🔥🔥🔥

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 作者：OpenAI Developers (@OpenAIDevs) · 平台：X (Twitter) · 日期：2026-06-26

> 原始來源：https://x.com/OpenAIDevs/status/2070261549391024403

## 中文摘要

OpenAI Developers 推出 Codex 的 DigitalOcean plugin，讓使用者能透過單一 prompt 建立並管理持久化的雲端開發環境。

**核心功能與價值**
這項整合旨在解決 AI Agent 在執行複雜、長時間任務時，因本地環境中斷而導致的工作停滯問題。透過與 DigitalOcean 的深度整合，使用者無需手動設定伺服器、SSH 金鑰或安裝相依套件，即可直接在 Codex 介面中完成基礎架構的佈建。其關鍵優勢包括：
- **持久化運行**：開發環境運行於使用者的 DigitalOcean 帳戶中，即使關閉電腦或離開工作崗位，任務仍能持續進行。
- **行動化管理**：支援透過 ChatGPT 行動應用程式監控、指揮或啟動遠端任務。
- **自動化配置**：系統會自動建立預載 `codex-universal` Docker 映像檔的 DigitalOcean Droplet，並自動處理 SSH 金鑰配置。

**操作與設定流程**
使用者可透過兩種方式啟用此功能：

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1782452384951-z3dnw12p.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/32436b0c46477b12.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> 影片展示如何透過 DigitalOcean 外掛程式，在 Codex 應用程式中快速建立並管理虛擬機器（VM）。

1. **從 Codex 介面啟動**：
   - 在 Codex plugin 目錄中安裝 DigitalOcean plugin。
   - 透過 OAuth 完成帳戶連結。
   - 輸入 prompt：「`@DigitalOcean create a new remote machine`」。
   - 系統將自動完成 Droplet 佈建、SSH 金鑰生成，並提供連結以完成連線。
2. **從 DigitalOcean Marketplace 啟動**：
   - 選擇「Codex Droplet」範本建立 Droplet。
   - 在 Codex 中安裝 plugin 並透過 OAuth 連結。
   - 輸入 prompt：「`@DigitalOcean connect <droplet id>`」即可完成綁定。

**實際應用場景**
根據官方演示，該 plugin 支援多種進階開發工作流：
- **環境管理**：透過自然語言指令要求 Codex 安裝相依套件、設定專案或增減雲端機器數量。
- **任務轉移**：利用「handoff」功能，將當前本地端的開發執行緒（thread）無縫遷移至雲端 Droplet 繼續作業。
- **資源監控**：在建立過程中，系統會自動顯示 Droplet 的配置資訊（如 `region: nyc3`、`size: s-2vcpu-4gb`），確保資源符合開發需求。

此功能目前已進入公開預覽（Public Preview）階段，旨在減少基礎架構設定的繁瑣步驟，讓開發者能更專注於程式撰寫本身。

## 媒體內容

**影片展示如何透過 DigitalOcean 外掛程式，在 Codex 應用程式中快速建立並管理虛擬機器（VM）。**

**影片中的 Prompt 與操作**

Prompt（00:25）：

```
為 Codex 提供一個 DigitalOcean droplet。
```

原文：Provision a DigitalOcean droplet for Codex.

操作步驟：

1. （00:16）安裝 DigitalOcean 外掛程式
2. （00:20）授權 ChatGPT 存取 DigitalOcean 帳號
3. （00:25）輸入指令建立 droplet
4. （00:43）啟用 SSH 連線
5. （00:48）新增遠端專案
6. （01:49）開啟內建終端機
7. （02:01）執行 handoff 任務轉移

**逐字稿**

- `00:00` 在筆記型電腦上使用 Codex 執行非常漫長或複雜的任務時，有時會感到受限。（Running really long or complex tasks with Codex on your laptop can feel limiting at times.）
- `00:05` 透過 Codex 中新的 DigitalOcean plugin，您可以快速在您的 DigitalOcean（With the new DigitalOcean plugin in Codex, you can quickly spin up new VMs inside your DigitalOcean）
- `00:10` 帳戶中啟動新的虛擬機器（VM），執行 Codex Agent，然後從應用程式中控制它們。讓我示範給您看。首先，（account that run the Codex agent and then control them from the app. Let me show you how. First,）
- `00:16` 在應用程式中安裝該 plugin。您必須使用您的 DigitalOcean 帳戶登入或建立（install the plugin in the app. You will have to sign in with your DigitalOcean account or create）
- `00:20` 一個新帳戶。之後，您要做的第一件事就是要求 Codex 為您啟動一個新的 Droplet。（a new one. Afterwards, the first thing you want to do is ask Codex to spin up a new droplet for you.）
- `00:26` Droplet 是 DigitalOcean 中的一種虛擬機器。由 Codex 使用該 plugin 所配置的 Droplet 已經（A droplet is a VM in DigitalOcean. Droplets provisioned by Codex using the plugin already）
- `00:31` 包含了常見的開發相依套件，例如 Node.js 或 Python，且該 plugin 會為您設定 SSH 憑證。（include common dev dependencies like Node.js or Python and the plugin will set up the SSH credentials for）
- `00:37` 這可能需要幾分鐘的時間。一旦您的 Droplet 設定完成，請使用您的 ChatGPT 帳戶登入，（you. This might take a few minutes. Once your droplet is set up, sign in with your ChatGPT account）
- `00:43` 這樣 Codex 就能自動連線到該虛擬機器。從這裡開始，您可以要求 Codex 設定您（so Codex can automatically connect to the VM. From here, you can ask Codex to set up any of the projects）
- `00:49` 已經在進行的任何專案，或是在虛擬機器中建立新專案。我喜歡用這個方式來開始新的任務，（you're already working on or create new projects in the VM. I like using this to start new tasks that）
- `00:55` 並使用目標模式（goal mode）。我可以讓 Codex 通宵工作，或者在我離開時讓它運作，而不用擔心網路中斷，也不必（use goal mode. I can leave Codex working overnight or when I'm away without losing internet or running）
- `01:00` 帶著半開的筆記型電腦在辦公室走來走去。如果我需要直接在 Droplet 上執行指令，（around the office with my laptop half open. And if I need to run commands directly on the droplet,）
- `01:06` 我可以使用 Codex 內建的終端機。它會透過 SSH 連線自動連接到 Droplet，（I can use Codex's built-in terminal. It will connect automatically to the droplet using the SSH connection）
- `01:12` 我可以用它來安裝新的相依套件或設定我的 Droplet。一旦您在（and I can use it to install new dependencies or configure my droplet. Once you have the same）
- `01:16` 本機和虛擬機器上都有相同的專案，您甚至可以將已經在進行的任務從（project on both your local machine and VM, you can even transfer a task you've already been working on）
- `01:22` 其中一個轉移到另一個。有了 Codex 中新的 DigitalOcean plugin，您現在可以隨需啟動虛擬機器，（from one to the other. With the new DigitalOcean plugin in Codex, you can now spin up a VM on demand）
- `01:28` 只需幾個 prompt 就能執行 Codex。試試看吧！（to run Codex with just a few prompts. Give it a try!）

## 標籤

Codex, 功能更新, 新產品, Deployment, OpenAI, DigitalOcean
