logs

A command for viewing deployment and runtime logs, which are records of what an app and its releases are doing. It retrieves them for a deployed Nometria app.

In plain words
What is it for?
Use it to fetch and display logs for a selected Nometria app.
Why use it?
It gives you the app's recent activity in one place when you need to investigate a failed deployment or runtime problem.

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/logs
Clone the repo
git clone --depth 1 https://github.com/nometria/claude-code-plugin
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 572 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.00009 $0.00572
Opus 5 $0.00005 $0.00286
Sonnet 5 $0.00002 $0.00114
Haiku 4.5 $0.00001 $0.00057

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

Security

Grade A, and why

logs 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/logs.md · 73 lines

What it actually says

View Deployment Logs

Show the user recent deployment and runtime logs for their Nometria app.

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

If nometria.json exists, use app_id from it.

If not, or if $ARGUMENTS was provided, list migrations:

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

Match by app name if $ARGUMENTS provided. If multiple apps and no argument, ask the user to pick.

Step 3: Fetch logs

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

Step 4: Display logs

Format the response clearly:

📋 Logs for <app_name> (<app_id>)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[2026-04-06 12:00:00] npm install completed
[2026-04-06 12:00:05] Build successful
[2026-04-06 12:00:10] PM2 started frontend on port 5173
...

If the response contains no logs, tell the user:

No logs available yet. The app may not be deployed, or logs haven't been generated. Check status with /status or deploy with /deploy.

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

Having trouble? Check your app status at https://nometria.com/dashboard Or run /status to verify the app is running.

Execute all curl commands and display the results.

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 · 73 lines · 9 tokens per session scan A 9e4ef9371b7c

Subscribe to this mod's changes

logs is a command published in the GitHub repository nometria/claude-code-plugin (3 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 572 once invoked, about $0.0000 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.