papertrail-cli

papertrail-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 30 tokens per session (694 once invoked), scanned B, original, Apache-2.0.

A command-line skill for searching Papertrail, a hosted service that collects and stores system and application logs, through its web API. It can also inspect saved searches and registered systems.

In plain words
What is it for?
Use it to search log events and review saved searches or the systems sending logs to Papertrail.
Why use it?
It avoids manually building API requests and helps prevent confusion between production and staging logs. Credentials are read from protected files rather than displayed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search log events and review saved searches or the systems sending logs to Papertrail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/papertrail-cli
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.

Any agent
npx skills add abdullahkhawer/devops-skills --skill papertrail-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-skills

Made for: Claude Code, Codex.

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 papertrail-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/papertrail-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/papertrail-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/papertrail-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/papertrail-cli/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 papertrail-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/papertrail-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/papertrail-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 694 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00030 $0.00694
Opus 5.5 $0.00012 $0.00278
Sonnet 5.5 $0.00006 $0.00139
Haiku 4.5 $0.00003 $0.00069

Measured 2mo ago against content hash 4fb7f048e331, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

papertrail-cli scanned grade B with 2 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

mkdir -p ~/.papertrail && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>

Makes network callslowCapability

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

description: Perform Papertrail log management operations using the Papertrail HTTP API via curl. Use for searching logs and inspecting saved searches and systems.
skills/papertrail-cli/SKILL.md · 76 lines

How it starts

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

Papertrail CLI Skill

Use the instance and rules below when constructing all Papertrail API commands.

Configuration

Update the table below with your Papertrail credential file paths:

Environment Token File
Production ~/.papertrail/prod.token
Staging ~/.papertrail/staging.token

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

Generate a Papertrail API token (Settings → Profile → API Token) for each environment and save it to the corresponding token file. Never print or display token values. Do not perform these steps yourself.

mkdir -p ~/.papertrail && echo "<your-api-token>" > <TOKEN_FILE> && chmod 600 <TOKEN_FILE>

Command Format

curl -s -H "X-Papertrail-Token: $(cat <TOKEN_FILE>)" \
  "https://papertrailapp.com/api/v1/<endpoint>.json" | jq .

Available API Endpoints

Read-only (safe, no confirmation needed)

Endpoint Method Description
/api/v1/events/search.json?q=<query> GET Search log events
/api/v1/searches.json GET List saved searches
/api/v1/systems.json GET List registered systems
/api/v1/groups.json GET List system groups

Example — search logs

curl -s -H "X-Papertrail-Token: $(cat <TOKEN_FILE>)" \
  "https://papertrailapp.com/api/v1/events/search.json?q=<query>&system_id=<id>" | jq .

Mutating operations (confirm with user before running)

Endpoint Method Description
/api/v1/searches.json POST Create a saved search
/api/v1/groups.json POST Create a system group

Never run — requires explicit human approval

Endpoint Method Reason
/api/v1/searches/<id>.json DELETE Irreversible saved search deletion
/api/v1/systems/<id>.json DELETE Removes a registered system and stops its ingestion
/api/v1/groups/<id>.json DELETE Irreversible group deletion

Read the full file on GitHub · 76 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. 2mo ago First seen · 76 lines · 30 tokens per session scan B 4fb7f048e331

Subscribe to this mod's changes

papertrail-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 694 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

papertrail-cli compared with skills from other repositories

papertrail-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
papertrail-cliabdullahkhawer/devops-skillsSkill112mo agoApache-2.0B30Claude Code, Codex
proposal-troubleshoothutzelmann/thesis-proposal-skillsSkill106d agoMITA66Claude Code
agents-sdk-dotnet-debuggingmicrosoft/AgentsSkill1.1k5d agoMITA136Claude Code
fetch-urlarabold/docs-mcp-serverSkill1.9k8d agoMITA51Claude Code, Codex
workthreadsspecstoryai/getspecstorySkill1.4k3d agoApache-2.0A126Claude Code
issuejeremylongshore/tons-of-skills-marketplaceSkill3.0ktodayMITA115Claude Code
temps-plugingotempsh/tempsSkill951todayApache-2.0A94Claude Code, Codex