The AgentCore CLI collects anonymous usage analytics by default to help improve the tool. You can opt out at any time.
One event per command you run, containing:
- The command name (e.g.
add.agent,deploy,invoke) and whether it succeeded or failed. - On failure: a category for the error (e.g.
ValidationError,AccessDeniedError) and whether it originated from your input, the CLI, or the service. - A small set of structured attributes describing the shape of the command — for example, the framework and model provider when creating an agent, or the number of resources at deploy time. These are restricted to fixed enums, booleans, and counts.
- Per-session metadata: an anonymous installation ID (random UUID stored in
~/.agentcore/config.json), a session ID for each CLI session or TUI session, the CLI version, mode (cliortui), and basic environment info (OS family and version, host architecture, and Node.js version). Note: the session ID from telemetry is describing the CLI lifecycle and is independent from AgentCore Runtime and Memory session IDs. These are a subset of the resource attributes attached to every event — see the audit-mode output for the full set of keys.
The full list of attributes for every command lives in
src/cli/telemetry/schemas/.
- No free-form text. Strings like file paths, agent names, prompts, or invocation payloads are never sent.
- No AWS account IDs, ARNs, or credentials.
- No source code or configuration file contents.
Audit mode logs every telemetry event locally so you can see exactly what is be sent.
agentcore config telemetry.audit trueEvents are appended as JSON lines to ~/.agentcore/telemetry/<entrypoint>-<sessionId>.jsonl. Disable with:
agentcore config telemetry.audit falseYou can also set AGENTCORE_TELEMETRY_AUDIT=1 for a single session.
agentcore telemetry statusPrints whether telemetry is enabled and where the setting comes from (environment variable, global config, or default).
# Opt out
agentcore config telemetry.enabled false
# Opt in
agentcore config telemetry.enabled trueFor a single session, set AGENTCORE_TELEMETRY_DISABLED=1 in your environment.
Precedence (highest first): environment variable → ~/.agentcore/config.json → default (enabled).