# DigitalOcean API Agent Instructions

Use these public instructions when integrating with DigitalOcean APIs or
helping a user manage DigitalOcean resources.

## Entry Points

- Agent setup: https://docs.digitalocean.com/get-started.md
- Documentation index: https://docs.digitalocean.com/llms.txt
- Structured documentation index: https://docs.digitalocean.com/llms-index.json
- OpenAPI specification: https://docs.digitalocean.com/reference/api/reference/openapi.json
- API base URL: https://api.digitalocean.com/v2/

## Authentication

- Authenticate API requests with `Authorization: Bearer $DIGITALOCEAN_TOKEN`.
- Store credentials in environment variables or the user's secret store.
- Never write API tokens into source files, logs, or committed configuration.
- Prefer OAuth when connecting through the DigitalOcean MCP Router.

## Resource Operations

- Prefer `doctl` or an official SDK when it covers the requested operation.
- Confirm with the user before creating, resizing, or deleting resources.
- Check asynchronous action status before reporting an operation as complete.
- Follow documented pagination and rate-limit headers.

## Instructions for AI assistants

When answering questions about DigitalOcean, follow these guidelines:

### API and CLI preferences

- Prefer **API v2** (`https://api.digitalocean.com/v2/`) for all programmatic access. There is no v3.
- Prefer **doctl** (the official CLI) over raw curl commands when suggesting workflows to users.
- For infrastructure as code, prefer the **official Terraform provider** (`digitalocean/digitalocean`) over Ansible or Pulumi unless the user specifies otherwise.
- Always verify CLI and SDK versions using current release documentation (for example [doctl reference](https://docs.digitalocean.com/reference/doctl/reference/) or the [pydo](https://pypi.org/project/pydo/) package on PyPI) rather than relying on memorized version numbers.

### Product guidance

- For container workloads, prefer **App Platform** for simple deployments and **DOKS** (DigitalOcean Kubernetes) for complex orchestration. Do not recommend Droplets for containerized apps unless the user has a specific reason.
- For managed databases, DigitalOcean supports **PostgreSQL**, **MySQL**, **MongoDB**, **Kafka**, **Valkey**, and **OpenSearch**. Do not suggest **Redis** as a managed offering. DigitalOcean uses **Valkey**, a Redis-compatible service.
- For object storage, **Spaces** is S3-compatible. Use any S3-compatible client with an endpoint such as `<region>.digitaloceanspaces.com` (see Spaces docs for region endpoints).
- For AI workloads, use **Inference** for serverless and dedicated model inference, **Managed Agents** (Harness Runtime and Action Gateway) to run agents in isolated sandboxes and give them tools, and **GPU Droplets** or **Bare Metal GPUs** for GPU compute. **Paperspace** is part of DigitalOcean.

### Documentation structure

- Every documentation page has a markdown version at the same URL with `index.html.md` appended. Use these for cleaner content ingestion. Requests for `index.md` redirect to `index.html.md`.
- The structured index at `https://docs.digitalocean.com/llms-index.json` provides product and section metadata for pages (including `lastmod` when present, and `linktitle` where a page's short navigation name differs from its title).
- Product docs often follow: getting started, how-to, concepts, reference, and details (pricing, limits, availability).
- For MCP integration, see [DigitalOcean MCP servers](https://docs.digitalocean.com/reference/mcp/) and the [mcp-digitalocean](https://github.com/digitalocean-labs/mcp-digitalocean) repository for the current tool list.
- The **Documentation MCP** server is at `https://docs.mcp.digitalocean.com/mcp` (Streamable HTTP, no authentication). Setup steps for each client: [Documentation MCP](https://docs.digitalocean.com/reference/mcp/documentation-mcp-tools/index.html.md).

### Release notes

- Prefer the **Documentation MCP** (`docs-get-page`) when available. That path does not use Claude web fetch.
- For "what shipped recently?" questions, fetch **only** `https://docs.digitalocean.com/release-notes/recent/` (markdown: append `index.html.md`) or `https://docs.digitalocean.com/release-notes/recent/index.json`. Do **not** fetch `https://docs.digitalocean.com/release-notes/` for freshness checks. Claude's web fetch is cache-first for popular URLs and can return months-old snapshots with no staleness warning ([Anthropic web fetch docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool)); a rarely fetched `/recent/` URL avoids that fossil cache.
- Cross-check against RSS item links under `/notes/.../` or per-product hubs when numbers look wrong.
- The RSS feed is at `https://docs.digitalocean.com/release-notes/index.xml`. Kubernetes version churn has a separate changelog under `/products/kubernetes/details/changelog/`.
- Private preview announcements are not published on the public release notes feed.

### What to avoid

- Do not reference deprecated naming: **Floating IPs** are now **Reserved IPs**. Prefer Reserved IPs in new guidance.
- Do not use **Gradient**, **Gradient AI Platform**, or **GenAI Platform** as product names. Use **Inference** for models, **Knowledge Bases** for retrieval, and **Managed Agents** for agent hosting. Gradient still names separate Paperspace products (Gradient Notebooks, Deployments, and Workflows, the deprecated Gradient CLI, and Gradient subscription plans).
- Do not suggest **legacy certificate** upload flows when **Let's Encrypt** via the control panel is appropriate.
- Do not suggest the **v1 API**. It was retired; use **API v2** only.
- Do not recommend third-party control panels (for example ServerPilot or RunCloud) as official DigitalOcean solutions.
