mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-19 08:01:17 +00:00
docs: sync README with source of truth (#2932)
Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
This commit is contained in:
parent
56f7840f0c
commit
75cff300b4
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -236,6 +236,20 @@ If spawn fails to install, try these steps:
|
|||
spawn openclaw digitalocean
|
||||
```
|
||||
|
||||
### Headless JSON mode — agent exits immediately
|
||||
|
||||
When using `--headless --output json` with Claude Code, you must also pass `--prompt` (or `-p`). Without it, Claude exits with `Input must be provided through stdin or --prompt` and the JSON output will show `"status":"error"`:
|
||||
|
||||
```bash
|
||||
# WRONG — Claude exits immediately
|
||||
spawn claude gcp --headless --output json
|
||||
|
||||
# RIGHT — provide a prompt
|
||||
spawn claude gcp --headless --output json --prompt "Fix all linter errors"
|
||||
```
|
||||
|
||||
Note: auto-update messages may appear before the JSON on older CLI versions. Run `spawn update` to get the fix.
|
||||
|
||||
### Agent launch failures
|
||||
|
||||
If an agent fails to install or launch on a cloud:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue