For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

agentengine debug logs

View CLI debug logs.

View the CLI’s own debug logs.

Each invocation writes a structured JSON log file unless --no-log is set. Log files are at:

  • macOS: ~/Library/Logs/agentengine/

  • Linux: ${XDG_STATE_HOME:-~/.local/state}/agentengine/logs/

  • Windows: %LOCALAPPDATA%\agentengine\Logs\

Flags and their environment variables:

--log-level AGENTENGINE_LOG_LEVEL (default info) --log-file AGENTENGINE_LOG_FILE --no-log AGENTENGINE_NO_LOG --verbose -v, -vv raise stderr verbosity --quiet -q silence stderr below error

AGENTENGINE_LOG_MAX_FILES sets the retained file count (default 20). AGENTENGINE_NO_LOG_PRUNE disables automatic pruning.

When a command fails, the final stderr line shows the active log path:

For details: ~/Library/Logs/agentengine/agentengine-2026-05-13T11-43-57Z-12345.log

Examples:

agentengine debug logs listagentengine debug logs get --last --pretty
-h, --help help for logs
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
Rate this page