Choose the real execution boundary

Use the normal command wrapper for a local CLI. For a containerized Node.js agent, use the documented container binary path so the profiler attaches where the process actually runs.

Verify current support before automating

Container names, runtimes, and deployment topology vary. Test one bounded run and confirm capture before turning the command into a repeated audit workflow.

Terminal
$ sudo agentsight record -- opencode
$ sudo agentsight record -c node --binary-path docker://openclaw

Primary sources