:dog2: Give Your Agent a Puppy: Introducing Pup CLI

Every AI agent needs a loyal companion. Meet Pup — the CLI that gives your agents full access to Datadog's observability platform (because even autonomous agents need good tooling, not just tricks).
What is Pup?
A comprehensive, AI-agent-ready CLI covering a wide range of Datadog product domains. We've unleashed the full power of Datadog's APIs so your agents can fetch metrics, sniff out errors, and track down issues without barking up the wrong API tree.
AI agents are the fastest-growing interface for infrastructure management. Companies like Vercel and AWS are racing to make their platforms agent-accessible, but we're leading the pack. Pup makes Datadog a great choice for AI-native workflows by exposing the API surface in a way agents can navigate without barking up the wrong tree.
Why Your Agent Will Love It
- :paw_prints: Well-trained: Self-discoverable commands (no need to chase documentation)
- :guide_dog: Obedient: Structured JSON/YAML output for easy parsing
- :service_dog: On a leash: OAuth2 + PKCE for scoped access (no more long-lived keys running wild)
- :dog: Knows all the tricks: Monitors, logs, metrics, RUM, security and more!
Try It (Humans Welcome Too!)
# Give your agent credentials (house-training, basically)
pup auth login
# Now they can fetch data like a good pup
pup monitors list --tags="team:api-platform" # Fetch monitors
pup logs search --query="status:error" --from="1h" # Sniff out errors
pup metrics query --query="avg:system.cpu.user{*}" # Track the metrics tail
Set Up Datadog in Your Project
pup setup walks you through instrumenting a project with Datadog (APM, Docker, ECS, Error Tracking, and more). It runs Datadog's AI Setup CLI with npx, so it needs Node.js 22 or newer, and it signs you in to Datadog if you aren't already.
pup setup # Start an interactive setup
pup setup --product apm # Set up a specific product
pup setup --help # List products and their flags
Agents and CI can run it non-interactively: pup setup --headless scans the repository and sets up the top recommended product, and pup setup --headless --recommend-only prints the recommendations as JSON without changing anything.
:dog: TL;DR: We built a comprehensive CLI so AI agents can use Datadog like a pro. Give your agent a pup. They're housetrained, loyal, and know way more tricks than you'd expect.
P.S. No actual puppies were harmed in the making of this CLI. Just a lot of Rust code and API endpoints.
API Coverage
Pup covers most major Datadog product surfaces. See
docs/COMMANDS.md for the canonical command reference, or run
pup --help (or pup agent schema for machine-readable output) for the live
list of commands as built.
💡 Tip: Use Ctrl/Cmd+F to search for specific APIs. Request features via GitHub Issues.
📊 Core Observability
| API Domain | Status | Pup Commands | Notes |
|---|
| Metrics | ✅ | metrics search, metrics query, metrics list, metrics get | V1 and V2 APIs supported |
| Logs | ✅ | logs search, logs list, logs aggregate | V1 and V2 APIs supported |
| Events | ✅ | events list, events search, events get | Infrastructure event management |
| RUM | ✅ | rum apps, rum sessions, rum events, rum aggregate, rum metrics, rum retention-filters, rum playlists, rum replay, rum viewership, rum heatmaps | Apps, sessions, events, metrics, retention filters, replay playlists/segments/viewership, heatmaps |
| APM Services | ✅ | apm services, apm entities, apm dependencies, apm flow-map | Services stats, operations, resources; entity queries; dependencies; flow visualization |
| Traces | ✅ | traces search, traces aggregate, traces metrics | Span search/aggregation and span-based metric definitions |
| Profiling | ⏳ | profiling | Not supported in pup yet. Use the Datadog MCP server: https://docs.datadoghq.com/bits_ai/mcp_server. Enable with: https://mcp.datadoghq.com/api/unstable/mcp-server/mcp?toolsets=core,profiling |
| Database Monitoring | ✅ | dbm samples search | DBM query sample search |
| Session Replay | ✅ | rum replay segments, rum playlists, rum viewership, rum sessions search | Segments, playlist CRUD, viewership; discover sessions via RUM (not logs) |
🔔 Monitoring & Alerting