← Files DigitalOceanARCHIVED FILE

README.md

2.48 KB · Nov 29, 2026 · 18:14 UTC

↓ Download file

See the change to this file →

# droplet-workspace

A Codex plugin that provisions a DigitalOcean droplet from the **Codex Universal**
image (slug `codexuniversal`) and wires it up as a remote SSH workspace for the Codex
desktop app. It uses the plugin's bundled DigitalOcean MCP server, creates and
boots the droplet without doctl or API tokens, configures
local SSH access, and hands off to Codex. The user picks the region and size
interactively (with sensible defaults), and the droplet is billed hourly until
deleted.

## Components

```
droplet-workspace/
  .codex-plugin/plugin.json          # plugin manifest (name, version, skills/mcpServers paths)
  .mcp.json                          # bundled DigitalOcean MCP server declaration
  assets/                            # logo and composer icons referenced by the manifest
  skills/provision-droplet/
    SKILL.md                         # the step-by-step workflow Codex follows
    ssh_config.tmpl                  # ~/.ssh/config Host block template
    scripts/
      keygen.py                      # generates a unique name + ed25519 SSH key pair
      configure_ssh.py               # writes SSH config, scans host keys, waits for cloud-init
```

- **`.mcp.json`** — declares the single bundled MCP server,
  `https://codex.mcp.digitalocean.com/mcp`, referenced from the manifest's
  `mcpServers` key. Authenticate the connection in Codex before running this
  plugin. It provides both the SSH key tools (`key-create`, `key-list`,
  `key-delete`) and the droplet tools (`droplet-create`, `droplet-get`,
  `droplet-delete`).
- **`SKILL.md`** — the orchestration guide. It drives the DigitalOcean MCP
  tools and the two scripts in order, prompts the user for region/size, and
  explains the one manual Codex step at the end.
- **`scripts/keygen.py`** — stdlib-only; mints a unique `adjective-noun-hex4`
  prefix, derives the droplet name / DO key label, and creates the local SSH key.
- **`scripts/configure_ssh.py`** — stdlib-only; renders `ssh_config.tmpl` into
  `~/.ssh/config`, refreshes `known_hosts`, and probes SSH login until cloud-init
  finishes before printing the `DROPLET READY` handoff.
- **`ssh_config.tmpl`** — the `Host` block template (`{{ALIAS}}`, `{{IP}}`,
  `{{USER}}`, `{{IDENTITY_FILE}}`).

## The one manual step

There is no supported CLI to register a desktop remote SSH project in Codex
(tracking: openai/codex#21554). After provisioning, add the host via
**Codex App → Settings → Connections → Add SSH Host → pick the alias → choose
the remote folder.**

SHA-256: 9f4c1690a6a2ab65afe07143317fedb828dd267920721c1aea6ad73733157e92