do-costs

do-costs is a command for Claude Code from iamnolanhu/digitalocean-skills. It costs 12 tokens per session (429 once invoked), scanned A, original, MIT.

A DigitalOcean cost report that totals the estimated monthly price of your cloud resources, such as virtual machines, load balancers, databases, Kubernetes clusters, storage volumes and reserved IP addresses.

In plain words
What is it for?
Use it to check your monthly DigitalOcean spending, see costs by resource type, or request the price of individual resources.
Why use it?
It shows what is currently billable without requiring you to inspect each resource separately. It also helps reveal forgotten test or temporary resources that may still be costing money.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the digitalocean-skills plugin — 9 skills, 6 commands, 3 agents, 1 hook shipped together

Good fit Use it to check your monthly DigitalOcean spending, see costs by resource type, or request the price of individual resources.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/iamnolanhu/digitalocean-skills/do-costs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/iamnolanhu/digitalocean-skills

Made for: Claude Code.

Or install digitalocean-skills, the plugin that ships this one along with the rest of its 9 skills, 6 commands, 3 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for do-costs

README.md
[![agentmods](https://agentmods.dev/badge/commands/iamnolanhu/digitalocean-skills/do-costs/github.svg)](https://agentmods.dev/commands/iamnolanhu/digitalocean-skills/do-costs)
Your own site
<a href="https://agentmods.dev/commands/iamnolanhu/digitalocean-skills/do-costs"><img src="https://agentmods.dev/badge/commands/iamnolanhu/digitalocean-skills/do-costs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for do-costs

Your own site · 80×15
<a href="https://agentmods.dev/commands/iamnolanhu/digitalocean-skills/do-costs"><img src="https://agentmods.dev/badge/commands/iamnolanhu/digitalocean-skills/do-costs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00429
Opus 5 $0.00006 $0.00215
Sonnet 5 $0.00002 $0.00086
Haiku 4.5 $0.00001 $0.00043

Measured 9d ago against content hash c5b342d097ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

do-costs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/do-costs.md · 62 lines

What it actually says

DigitalOcean Costs

Show a quick cost summary with breakdown by resource type.

Output Format

💰 DIGITALOCEAN COST SUMMARY
═══════════════════════════════════════

RESOURCE TYPE          COUNT    $/MONTH
───────────────────────────────────────
Droplets                   2     $30.00
Load Balancers             1     $12.00
Databases                  0      $0.00
Kubernetes                 0      $0.00
Volumes                    0      $0.00
Reserved IPs               0      $0.00
───────────────────────────────────────
TOTAL                            $42.00

⚠️  BILLABLE RESOURCES RUNNING: 3

Last checked: 2026-01-24 20:49 UTC

Cost Details

If user asks for details, show per-resource breakdown:

DROPLET COSTS
─────────────────────────────────────
prod-web-01       s-2vcpu-4gb   $24.00
test-api-01       s-1vcpu-1gb    $6.00
─────────────────────────────────────
Subtotal                        $30.00

API Calls

  1. GET /v2/droplets - Get droplets with size.price_monthly
  2. GET /v2/load_balancers - Count × $12
  3. GET /v2/databases - Get pricing from response
  4. GET /v2/kubernetes/clusters - Calculate node costs
  5. GET /v2/volumes - Size × $0.10/GB
  6. GET /v2/reserved_ips - Count unattached × $5

Warnings

Show warnings for:

  • Any resources tagged test or temporary
  • Total cost > $50/month (configurable threshold)
  • Significant cost increase from expected baseline
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 62 lines · 12 tokens per session scan A c5b342d097ce

Subscribe to this mod's changes

do-costs is a command published in the GitHub repository iamnolanhu/digitalocean-skills (4 stars, last pushed 7mo ago), licensed MIT. It adds 12 tokens to every session and 429 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.