Datadog Pup
$ pup Official Med RiskDatadog 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.
brew install pup 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for AI coding agents with --output json, {status, data, metadata} envelopes, --no-envelope, and automatic agent detection.
--output jsonand--no-envelope/PUP_NO_ENVELOPE=1- Auto-detects AI coding agents and avoids interactive hangs
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-agentdisables implicit write auto-approval- Supports scoped Application Keys (
DD_APP_KEY)
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
Covers 33+ Datadog products (logs, metrics, monitors, APM, RUM, incidents) in a single lightweight binary.
- Broad multi-product Datadog API coverage in one CLI
Official Datadog Labs / DataDog CLI (DataDog/pup) under Apache-2.0 license.
- First-party Datadog open-source repository
Detailed README documenting JSON envelopes, agent detection, env vars, and subcommands.
- Documented in
DataDog/pupREADME and Datadog announcement docs
Security, Auth & Guardrails
Reads DD_API_KEY, DD_APP_KEY, and DD_SITE environment variables, or stores OAuth2/API profiles locally via pup auth login.
Apache-2.0 open-source CLI; querying telemetry requires an active Datadog organization and API/App keys.
# 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
pup logs search --query "status:error" --from 1h --output json
Queries recent error logs over the last hour and returns a structured 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
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
brewornpx @datadog/pup.
Caveats & Pitfalls
- ! Auto-detected agent environments enable write auto-approval (
DD_AUTO_APPROVE) unless--no-agentis passed. - ! Large product surface requires scoped
DD_APP_KEYpermissions for read-only agent triage.