An official Datadog CLI tool optimized for AI Agents, featuring 200+ commands across 33+ products, structured output, Runbooks automation, and WASM execution.
Pup is an official Datadog CLI tool designed for AI Coding Agent scenarios, currently in Preview (v0.58.3). Built natively in Rust, it covers 200+ commands across 33+ Datadog product lines, including core observability (Monitors, Metrics, Logs, Dashboards, SLOs), security and compliance, infrastructure and cloud, event management, CI/CD, organization and permissions, and platform configuration.
Pup's core design centers on AI Agent adaptation: it automatically detects 10+ Agent environments including Claude Code, Cursor, Codex, Aider, Cline, Windsurf, GitHub Copilot, Amazon Q, Gemini Code Assist, and Sourcegraph Cody. Upon detecting an Agent runtime, it automatically switches to structured JSON output and skips interactive confirmations, enabling AI Agents to autonomously perform observability queries, incident troubleshooting, alert management, and more. Built-in Agent Skills and Domain Agents can be directly installed into tools like Claude Code.
For automation, Pup provides a Runbooks engine that supports defining multi-step operations in YAML with step types including pup, shell, http, datadog-workflow, and confirm. It features variable interpolation, template reuse, failure handling, conditional execution, polling, and output capture, with dry-run preview support. The ACP Server feature (pup acp serve) turns Pup into a local AI Agent server supporting the ACP protocol and OpenAI-compatible protocol (POST /chat/completions), connectable to Datadog Bits AI.
The authentication system supports OAuth2 + PKCE (browser login with system keychain storage), API Key fallback, and stateless Bearer Tokens, with priority order: DD_ACCESS_TOKEN > OAuth2 tokens > API keys. Output formats include json, table, and yaml.
For cross-platform support, Pup runs on macOS, Linux (musl static binary), and Windows, and can be compiled to WebAssembly (wasm32-wasip2) for execution in runtimes like Wasmtime, Wasmer, and Cloudflare Workers. Installation options include Homebrew, source build, and precompiled binary download.