Skip to content
Theme:

Headless CLI

The headless CLI runs a single prompt and exits — ideal for scripting, CI pipelines, and automation.

Terminal window
aether headless "Explain the main function in this project"
FlagTypeDefaultDescription
[PROMPT]...positionalPrompt text (joined with spaces)
-m, --modelstringModel spec (e.g., anthropic:claude-sonnet-4-5)
-a, --agentstringNamed agent from settings.json
-C, --cwdpath.Working directory
--mcp-configpathPath to MCP config file
--system-promptstringAdditional system prompt text
--outputstringtextOutput format: text, pretty, json
-v, --verboseflagVerbose logging to stderr
--eventsstringComma-separated event filter (e.g. tool_call,tool_result). Omit to emit all.

Plain text output — just the agent’s response.

Terminal window
aether headless --output text "What does this project do?"

By default, headless mode emits all event types. Use --events to restrict output to specific event kinds:

Terminal window
aether headless --output json --events tool_call,tool_result "Refactor this module"

Available event kinds:

Event kindDescription
textFinal text output
thoughtExtended thinking / reasoning
tool_callTool invocation
tool_resultTool return value
tool_errorTool failure
errorAgent-level error
cancelledOperation cancelled
auto_continueAgent auto-continuing
model_switchedModel changed (alloying)
tool_progressTool execution progress
context_compaction_startedCompaction beginning
context_compaction_resultCompaction completed
context_usageToken usage update
context_clearedContext was cleared

If no prompt is given and stdin is not a TTY, Aether reads the prompt from stdin:

Terminal window
echo "Explain this code" | aether headless
Terminal window
cat error.log | aether headless "What went wrong?"

This is useful for piping file contents or command output into Aether.

Terminal window
aether headless -m anthropic:claude-sonnet-4-5 "What does the Config struct do?"
Terminal window
aether headless -a researcher "Find all API endpoints in this project"
Terminal window
aether headless \
-m anthropic:claude-haiku-4-5 \
--output json \
"Review the staged changes and list any issues" \
> review.json
Terminal window
aether headless -C /path/to/project "Summarize the architecture"

Print the fully assembled system prompt (useful for debugging):

Terminal window
aether show-prompt
aether show-prompt --agent researcher
FlagTypeDefaultDescription
-C, --cwdpath.Working directory
--mcp-configpathPath to MCP config file (repeatable)
--system-promptstringAdditional system prompt text
-a, --agentstringNamed agent to inspect

Initialize a new Aether project:

Terminal window
aether agent new [path]

See Getting Started for details.

List all agents in the project:

Terminal window
aether agent list [path]

Remove an agent from the project:

Terminal window
aether agent remove <name> [path]