Skip to content
Goatfied

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.
goatfiedInteractive REPL.
goatfied loginSave an API token.
goatfied sessionsList and resume saved conversations.
goatfied configRead and set persisted defaults.
goatfied cloudLaunch and manage cloud agents.

Guides

Next
Goatfied — The AI code editor