Headless mode always runs in always-approve mode. The agent will execute all actions without any confirmation. This cannot be changed—--llm-approve is not available in headless mode.
# Run a task in headless modeopenhands --headless -t "Write a Python script that prints hello world"# Load task from a fileopenhands --headless -f task.txt