Documentation Index
Fetch the complete documentation index at: https://allhandsai-feat-plugin-via-agent-context-example.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Headless mode runs OpenHands without the interactive terminal UI, making it ideal for:- CI/CD pipelines
- Automated scripting
- Integration with other tools
- Batch processing
Requirements
- Must specify a task with
--taskor--file
Basic Usage
JSON Output Mode
The--json flag enables structured JSONL (JSON Lines) output, streaming events as they occur:
Use Cases for JSON Output
- CI/CD pipelines: Parse events to determine success/failure
- Automated processing: Feed output to other tools
- Logging: Capture structured logs for analysis
- Integration: Connect OpenHands with other systems
Example: Capture Output to File
See Also
- Terminal Mode - Interactive CLI usage
- Command Reference - All CLI options

