tls-renew

tls-renew is a command for Claude Code from TLS-Radar/tlsradar-claude-plugin. It costs 8 tokens per session (544 once invoked), scanned A, original, MIT.

A command that renews a Let’s Encrypt HTTPS certificate by issuing a fresh 90-day certificate for the same domain.

In plain words
What is it for?
Use it to renew a monitored domain’s certificate, including the required validation and certificate-generation steps.
Why use it?
It helps replace a certificate before it expires and can reuse saved issuance details when they are still available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the tlsradar plugin — 1 skill, 6 commands, 1 MCP server shipped together

Good fit Use it to renew a monitored domain’s certificate, including the required validation and certificate-generation steps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tls-radar/tlsradar-claude-plugin/tls-renew
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/TLS-Radar/tlsradar-claude-plugin

Made for: Claude Code.

Or install tlsradar, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 1 MCP server.

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 tls-renew

README.md
[![agentmods](https://agentmods.dev/badge/commands/tls-radar/tlsradar-claude-plugin/tls-renew/github.svg)](https://agentmods.dev/commands/tls-radar/tlsradar-claude-plugin/tls-renew)
Your own site
<a href="https://agentmods.dev/commands/tls-radar/tlsradar-claude-plugin/tls-renew"><img src="https://agentmods.dev/badge/commands/tls-radar/tlsradar-claude-plugin/tls-renew/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 tls-renew

Your own site · 80×15
<a href="https://agentmods.dev/commands/tls-radar/tlsradar-claude-plugin/tls-renew"><img src="https://agentmods.dev/badge/commands/tls-radar/tlsradar-claude-plugin/tls-renew.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 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.00008 $0.00544
Opus 5 $0.00004 $0.00272
Sonnet 5 $0.00002 $0.00109
Haiku 4.5 $0.00001 $0.00054

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

Security

Grade A, and why

tls-renew 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/tls-renew.md · 29 lines

How it starts

The opening of the file, as written. The whole thing — 29 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Renew the Let's Encrypt certificate for $ARGUMENTS. Renewal issues a fresh 90-day cert for the same domain; the user's monitoring picks up the new cert on the next scan.

Flow

Check local history first: read ${HOME}/.config/tlsradar/orders/$ARGUMENTS.json (written by /tls-cert; may not exist). If present it carries the previous order's order_id, email, challenge, and created_at/completed_at - use it to skip re-asking: confirm with the user that the saved email and challenge method are still right, then reuse them.

tlsradar.renew_certificate clones an existing order by its order_id, and orders are purged ~24h after creation - so months later at renewal time there's usually no order to clone. Two cases:

  • No usable order_id (the normal case - the saved order is older than ~24h): just run a fresh issuance - it is the renewal. Follow /tls-cert exactly: tlsradar.create_certificate(domain=$ARGUMENTS, email=…) → publish TXT → tlsradar.check_certificate_propagation until green → generate a CSR locally (the cert_helper.py csr step - it backs up the old key automatically) → tlsradar.finalize_certificate(order_id, csr_pem).
  • The saved (or user-supplied) order_id is less than ~24h old: call tlsradar.renew_certificate with it to get a fresh order + new TXT records, then continue from the propagation step as above.

Either way the private key is generated locally (CSR path) and the monitoring handoff fires automatically when the cert completes - you do not register anything.

When to suggest this proactively

If the user runs an expiry check and any entry shows < 30 days remaining, suggest /tls-renew <domain>. Don't auto-renew without asking - renewal involves DNS changes the user controls.

Things this command should NOT do

  • Don't renew an unrelated domain just because it's expiring - only act on $ARGUMENTS.
  • Don't call tlsradar.renew_certificate with a domain - it takes an order_id. Without one, use tlsradar.create_certificate.
  • Don't tell the user to manually update monitoring afterward - the cert change is picked up on the next scheduled scan.

Read the full file on GitHub · 29 lines

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 · 29 lines · 8 tokens per session scan A 231ea3abcbc1

Subscribe to this mod's changes

tls-renew is a command published in the GitHub repository TLS-Radar/tlsradar-claude-plugin (0 stars, last pushed 2mo ago), licensed MIT. It adds 8 tokens to every session and 544 once invoked, about $0.0000 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.