Update to DigitalOcean
Snapshot Nov 24, 2026 · 18:11 UTC · version 0.2.8
Collection source: downloaded plugin package.
Payment or plan references changed
Skill instructions — Now says: **Use only this plugin's bundled DigitalOcean MCP tools and Python scripts. doctl, ad hoc integration configs, and any other DigitalOcean CLI tools...
Observed in published text. Live prices and checkout terms have not been verified by this change.
Up to 3 plugins free · no card required.
All fields and original values.
Skill instructions
Nov 2, 2026 · 18:11 UTC
**Only the installed Codex DigitalOcean app tools and the bundled Python scripts may be used. doctl, ad hoc integration configs, and any other DigitalOcean CLI tools are prohibited.** - **Prerequisites:** a funded DigitalOcean account, t...
Nov 24, 2026 · 18:11 UTC
**Use only this plugin's bundled DigitalOcean MCP tools and Python scripts. doctl, ad hoc integration configs, and any other DigitalOcean CLI tools are prohibited.** - **Prerequisites:** a funded DigitalOcean account, an authenticated co...
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -9,14 +9,14 @@ # Provision a DigitalOcean droplet as a Codex remote workspace Follow these steps in order. Do not skip or reorder them. -**Only the installed Codex DigitalOcean app tools and the bundled Python scripts -may be used. doctl, ad hoc integration configs, and any other DigitalOcean CLI -tools are prohibited.** +**Use only this plugin's bundled DigitalOcean MCP tools and Python scripts. +doctl, ad hoc integration configs, and any other DigitalOcean CLI tools are +prohibited.** ## Before you start -- **Prerequisites:** a funded DigitalOcean account, the installed and - authenticated Codex **DigitalOcean** app, a local `ssh`/`ssh-keygen` +- **Prerequisites:** a funded DigitalOcean account, an authenticated connection + to this plugin's bundled DigitalOcean MCP server, a local `ssh`/`ssh-keygen` (OpenSSH), Python 3, and the Codex desktop app. - **Cost:** the droplet bills **hourly from creation until you delete it**. Sizes in step 5 show approximate monthly rates. Remind the user to delete it @@ -34,20 +34,19 @@ locate the directory that actually contains `scripts/keygen.py`. Use `<skill_dir>/scripts/<name>.py` (an absolute path) in **every** command below. -## Step 1 — Verify DigitalOcean app access +## Step 1 — Verify DigitalOcean MCP access -This plugin depends on the single Codex **DigitalOcean** app. Use it for all -DigitalOcean operations; do not register or log in to separate plugin-owned app -integrations. +This plugin depends on its bundled **DigitalOcean MCP server**. Use its tools +for all DigitalOcean operations. -The **DigitalOcean** app provides both: +The DigitalOcean MCP server provides both: - SSH key tools: `key-create`, `key-list`, `key-delete`. - Droplet tools: `droplet-create`, `droplet-get`, `droplet-delete`. -Confirm that these tools are available before continuing. If the app's tools are -missing or unauthenticated, stop and tell the user to install or authenticate -the DigitalOcean app in Codex. Do not fall back to doctl, API tokens, or a local -integration config. +Confirm that these tools are available before continuing. If the MCP tools are +missing or unauthenticated, stop and tell the user to authenticate the +DigitalOcean MCP connection in Codex. Do not fall back to doctl, API tokens, or +a local integration config. ## Step 2 — Generate SSH key pair @@ -67,17 +66,17 @@ ## Step 3 — Upload SSH public key -Call the **DigitalOcean** app tool **`key-create`**: +Call the DigitalOcean MCP tool **`key-create`**: | Parameter | Value | |-----------|-------| | `Name` | `key_name` from step 2 | | `PublicKey` | `pub_key` from step 2 | -Extract `ssh_key.id` from the response — this is `<key_id>`. +Extract `key.id` from the response — this is `<key_id>`. If the call fails because a key with that name or fingerprint **already exists** -(e.g. a previous run), do not create a duplicate: call the **DigitalOcean** app +(e.g. a previous run), do not create a duplicate: call the DigitalOcean MCP tool **`key-list`**, find the entry whose `name` matches `key_name` (or whose fingerprint matches the uploaded key), and use its `id` as `<key_id>`. @@ -85,10 +84,10 @@ Ask the user, in chat: -> Use the defaults — region **`nyc3`** (New York, US) and size -> **`s-4vcpu-8gb`** (4 vCPU / 8 GB / 160 GB, ~$48/mo) — or customize them? +> Use the defaults — region **`sfo2`** (San Francisco, US) and size +> **`s-4vcpu-8gb`** (4 vCPU / 8 GB / 160 GB disk, ~$48/mo) — or customize them? -If they choose the defaults, use `nyc3` as `<region>` and `s-4vcpu-8gb` as +If they choose the defaults, use `sfo2` as `<region>` and `s-4vcpu-8gb` as `<size>`, then skip step 5 and continue to step 6. If they want to customize the defaults, present this region list first and ask @@ -96,8 +95,9 @@ | Slug | Location | |------|----------| -| `nyc3` *(default)* | New York, US | +| `sfo2` *(default)* | San Francisco, US | | `sfo3` | San Francisco, US | +| `nyc3` | New York, US | | `tor1` | Toronto, CA | | `lon1` | London, UK | | `fra1` | Frankfurt, DE | @@ -113,41 +113,51 @@ Skip this step if `<size>` was already set to the default in step 4. -Otherwise, present this size list and ask the user to reply with a slug. Every -size below has at least **160 GB** of disk. Prices are approximate — confirm in -the DigitalOcean dashboard. - -| Slug | vCPU | RAM | Disk | Tier | ~$/mo | -|------|------|-----|------|------|-------| -| `s-4vcpu-8gb` *(default)* | 4 | 8 GB | 160 GB | Shared basic | $48 | -| `s-2vcpu-8gb-160gb-intel` | 2 | 8 GB | 160 GB | Basic Intel | $48 | -| `s-8vcpu-16gb` | 8 | 16 GB | 320 GB | Shared basic | $96 | -| `c5-4vcpu-8gb` | 4 | 8 GB | 250 GB | Premium CPU-optimized | $124 | -| `g6_5-2vcpu-8gb` | 2 | 8 GB | 163 GB | Premium general-purpose | $91 | +Otherwise, present this size list and ask the user to reply with a slug. The +Codex Universal image requires a **160 GB disk**, so every size below has at +least 160 GB; smaller sizes (for example `s-2vcpu-4gb`, `c-2`, `g-2vcpu-8gb`) +are rejected by DigitalOcean with "Cannot create a droplet with a smaller disk +than the image". Prices are approximate — confirm in the DigitalOcean dashboard. + +| Slug | vCPU | RAM | Disk | ~$/mo | Regions | +|------|------|-----|------|-------|---------| +| `s-4vcpu-8gb` *(default)* | 4 | 8 GB | 160 GB | $48 | all listed **except** `nyc3`, `fra1` | +| `s-2vcpu-8gb-160gb-intel` | 2 | 8 GB | 160 GB | $48 | all listed | +| `s-4vcpu-8gb-intel` | 4 | 8 GB | 160 GB | $56 | all listed | +| `s-4vcpu-8gb-240gb-intel` | 4 | 8 GB | 240 GB | $64 | all listed | +| `s-8vcpu-16gb` | 8 | 16 GB | 320 GB | $96 | all listed **except** `nyc3`, `fra1` | +| `s-4vcpu-16gb-320gb-intel` | 4 | 16 GB | 320 GB | $96 | all listed | + +The plain `s-4vcpu-8gb` and `s-8vcpu-16gb` slugs are not sold in `nyc3` or +`fra1`; if the user picked one of those regions, steer them to an `-intel` +slug of the same shape. Validate their reply against this table. If it is not one of these slugs, ask again — do not pass an unlisted value through. The chosen slug is `<size>`. ## Step 6 — Create droplet -Call the **DigitalOcean** app tool **`droplet-create`**: +Call the DigitalOcean MCP tool **`droplet-create`**: | Parameter | Value | Notes | |-----------|-------|-------| | `Name` | `name` from step 2 | | | `Region` | `<region>` from step 4 | | | `Size` | `<size>` from step 5 | | -| `ImageID` | `251129059` | DigitalOcean **Codex Universal** image | +| `ImageSlug` | `codexuniversal` | DigitalOcean **Codex Universal** 1-click image (slug has no hyphen). Pass the slug as a string; do **not** also pass `ImageID` (the two are mutually exclusive). | | `SSHKeys` | `["<key_id>"]` | | Extract `droplet.id` from the response — this is `<droplet_id>`. If `droplet-create` fails, show the user the error and handle it by cause — do not blindly retry the same values: -- **Size not available in this region** (Intel and premium tiers like - `s-2vcpu-8gb-160gb-intel`, `c5-4vcpu-8gb`, and `g6_5-2vcpu-8gb` are not in - every region): go back to step 4 or 5 and pick a different region/size - combination. +- **Size not available in this region** (the plain `s-4vcpu-8gb` and + `s-8vcpu-16gb` slugs are not sold in `nyc3` or `fra1`): go back to step 4 or + 5 and pick a different region/size combination — the `-intel` slugs exist in + every listed region. +- **Cannot create a droplet with a smaller disk than the image**: the chosen + size has less than 160 GB of disk. Go back to step 5 and pick a size from the + table; never pass through a smaller size. - **Payment / quota / limit** errors: stop and tell the user to resolve it in the DigitalOcean dashboard, then re-run. - **Invalid image or any other error:** stop and report it. @@ -189,7 +199,7 @@ ## Step 8 — Check whether the droplet is active -Call the **DigitalOcean** app tool **`droplet-get`** once with +Call the DigitalOcean MCP tool **`droplet-get`** once with `ID: <droplet_id>`. If the response has `status == "active"` **and** `networks.v4` contains an @@ -217,8 +227,8 @@ | `status` | `ACTIVE` | | `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. If it is still not ready, schedule another 1-minute heartbeat. The droplet bills hourly until deleted.` | -Keep all status checks with the DigitalOcean app — do not use doctl or any other -tool to check droplet status. +Keep all status checks with the DigitalOcean MCP server. Do not use doctl or any +other tool to check droplet status. ## Step 9 — Configure local SSH @@ -254,9 +264,9 @@ The droplet bills hourly until deleted. To tear down: -1. **Delete the droplet** — **DigitalOcean** app tool **`droplet-delete`** with +1. **Delete the droplet** — DigitalOcean MCP tool **`droplet-delete`** with `ID: <droplet_id>`. -2. **Delete the SSH key** (optional) — **DigitalOcean** app tool **`key-delete`** +2. **Delete the SSH key** (optional) — DigitalOcean MCP tool **`key-delete`** with the `<key_id>` from step 3. Always confirm with the user before deleting. Do not use doctl for cleanup.
Full technical diff · 1 changed fields
changed /skill_md_contents
"---\nname: provision-droplet\ndescription: >\n Use when the user wants to spin up / create / launch / provision a\n DigitalOcean droplet (or \"a remote dev box on DO\") and connect to it from\n Codex as a remote SSH workspace.\n---\n\n# Provision a DigitalOcean droplet as a Codex remote workspace\n\nFollow these steps in order. Do not skip or reorder them.\n**Only the installed Codex DigitalOcean app tools and the bundled Python scripts\nmay be used. doctl, ad hoc integration configs, and any other DigitalOcean CLI\ntools are prohibited.**\n\n## Before you start\n\n- **Prerequisites:** a funded DigitalOcean account, the installed and\n authenticated Codex **DigitalOcean** app, a local `ssh`/`ssh-keygen`\n (OpenSSH), Python 3, and the Codex desktop app.\n- **Cost:** the droplet bills **hourly from creation until you delete it**.\n Sizes in step 5 show approximate monthly rates. Remind the user to delete it\n when done (see *Cleanup* below).\n- **Time:** end-to-end takes ~10–15 minutes — roughly 7 minutes waiting for the\n droplet to boot (steps 7-8) plus up to 7 minutes for cloud-init (step 9). This\n is normal; do not abort.\n- **Locate the bundled scripts first (do this before Step 2).** The helper\n scripts live in the `scripts/` folder **next to this `SKILL.md`** (i.e.\n `provision-droplet/scripts/`). Your current working directory is **not** the\n skill directory, so bare relative paths like `scripts/keygen.py` will fail.\n Resolve the absolute directory that contains this `SKILL.md` and call it\n `<skill_dir>`. If you don't already know it, find it — the installed plugin may\n nest it under a version folder (e.g. `.../<version>/provision-droplet/`), so\n locate the directory that actually contains `scripts/keygen.py`. Use\n `<skill_dir>/scripts/<name>.py` (an absolute path) in **every** command below.\n\n## Step 1 — Verify DigitalOcean app access\n\nThis plugin depends on the single Codex **DigitalOcean** app. Use it for all\nDigitalOcean operations; do not register or log in to separate plugin-owned app\nintegrations.\n\nThe **DigitalOcean** app provides both:\n- SSH key tools: `key-create`, `key-list`, `key-delete`.\n- Droplet tools: `droplet-create`, `droplet-get`, `droplet-delete`.\n\nConfirm that these tools are available before continuing. If the app's tools are\nmissing or unauthenticated, stop and tell the user to install or authenticate\nthe DigitalOcean app in Codex. Do not fall back to doctl, API tokens, or a local\nintegration config.\n\n## Step 2 — Generate SSH key pair\n\n```bash\npython3 <skill_dir>/scripts/keygen.py\n```\n\nParse the JSON output and keep these values for the steps below:\n`prefix`, `name`, `key_name`, `key_path`, `pub_key`.\n\nHow these relate (all derived from one random `prefix` like `bright-hawk-a3f2`):\n- `name` = `codex-<prefix>` — the **droplet name** and the **local SSH alias**\n (they are identical).\n- `key_name` = `codex-key-<prefix>` — the label for the key on DigitalOcean's\n side only.\n- `key_path` — the local private key file.\n\n## Step 3 — Upload SSH public key\n\nCall the **DigitalOcean** app tool **`key-create`**:\n\n| Parameter | Value |\n|-----------|-------|\n| `Name` | `key_name` from step 2 |\n| `PublicKey` | `pub_key` from step 2 |\n\nExtract `ssh_key.id` from the response — this is `<key_id>`.\n\nIf the call fails because a key with that name or fingerprint **already exists**\n(e.g. a previous run), do not create a duplicate: call the **DigitalOcean** app\ntool **`key-list`**, find the entry whose `name` matches `key_name` (or whose\nfingerprint matches the uploaded key), and use its `id` as `<key_id>`.\n\n## Step 4 — Choose a region\n\nAsk the user, in chat:\n\n> Use the defaults — region **`nyc3`** (New York, US) and size\n> **`s-4vcpu-8gb`** (4 vCPU / 8 GB / 160 GB, ~$48/mo) — or customize them?\n\nIf they choose the defaults, use `nyc3` as `<region>` and `s-4vcpu-8gb` as\n`<size>`, then skip step 5 and continue to step 6.\n\nIf they want to customize the defaults, present this region list first and ask\nthem to reply with a slug:\n\n| Slug | Location |\n|------|----------|\n| `nyc3` *(default)* | New York, US |\n| `sfo3` | San Francisco, US |\n| `tor1` | Toronto, CA |\n| `lon1` | London, UK |\n| `fra1` | Frankfurt, DE |\n| `ams3` | Amsterdam, NL |\n| `sgp1` | Singapore, SG |\n| `blr1` | Bangalore, IN |\n| `syd1` | Sydney, AU |\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<region>`.\n\n## Step 5 — Choose a droplet size\n\nSkip this step if `<size>` was already set to the default in step 4.\n\nOtherwise, present this size list and ask the user to reply with a slug. Every\nsize below has at least **160 GB** of disk. Prices are approximate — confirm in\nthe DigitalOcean dashboard.\n\n| Slug | vCPU | RAM | Disk | Tier | ~$/mo |\n|------|------|-----|------|------|-------|\n| `s-4vcpu-8gb` *(default)* | 4 | 8 GB | 160 GB | Shared basic | $48 |\n| `s-2vcpu-8gb-160gb-intel` | 2 | 8 GB | 160 GB | Basic Intel | $48 |\n| `s-8vcpu-16gb` | 8 | 16 GB | 320 GB | Shared basic | $96 |\n| `c5-4vcpu-8gb` | 4 | 8 GB | 250 GB | Premium CPU-optimized | $124 |\n| `g6_5-2vcpu-8gb` | 2 | 8 GB | 163 GB | Premium general-purpose | $91 |\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<size>`.\n\n## Step 6 — Create droplet\n\nCall the **DigitalOcean** app tool **`droplet-create`**:\n\n| Parameter | Value | Notes |\n|-----------|-------|-------|\n| `Name` | `name` from step 2 | |\n| `Region` | `<region>` from step 4 | |\n| `Size` | `<size>` from step 5 | |\n| `ImageID` | `251129059` | DigitalOcean **Codex Universal** image |\n| `SSHKeys` | `[\"<key_id>\"]` | |\n\nExtract `droplet.id` from the response — this is `<droplet_id>`.\n\nIf `droplet-create` fails, show the user the error and handle it by cause — do\nnot blindly retry the same values:\n- **Size not available in this region** (Intel and premium tiers like\n `s-2vcpu-8gb-160gb-intel`, `c5-4vcpu-8gb`, and `g6_5-2vcpu-8gb` are not in\n every region): go back to step 4 or 5 and pick a different region/size\n combination.\n- **Payment / quota / limit** errors: stop and tell the user to resolve it in\n the DigitalOcean dashboard, then re-run.\n- **Invalid image or any other error:** stop and report it.\n\nThe uploaded SSH key from step 3 is harmless to leave, but if you abort here see\n*Cleanup* below.\n\n## Step 7 — Schedule delayed deployment check-in\n\nAfter `droplet-create` succeeds, inspect the response before polling. If the\ndroplet is not already `active` with a public IPv4 address in the create\nresponse, assume provisioning is still in progress.\n\nCreate a Codex **heartbeat** to resume this same thread in **5 minutes** for\nthe first status check. Use the Codex automation tool, not a shell sleep or\nlocal timer:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=5` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. The droplet bills hourly until deleted.` |\n\nAfter creating the heartbeat, tell the user the droplet was created and Codex\nwill check back in about 5 minutes. **Stop the active turn here.** Do not start\n20-second polling until the heartbeat wakes the thread back up. This avoids\nbusy-waiting during the normal 5-7 minute deployment window.\n\nKeep the created heartbeat's automation id as `<heartbeat_id>` if the tool\nreturns one. When the heartbeat resumes the thread, use step 8 to decide\nwhether to keep checking or to delete/pause the heartbeat and continue.\n\nIf the create response already includes `status == \"active\"` and a public IPv4\naddress, skip the heartbeat and continue immediately to step 8.\n\n## Step 8 — Check whether the droplet is active\n\nCall the **DigitalOcean** app tool **`droplet-get`** once with\n`ID: <droplet_id>`.\n\nIf the response has `status == \"active\"` **and** `networks.v4` contains an\nentry with `type == \"public\"`, extract `ip_address` from that entry — this is\n`<ip>`. Delete or pause `<heartbeat_id>` if it still exists, then continue to\nstep 9.\n\nIf the droplet is still not active or does not yet have a public IPv4 address,\nschedule Codex to check this same thread again in **1 minute**, then **stop the\nactive turn here**. Keep checking back every minute until the droplet is ready;\ndo not give up merely because the DigitalOcean deployment is slow. Prefer\nupdating the existing `<heartbeat_id>` to a 1-minute interval; if that is not\npossible, create a replacement heartbeat and delete/pause the old one so there\nis only one active check-in.\n\nUse these values for the 1-minute follow-up heartbeat:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` or `update`, depending on the available automation tool |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=1` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. If it is still not ready, schedule another 1-minute heartbeat. The droplet bills hourly until deleted.` |\n\nKeep all status checks with the DigitalOcean app — do not use doctl or any other\ntool to check droplet status.\n\n## Step 9 — Configure local SSH\n\n```bash\npython3 <skill_dir>/scripts/configure_ssh.py \\\n --alias codex-<prefix> \\\n --ip <ip> \\\n --user root \\\n --key-path <key_path>\n```\n\n**⚠️ Do not interrupt this step.** It waits for cloud-init to finish (up to 7\nminutes) and prints a `⏳` status line every 5 seconds — that output means it is\nworking normally. **Do not run any other commands. Wait for the line\n`DROPLET READY`.** If the script exits with an error instead, report it and\noffer to delete the droplet (see *Cleanup*).\n\n## Final step: adding it to Codex\n\nAsk Codex to open the add-SSH-host flow by responding with a clickable Markdown\nlink. Replace `<ssh-alias>` with `name` from step 2:\n\n`[Add <ssh-alias> to Codex SSH](codex://settings/connections/ssh/add?name=<ssh-alias>)`\n\nThe SSH alias is the local host alias created by step 9. In this workflow, it is\nthe same value as the droplet name: `codex-<prefix>`.\n\nIf the link does not open the flow, or if the user wants to check it manually,\ntell them to open: **Codex App → Settings → Connections → Add SSH Host → pick\nthe alias → choose the remote folder.**\n\n## Cleanup (on failure or when done)\n\nThe droplet bills hourly until deleted. To tear down:\n\n1. **Delete the droplet** — **DigitalOcean** app tool **`droplet-delete`** with\n `ID: <droplet_id>`.\n2. **Delete the SSH key** (optional) — **DigitalOcean** app tool **`key-delete`**\n with the `<key_id>` from step 3.\n\nAlways confirm with the user before deleting. Do not use doctl for cleanup.\n"
"---\nname: provision-droplet\ndescription: >\n Use when the user wants to spin up / create / launch / provision a\n DigitalOcean droplet (or \"a remote dev box on DO\") and connect to it from\n Codex as a remote SSH workspace.\n---\n\n# Provision a DigitalOcean droplet as a Codex remote workspace\n\nFollow these steps in order. Do not skip or reorder them.\n**Use only this plugin's bundled DigitalOcean MCP tools and Python scripts.\ndoctl, ad hoc integration configs, and any other DigitalOcean CLI tools are\nprohibited.**\n\n## Before you start\n\n- **Prerequisites:** a funded DigitalOcean account, an authenticated connection\n to this plugin's bundled DigitalOcean MCP server, a local `ssh`/`ssh-keygen`\n (OpenSSH), Python 3, and the Codex desktop app.\n- **Cost:** the droplet bills **hourly from creation until you delete it**.\n Sizes in step 5 show approximate monthly rates. Remind the user to delete it\n when done (see *Cleanup* below).\n- **Time:** end-to-end takes ~10–15 minutes — roughly 7 minutes waiting for the\n droplet to boot (steps 7-8) plus up to 7 minutes for cloud-init (step 9). This\n is normal; do not abort.\n- **Locate the bundled scripts first (do this before Step 2).** The helper\n scripts live in the `scripts/` folder **next to this `SKILL.md`** (i.e.\n `provision-droplet/scripts/`). Your current working directory is **not** the\n skill directory, so bare relative paths like `scripts/keygen.py` will fail.\n Resolve the absolute directory that contains this `SKILL.md` and call it\n `<skill_dir>`. If you don't already know it, find it — the installed plugin may\n nest it under a version folder (e.g. `.../<version>/provision-droplet/`), so\n locate the directory that actually contains `scripts/keygen.py`. Use\n `<skill_dir>/scripts/<name>.py` (an absolute path) in **every** command below.\n\n## Step 1 — Verify DigitalOcean MCP access\n\nThis plugin depends on its bundled **DigitalOcean MCP server**. Use its tools\nfor all DigitalOcean operations.\n\nThe DigitalOcean MCP server provides both:\n- SSH key tools: `key-create`, `key-list`, `key-delete`.\n- Droplet tools: `droplet-create`, `droplet-get`, `droplet-delete`.\n\nConfirm that these tools are available before continuing. If the MCP tools are\nmissing or unauthenticated, stop and tell the user to authenticate the\nDigitalOcean MCP connection in Codex. Do not fall back to doctl, API tokens, or\na local integration config.\n\n## Step 2 — Generate SSH key pair\n\n```bash\npython3 <skill_dir>/scripts/keygen.py\n```\n\nParse the JSON output and keep these values for the steps below:\n`prefix`, `name`, `key_name`, `key_path`, `pub_key`.\n\nHow these relate (all derived from one random `prefix` like `bright-hawk-a3f2`):\n- `name` = `codex-<prefix>` — the **droplet name** and the **local SSH alias**\n (they are identical).\n- `key_name` = `codex-key-<prefix>` — the label for the key on DigitalOcean's\n side only.\n- `key_path` — the local private key file.\n\n## Step 3 — Upload SSH public key\n\nCall the DigitalOcean MCP tool **`key-create`**:\n\n| Parameter | Value |\n|-----------|-------|\n| `Name` | `key_name` from step 2 |\n| `PublicKey` | `pub_key` from step 2 |\n\nExtract `key.id` from the response — this is `<key_id>`.\n\nIf the call fails because a key with that name or fingerprint **already exists**\n(e.g. a previous run), do not create a duplicate: call the DigitalOcean MCP\ntool **`key-list`**, find the entry whose `name` matches `key_name` (or whose\nfingerprint matches the uploaded key), and use its `id` as `<key_id>`.\n\n## Step 4 — Choose a region\n\nAsk the user, in chat:\n\n> Use the defaults — region **`sfo2`** (San Francisco, US) and size\n> **`s-4vcpu-8gb`** (4 vCPU / 8 GB / 160 GB disk, ~$48/mo) — or customize them?\n\nIf they choose the defaults, use `sfo2` as `<region>` and `s-4vcpu-8gb` as\n`<size>`, then skip step 5 and continue to step 6.\n\nIf they want to customize the defaults, present this region list first and ask\nthem to reply with a slug:\n\n| Slug | Location |\n|------|----------|\n| `sfo2` *(default)* | San Francisco, US |\n| `sfo3` | San Francisco, US |\n| `nyc3` | New York, US |\n| `tor1` | Toronto, CA |\n| `lon1` | London, UK |\n| `fra1` | Frankfurt, DE |\n| `ams3` | Amsterdam, NL |\n| `sgp1` | Singapore, SG |\n| `blr1` | Bangalore, IN |\n| `syd1` | Sydney, AU |\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<region>`.\n\n## Step 5 — Choose a droplet size\n\nSkip this step if `<size>` was already set to the default in step 4.\n\nOtherwise, present this size list and ask the user to reply with a slug. The\nCodex Universal image requires a **160 GB disk**, so every size below has at\nleast 160 GB; smaller sizes (for example `s-2vcpu-4gb`, `c-2`, `g-2vcpu-8gb`)\nare rejected by DigitalOcean with \"Cannot create a droplet with a smaller disk\nthan the image\". Prices are approximate — confirm in the DigitalOcean dashboard.\n\n| Slug | vCPU | RAM | Disk | ~$/mo | Regions |\n|------|------|-----|------|-------|---------|\n| `s-4vcpu-8gb` *(default)* | 4 | 8 GB | 160 GB | $48 | all listed **except** `nyc3`, `fra1` |\n| `s-2vcpu-8gb-160gb-intel` | 2 | 8 GB | 160 GB | $48 | all listed |\n| `s-4vcpu-8gb-intel` | 4 | 8 GB | 160 GB | $56 | all listed |\n| `s-4vcpu-8gb-240gb-intel` | 4 | 8 GB | 240 GB | $64 | all listed |\n| `s-8vcpu-16gb` | 8 | 16 GB | 320 GB | $96 | all listed **except** `nyc3`, `fra1` |\n| `s-4vcpu-16gb-320gb-intel` | 4 | 16 GB | 320 GB | $96 | all listed |\n\nThe plain `s-4vcpu-8gb` and `s-8vcpu-16gb` slugs are not sold in `nyc3` or\n`fra1`; if the user picked one of those regions, steer them to an `-intel`\nslug of the same shape.\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<size>`.\n\n## Step 6 — Create droplet\n\nCall the DigitalOcean MCP tool **`droplet-create`**:\n\n| Parameter | Value | Notes |\n|-----------|-------|-------|\n| `Name` | `name` from step 2 | |\n| `Region` | `<region>` from step 4 | |\n| `Size` | `<size>` from step 5 | |\n| `ImageSlug` | `codexuniversal` | DigitalOcean **Codex Universal** 1-click image (slug has no hyphen). Pass the slug as a string; do **not** also pass `ImageID` (the two are mutually exclusive). |\n| `SSHKeys` | `[\"<key_id>\"]` | |\n\nExtract `droplet.id` from the response — this is `<droplet_id>`.\n\nIf `droplet-create` fails, show the user the error and handle it by cause — do\nnot blindly retry the same values:\n- **Size not available in this region** (the plain `s-4vcpu-8gb` and\n `s-8vcpu-16gb` slugs are not sold in `nyc3` or `fra1`): go back to step 4 or\n 5 and pick a different region/size combination — the `-intel` slugs exist in\n every listed region.\n- **Cannot create a droplet with a smaller disk than the image**: the chosen\n size has less than 160 GB of disk. Go back to step 5 and pick a size from the\n table; never pass through a smaller size.\n- **Payment / quota / limit** errors: stop and tell the user to resolve it in\n the DigitalOcean dashboard, then re-run.\n- **Invalid image or any other error:** stop and report it.\n\nThe uploaded SSH key from step 3 is harmless to leave, but if you abort here see\n*Cleanup* below.\n\n## Step 7 — Schedule delayed deployment check-in\n\nAfter `droplet-create` succeeds, inspect the response before polling. If the\ndroplet is not already `active` with a public IPv4 address in the create\nresponse, assume provisioning is still in progress.\n\nCreate a Codex **heartbeat** to resume this same thread in **5 minutes** for\nthe first status check. Use the Codex automation tool, not a shell sleep or\nlocal timer:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=5` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. The droplet bills hourly until deleted.` |\n\nAfter creating the heartbeat, tell the user the droplet was created and Codex\nwill check back in about 5 minutes. **Stop the active turn here.** Do not start\n20-second polling until the heartbeat wakes the thread back up. This avoids\nbusy-waiting during the normal 5-7 minute deployment window.\n\nKeep the created heartbeat's automation id as `<heartbeat_id>` if the tool\nreturns one. When the heartbeat resumes the thread, use step 8 to decide\nwhether to keep checking or to delete/pause the heartbeat and continue.\n\nIf the create response already includes `status == \"active\"` and a public IPv4\naddress, skip the heartbeat and continue immediately to step 8.\n\n## Step 8 — Check whether the droplet is active\n\nCall the DigitalOcean MCP tool **`droplet-get`** once with\n`ID: <droplet_id>`.\n\nIf the response has `status == \"active\"` **and** `networks.v4` contains an\nentry with `type == \"public\"`, extract `ip_address` from that entry — this is\n`<ip>`. Delete or pause `<heartbeat_id>` if it still exists, then continue to\nstep 9.\n\nIf the droplet is still not active or does not yet have a public IPv4 address,\nschedule Codex to check this same thread again in **1 minute**, then **stop the\nactive turn here**. Keep checking back every minute until the droplet is ready;\ndo not give up merely because the DigitalOcean deployment is slow. Prefer\nupdating the existing `<heartbeat_id>` to a 1-minute interval; if that is not\npossible, create a replacement heartbeat and delete/pause the old one so there\nis only one active check-in.\n\nUse these values for the 1-minute follow-up heartbeat:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` or `update`, depending on the available automation tool |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=1` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. If it is still not ready, schedule another 1-minute heartbeat. The droplet bills hourly until deleted.` |\n\nKeep all status checks with the DigitalOcean MCP server. Do not use doctl or any\nother tool to check droplet status.\n\n## Step 9 — Configure local SSH\n\n```bash\npython3 <skill_dir>/scripts/configure_ssh.py \\\n --alias codex-<prefix> \\\n --ip <ip> \\\n --user root \\\n --key-path <key_path>\n```\n\n**⚠️ Do not interrupt this step.** It waits for cloud-init to finish (up to 7\nminutes) and prints a `⏳` status line every 5 seconds — that output means it is\nworking normally. **Do not run any other commands. Wait for the line\n`DROPLET READY`.** If the script exits with an error instead, report it and\noffer to delete the droplet (see *Cleanup*).\n\n## Final step: adding it to Codex\n\nAsk Codex to open the add-SSH-host flow by responding with a clickable Markdown\nlink. Replace `<ssh-alias>` with `name` from step 2:\n\n`[Add <ssh-alias> to Codex SSH](codex://settings/connections/ssh/add?name=<ssh-alias>)`\n\nThe SSH alias is the local host alias created by step 9. In this workflow, it is\nthe same value as the droplet name: `codex-<prefix>`.\n\nIf the link does not open the flow, or if the user wants to check it manually,\ntell them to open: **Codex App → Settings → Connections → Add SSH Host → pick\nthe alias → choose the remote folder.**\n\n## Cleanup (on failure or when done)\n\nThe droplet bills hourly until deleted. To tear down:\n\n1. **Delete the droplet** — DigitalOcean MCP tool **`droplet-delete`** with\n `ID: <droplet_id>`.\n2. **Delete the SSH key** (optional) — DigitalOcean MCP tool **`key-delete`**\n with the `<key_id>` from step 3.\n\nAlways confirm with the user before deleting. Do not use doctl for cleanup.\n"
Full snapshot data
{
"description": "Use when the user wants to spin up / create / launch / provision a DigitalOcean droplet (or \"a remote dev box on DO\") and connect to it from Codex as a remote SSH workspace.\n",
"included_files": [
{
"relative_path": "scripts/configure_ssh.py",
"size_in_bytes": 8169
},
{
"relative_path": "scripts/keygen.py",
"size_in_bytes": 1617
},
{
"relative_path": "ssh_config.tmpl",
"size_in_bytes": 175
}
],
"name": "provision-droplet",
"skill_md_contents": "---\nname: provision-droplet\ndescription: >\n Use when the user wants to spin up / create / launch / provision a\n DigitalOcean droplet (or \"a remote dev box on DO\") and connect to it from\n Codex as a remote SSH workspace.\n---\n\n# Provision a DigitalOcean droplet as a Codex remote workspace\n\nFollow these steps in order. Do not skip or reorder them.\n**Use only this plugin's bundled DigitalOcean MCP tools and Python scripts.\ndoctl, ad hoc integration configs, and any other DigitalOcean CLI tools are\nprohibited.**\n\n## Before you start\n\n- **Prerequisites:** a funded DigitalOcean account, an authenticated connection\n to this plugin's bundled DigitalOcean MCP server, a local `ssh`/`ssh-keygen`\n (OpenSSH), Python 3, and the Codex desktop app.\n- **Cost:** the droplet bills **hourly from creation until you delete it**.\n Sizes in step 5 show approximate monthly rates. Remind the user to delete it\n when done (see *Cleanup* below).\n- **Time:** end-to-end takes ~10–15 minutes — roughly 7 minutes waiting for the\n droplet to boot (steps 7-8) plus up to 7 minutes for cloud-init (step 9). This\n is normal; do not abort.\n- **Locate the bundled scripts first (do this before Step 2).** The helper\n scripts live in the `scripts/` folder **next to this `SKILL.md`** (i.e.\n `provision-droplet/scripts/`). Your current working directory is **not** the\n skill directory, so bare relative paths like `scripts/keygen.py` will fail.\n Resolve the absolute directory that contains this `SKILL.md` and call it\n `<skill_dir>`. If you don't already know it, find it — the installed plugin may\n nest it under a version folder (e.g. `.../<version>/provision-droplet/`), so\n locate the directory that actually contains `scripts/keygen.py`. Use\n `<skill_dir>/scripts/<name>.py` (an absolute path) in **every** command below.\n\n## Step 1 — Verify DigitalOcean MCP access\n\nThis plugin depends on its bundled **DigitalOcean MCP server**. Use its tools\nfor all DigitalOcean operations.\n\nThe DigitalOcean MCP server provides both:\n- SSH key tools: `key-create`, `key-list`, `key-delete`.\n- Droplet tools: `droplet-create`, `droplet-get`, `droplet-delete`.\n\nConfirm that these tools are available before continuing. If the MCP tools are\nmissing or unauthenticated, stop and tell the user to authenticate the\nDigitalOcean MCP connection in Codex. Do not fall back to doctl, API tokens, or\na local integration config.\n\n## Step 2 — Generate SSH key pair\n\n```bash\npython3 <skill_dir>/scripts/keygen.py\n```\n\nParse the JSON output and keep these values for the steps below:\n`prefix`, `name`, `key_name`, `key_path`, `pub_key`.\n\nHow these relate (all derived from one random `prefix` like `bright-hawk-a3f2`):\n- `name` = `codex-<prefix>` — the **droplet name** and the **local SSH alias**\n (they are identical).\n- `key_name` = `codex-key-<prefix>` — the label for the key on DigitalOcean's\n side only.\n- `key_path` — the local private key file.\n\n## Step 3 — Upload SSH public key\n\nCall the DigitalOcean MCP tool **`key-create`**:\n\n| Parameter | Value |\n|-----------|-------|\n| `Name` | `key_name` from step 2 |\n| `PublicKey` | `pub_key` from step 2 |\n\nExtract `key.id` from the response — this is `<key_id>`.\n\nIf the call fails because a key with that name or fingerprint **already exists**\n(e.g. a previous run), do not create a duplicate: call the DigitalOcean MCP\ntool **`key-list`**, find the entry whose `name` matches `key_name` (or whose\nfingerprint matches the uploaded key), and use its `id` as `<key_id>`.\n\n## Step 4 — Choose a region\n\nAsk the user, in chat:\n\n> Use the defaults — region **`sfo2`** (San Francisco, US) and size\n> **`s-4vcpu-8gb`** (4 vCPU / 8 GB / 160 GB disk, ~$48/mo) — or customize them?\n\nIf they choose the defaults, use `sfo2` as `<region>` and `s-4vcpu-8gb` as\n`<size>`, then skip step 5 and continue to step 6.\n\nIf they want to customize the defaults, present this region list first and ask\nthem to reply with a slug:\n\n| Slug | Location |\n|------|----------|\n| `sfo2` *(default)* | San Francisco, US |\n| `sfo3` | San Francisco, US |\n| `nyc3` | New York, US |\n| `tor1` | Toronto, CA |\n| `lon1` | London, UK |\n| `fra1` | Frankfurt, DE |\n| `ams3` | Amsterdam, NL |\n| `sgp1` | Singapore, SG |\n| `blr1` | Bangalore, IN |\n| `syd1` | Sydney, AU |\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<region>`.\n\n## Step 5 — Choose a droplet size\n\nSkip this step if `<size>` was already set to the default in step 4.\n\nOtherwise, present this size list and ask the user to reply with a slug. The\nCodex Universal image requires a **160 GB disk**, so every size below has at\nleast 160 GB; smaller sizes (for example `s-2vcpu-4gb`, `c-2`, `g-2vcpu-8gb`)\nare rejected by DigitalOcean with \"Cannot create a droplet with a smaller disk\nthan the image\". Prices are approximate — confirm in the DigitalOcean dashboard.\n\n| Slug | vCPU | RAM | Disk | ~$/mo | Regions |\n|------|------|-----|------|-------|---------|\n| `s-4vcpu-8gb` *(default)* | 4 | 8 GB | 160 GB | $48 | all listed **except** `nyc3`, `fra1` |\n| `s-2vcpu-8gb-160gb-intel` | 2 | 8 GB | 160 GB | $48 | all listed |\n| `s-4vcpu-8gb-intel` | 4 | 8 GB | 160 GB | $56 | all listed |\n| `s-4vcpu-8gb-240gb-intel` | 4 | 8 GB | 240 GB | $64 | all listed |\n| `s-8vcpu-16gb` | 8 | 16 GB | 320 GB | $96 | all listed **except** `nyc3`, `fra1` |\n| `s-4vcpu-16gb-320gb-intel` | 4 | 16 GB | 320 GB | $96 | all listed |\n\nThe plain `s-4vcpu-8gb` and `s-8vcpu-16gb` slugs are not sold in `nyc3` or\n`fra1`; if the user picked one of those regions, steer them to an `-intel`\nslug of the same shape.\n\nValidate their reply against this table. If it is not one of these slugs, ask\nagain — do not pass an unlisted value through. The chosen slug is `<size>`.\n\n## Step 6 — Create droplet\n\nCall the DigitalOcean MCP tool **`droplet-create`**:\n\n| Parameter | Value | Notes |\n|-----------|-------|-------|\n| `Name` | `name` from step 2 | |\n| `Region` | `<region>` from step 4 | |\n| `Size` | `<size>` from step 5 | |\n| `ImageSlug` | `codexuniversal` | DigitalOcean **Codex Universal** 1-click image (slug has no hyphen). Pass the slug as a string; do **not** also pass `ImageID` (the two are mutually exclusive). |\n| `SSHKeys` | `[\"<key_id>\"]` | |\n\nExtract `droplet.id` from the response — this is `<droplet_id>`.\n\nIf `droplet-create` fails, show the user the error and handle it by cause — do\nnot blindly retry the same values:\n- **Size not available in this region** (the plain `s-4vcpu-8gb` and\n `s-8vcpu-16gb` slugs are not sold in `nyc3` or `fra1`): go back to step 4 or\n 5 and pick a different region/size combination — the `-intel` slugs exist in\n every listed region.\n- **Cannot create a droplet with a smaller disk than the image**: the chosen\n size has less than 160 GB of disk. Go back to step 5 and pick a size from the\n table; never pass through a smaller size.\n- **Payment / quota / limit** errors: stop and tell the user to resolve it in\n the DigitalOcean dashboard, then re-run.\n- **Invalid image or any other error:** stop and report it.\n\nThe uploaded SSH key from step 3 is harmless to leave, but if you abort here see\n*Cleanup* below.\n\n## Step 7 — Schedule delayed deployment check-in\n\nAfter `droplet-create` succeeds, inspect the response before polling. If the\ndroplet is not already `active` with a public IPv4 address in the create\nresponse, assume provisioning is still in progress.\n\nCreate a Codex **heartbeat** to resume this same thread in **5 minutes** for\nthe first status check. Use the Codex automation tool, not a shell sleep or\nlocal timer:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=5` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. The droplet bills hourly until deleted.` |\n\nAfter creating the heartbeat, tell the user the droplet was created and Codex\nwill check back in about 5 minutes. **Stop the active turn here.** Do not start\n20-second polling until the heartbeat wakes the thread back up. This avoids\nbusy-waiting during the normal 5-7 minute deployment window.\n\nKeep the created heartbeat's automation id as `<heartbeat_id>` if the tool\nreturns one. When the heartbeat resumes the thread, use step 8 to decide\nwhether to keep checking or to delete/pause the heartbeat and continue.\n\nIf the create response already includes `status == \"active\"` and a public IPv4\naddress, skip the heartbeat and continue immediately to step 8.\n\n## Step 8 — Check whether the droplet is active\n\nCall the DigitalOcean MCP tool **`droplet-get`** once with\n`ID: <droplet_id>`.\n\nIf the response has `status == \"active\"` **and** `networks.v4` contains an\nentry with `type == \"public\"`, extract `ip_address` from that entry — this is\n`<ip>`. Delete or pause `<heartbeat_id>` if it still exists, then continue to\nstep 9.\n\nIf the droplet is still not active or does not yet have a public IPv4 address,\nschedule Codex to check this same thread again in **1 minute**, then **stop the\nactive turn here**. Keep checking back every minute until the droplet is ready;\ndo not give up merely because the DigitalOcean deployment is slow. Prefer\nupdating the existing `<heartbeat_id>` to a 1-minute interval; if that is not\npossible, create a replacement heartbeat and delete/pause the old one so there\nis only one active check-in.\n\nUse these values for the 1-minute follow-up heartbeat:\n\n| Field | Value |\n|-------|-------|\n| `mode` | `create` or `update`, depending on the available automation tool |\n| `kind` | `heartbeat` |\n| `destination` | `thread` |\n| `name` | `Check DigitalOcean droplet <name>` |\n| `rrule` | `FREQ=MINUTELY;INTERVAL=1` |\n| `status` | `ACTIVE` |\n| `prompt` | `Resume provisioning DigitalOcean droplet <name> (<droplet_id>). Start at Step 8: check whether it is active and has a public IPv4 address, then continue the workflow. If it is still not ready, schedule another 1-minute heartbeat. The droplet bills hourly until deleted.` |\n\nKeep all status checks with the DigitalOcean MCP server. Do not use doctl or any\nother tool to check droplet status.\n\n## Step 9 — Configure local SSH\n\n```bash\npython3 <skill_dir>/scripts/configure_ssh.py \\\n --alias codex-<prefix> \\\n --ip <ip> \\\n --user root \\\n --key-path <key_path>\n```\n\n**⚠️ Do not interrupt this step.** It waits for cloud-init to finish (up to 7\nminutes) and prints a `⏳` status line every 5 seconds — that output means it is\nworking normally. **Do not run any other commands. Wait for the line\n`DROPLET READY`.** If the script exits with an error instead, report it and\noffer to delete the droplet (see *Cleanup*).\n\n## Final step: adding it to Codex\n\nAsk Codex to open the add-SSH-host flow by responding with a clickable Markdown\nlink. Replace `<ssh-alias>` with `name` from step 2:\n\n`[Add <ssh-alias> to Codex SSH](codex://settings/connections/ssh/add?name=<ssh-alias>)`\n\nThe SSH alias is the local host alias created by step 9. In this workflow, it is\nthe same value as the droplet name: `codex-<prefix>`.\n\nIf the link does not open the flow, or if the user wants to check it manually,\ntell them to open: **Codex App → Settings → Connections → Add SSH Host → pick\nthe alias → choose the remote folder.**\n\n## Cleanup (on failure or when done)\n\nThe droplet bills hourly until deleted. To tear down:\n\n1. **Delete the droplet** — DigitalOcean MCP tool **`droplet-delete`** with\n `ID: <droplet_id>`.\n2. **Delete the SSH key** (optional) — DigitalOcean MCP tool **`key-delete`**\n with the `<key_id>` from step 3.\n\nAlways confirm with the user before deleting. Do not use doctl for cleanup.\n"
}SHA-256 of public snapshot: f55247c854f204fba6e9acc02a75165460572a11750aadecb658afd7867ee9ea