domain

A command for adding or checking a custom web address for a deployed Nometria app. It uses the app’s deployment details to provide the DNS settings needed to point that address to the app.

In plain words
What is it for?
Adding a domain such as example.com, viewing the current domain, and getting the IP address and DNS instructions for the deployed app.
Why use it?
It removes the need to find the correct app, deployment address, and DNS instructions manually. It also checks that you are authenticated before making a domain change.

Command

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.

agentmods
npx agentmods add commands/nometria/claude-code-plugin/domain
Clone the repo
git clone --depth 1 https://github.com/nometria/claude-code-plugin
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00011 $0.00678
Opus 5 $0.00005 $0.00339
Sonnet 5 $0.00002 $0.00136
Haiku 4.5 $0.00001 $0.00068

Measured 2d ago against content hash 422a6657375e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

domain scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Bash(curl:*), Bash(cat:*), Bash(grep:*), Bash(echo:*), Read
commands/domain.md · 89 lines

How it starts

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

Manage Custom Domains

Add a custom domain to your deployed Nometria app and get DNS configuration instructions.

Step 1: Resolve token

TOKEN="${NOMETRIA_API_KEY:-${NOMETRIA_TOKEN:-$(grep -s 'NOMETRIA_API_KEY\|NOMETRIA_TOKEN' .env .env.local 2>/dev/null | head -1 | cut -d= -f2- | tr -d ' "'"'"'')}}"
echo "Token found: $([ -n "$TOKEN" ] && echo 'yes' || echo 'no')"

If no token: tell the user to run /nometria-login and stop.

Step 2: Identify the app

cat nometria.json 2>/dev/null

Use app_id from nometria.json. If not found, list migrations and ask.

Step 3: Get current status (for IP address)

curl -s -X POST https://app.nometria.com/checkAwsStatus \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"app_id\": \"$APP_ID\"}"

Extract ipAddress from the response for DNS instructions.

Step 4: Parse action from $ARGUMENTS

  • "add yourdomain.com" or just "yourdomain.com" → Add domain
  • No arguments or "check" → Show current domain + DNS instructions

Add a custom domain

Validate the domain format (must contain a dot, no protocol prefix).

curl -s -X POST https://app.nometria.com/addCustomDomain \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d "{\"app_id\": \"$APP_ID\", \"custom_domain\": \"$DOMAIN\"}"

On success, display:

Custom domain added: yourdomain.com

DNS Configuration Required:
━━━━━━━━━━━━━━━━━━━━━━━━━━
Add an A record pointing to your app's IP address:

   Type: A
   Name: @ (or subdomain)
   Value: <ipAddress>
   TTL: 300

If using a subdomain (e.g., app.yourdomain.com):
   Type: CNAME
   Name: app
   Value: <deployUrl>

SSL will be provisioned automatically once DNS propagates (usually 5-30 minutes).

Check current domain

Show the current deployUrl and custom_domain from the status response, plus DNS instructions if a custom domain is set.

Error handling

If the API returns an error, show it and suggest:

Read the full file on GitHub · 89 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. 2d ago First seen · 89 lines · 0 tokens per session scan A 422a6657375e

Subscribe to this mod's changes

domain is a command published in the GitHub repository nometria/claude-code-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 678 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.