For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/real_user_monitoring/application_monitoring/agentic_onboarding.md.
A documentation index is available at /llms.txt.
This product is not supported for your selected Datadog site. ().
Overview
Agentic Onboarding is a set of AI-driven tools that automate Datadog instrumentation for your applications and infrastructure:
AI Setup CLI: Set up Datadog from a terminal, without a coding assistant.
MCP server: Set up Datadog through a coding assistant (such as Claude Code or Cursor), which handles framework detection and configuration from your IDE.
The two paths are complementary and use the same Datadog account. You can install the Datadog MCP Server in your IDE and run the CLI in a terminal.
AI Setup CLI
The Datadog AI Setup CLI is a standalone terminal tool. Use it when you don’t want to install an MCP server, or for tasks the MCP setup doesn’t support, such as creating a Datadog account.
The CLI can:
Create a Datadog account end-to-end from the terminal
Link an existing Datadog account to your local environment
Instrument local infrastructure as code (Terraform, Helm, Kustomize, Ansible, Pulumi, raw Kubernetes manifests, Docker Compose files) by editing files in place
Instrument local application code by adding SDK initialization and configuration for supported frontends and backends
Prerequisites
Node.js 22 or later
Supported products
The CLI can set up the following products:
Product
Identifier
App and API Protection
app_and_api_protection
Code Coverage
ci_code_coverage
Docker
docker
Error Tracking
error-tracking
Infrastructure Monitoring
infra-monitoring
Linux
linux
Agent Observability
llm-obs
OpenTelemetry
otel
Product Analytics
product-analytics
Real User Monitoring (RUM)
rum
Serverless Monitoring
serverless
Studio
studio
Test Optimization
test-optimization
Install and run the CLI
Run the CLI with npx, passing --site to target your Datadog site. You have two options, depending on whether you already have a Datadog account:
Option 1: Interactive setup. If you don’t have a Datadog account yet, or you want to choose your product interactively, run without a --product flag. The CLI steps you through account setup and product choice.
npx @datadog/ai-setup-cli --site datadoghq.com
Replace the value of --site with the Datadog site for your account: datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, or ap2.datadoghq.com.
Option 2: Direct setup. If you already have a Datadog account and want to install a specific product, pass --product to skip product selection.
Press Enter at the welcome screen and choose whether you have a Datadog account. A browser opens for OAuth (or for account creation if you don’t have an account yet). Complete the flow and grant access to your Datadog account.
If you ran the CLI without --product, select what to set up from the product menu. (Direct setup with --product skips this menu.)
The CLI detects your project’s frameworks, applies the required configuration, and provisions any necessary environment variables. Progress is reported stage by stage.
When setup completes, the CLI lists the products it instrumented and links to the Datadog UI to verify incoming data.
Commit the changes to your repository. You can edit the Datadog environment variables (API keys, application IDs) for your specific environment.
The Datadog MCP Server exposes the onboarding toolset to any MCP-compatible coding assistant. After you install and authenticate the server, you instrument a project by typing a one-line prompt. The agent reads your code, calls MCP tools (with your permission), applies changes, and verifies the result.
The agent detects your stack, requests permission before each tool call, applies changes locally (without committing them), and prints verification steps.
After the agent completes, commit the changes to your repository and set any new environment variables (API keys, application IDs) in your production environment. Then see Next steps to confirm data is flowing.
Next steps
Confirm data is flowing in the Datadog UI for the product you set up: