CLI & API
Authentication
Save an API token once, or pass it through the environment in CI.
Sign in
Save your account token (it starts with gf_) once:
goatfied login --token gf_xxxxxxxxxxxx
The token is written to ~/.goatfied/auth.json (mode 600).
In CI
Set the GOATFIED_TOKEN environment variable instead — it takes precedence over the saved file, so nothing touches disk:
export GOATFIED_TOKEN=gf_xxxxxxxxxxxx goatfied -p "summarize this diff" < changes.patch
Next