CLI & API
CLI
Run the same models that power the editor from a terminal, a shell script, or CI — with the Goatfied command-line interface.
goatfied is a thin, dependency-free wrapper over the same HTTP API the editor uses. It streams replies to your terminal, pipes cleanly in shell scripts, saves conversations you can resume later, and can launch cloud agents. It needs Node 18+ and nothing else.
# run without installing npx @goatfied/cli "explain this repo"
Commands
| goatfied "…" | One-shot prompt — streams a reply. |
| goatfied | Interactive REPL. |
| goatfied login | Save an API token. |
| goatfied sessions | List and resume saved conversations. |
| goatfied config | Read and set persisted defaults. |
| goatfied cloud | Launch and manage cloud agents. |
Guides
- Installation — npm or npx, requirements.
- Authentication — tokens and CI.
- Sessions — resume and continue conversations.
- Automation — print mode, JSON output, pipelines.
- Cloud agents — run background agents from the terminal.
- Configuration — persist the model and API URL.
Next