Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Datadog Pup

$ pup Official Med Risk
Datadog · Workspace & SaaS · Apache-2.0 · macos / linux / windows

Datadog Pup (pup, DataDog/pup / @datadog/pup) is a Rust-based CLI companion spanning 33+ Datadog products including logs, metrics, monitors, incidents, and RUM. Engineered specifically for AI coding agents with structured JSON envelopes (--output json, --no-envelope), --site/--from flags, and automatic agent environment detection.

FCRS-1.0 Score
93 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install pup
CLI vs MCP Decision CLI Preferred vs MCP

pup runs as a sub-50ms Rust binary exposing 33+ Datadog APIs with structured --output json envelopes and zero MCP schema bloat.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

Purpose-built for AI coding agents with --output json, {status, data, metadata} envelopes, --no-envelope, and automatic agent detection.

  • --output json and --no-envelope / PUP_NO_ENVELOPE=1
  • Auto-detects AI coding agents and avoids interactive hangs
Trust & Safety 22 / 25

Supports DD_API_KEY/DD_APP_KEY least-privilege scoping and --no-agent to disable auto-approval when needed, though write verbs mutate live monitors/incidents.

  • --no-agent disables implicit write auto-approval
  • Supports scoped Application Keys (DD_APP_KEY)
Setup & Portability 14 / 15

Fast Rust binary distributed via Homebrew (brew install pup), npm/npx (@datadog/pup), and GitHub Releases across macOS, Linux, and Windows.

  • Available via brew, npm, npx, and native binaries
Utility & Efficiency 14 / 15

Covers 33+ Datadog products (logs, metrics, monitors, APM, RUM, incidents) in a single lightweight binary.

  • Broad multi-product Datadog API coverage in one CLI
Maintenance & Lineage 10 / 10

Official Datadog Labs / DataDog CLI (DataDog/pup) under Apache-2.0 license.

  • First-party Datadog open-source repository
Docs & Verifiability 9 / 10

Detailed README documenting JSON envelopes, agent detection, env vars, and subcommands.

  • Documented in DataDog/pup README and Datadog announcement docs

Security, Auth & Guardrails

Auth Modes
Env API Key OAuth Browser Config File
Credential Storage

Reads DD_API_KEY, DD_APP_KEY, and DD_SITE environment variables, or stores OAuth2/API profiles locally via pup auth login.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI; querying telemetry requires an active Datadog organization and API/App keys.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Datadog Pup (pup) Agent Rules
- Always pass `--output json` (and `--no-envelope` if raw arrays are needed) and scope queries with `--from` and `--site`.
- Note that `pup` auto-detects coding agents and auto-approves write prompts; pass `--no-agent` when strict confirmation is desired.
- Use read-only `DD_APP_KEY` scopes for observability triage unless monitor/incident mutations are explicitly approved.

Agent-Ready Command Recipes

Safe Read-Only Queries

Search recent Datadog error logs as JSON
pup logs search --query "status:error" --from 1h --output json

Queries recent error logs over the last hour and returns a structured JSON envelope.

List Datadog monitors without JSON envelope
pup monitors list --output json --no-envelope

Fetches Datadog monitors returning the raw API JSON payload directly for jq processing.

Controlled Writes & Previews

Mute a monitor temporarily with explicit scope
pup monitors mute <monitor_id> --output json --no-agent

Mutes a specified monitor while passing --no-agent so confirmation behavior stays explicit.

Strengths for Agents

  • + Engineered specifically for coding agents with {status, data, metadata} JSON envelopes and --no-envelope.
  • + Spans 33+ Datadog products from one fast Rust binary installable via brew or npx @datadog/pup.

Caveats & Pitfalls

  • ! Auto-detected agent environments enable write auto-approval (DD_AUTO_APPROVE) unless --no-agent is passed.
  • ! Large product surface requires scoped DD_APP_KEY permissions for read-only agent triage.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI