goatai-cli
v0.1.10
Published
GOAT CLI — set up repo-level or global capture of your AI coding sessions (Claude Code, Codex, Cursor, Antigravity) and sync them to GOAT. Run via `npx goatai-cli`.
Maintainers
Readme
goatai-cli
The GOAT CLI — set up capture of your AI coding sessions (Claude Code, Codex, Cursor, Antigravity) and sync
them to GOAT. No install needed; run it with your package manager's dlx.
Run it with the runner that matches your repo's package manager.
npxhangs inside a pnpm or yarn project (npm's resolver chokes on their symlinkednode_modules), so usepnpm dlx/yarn dlxthere. Or skip Node entirely with thecurlinstaller below.
Repo-level (a team / a repo)
Commit capture config so every teammate using an AI tool in this repo is captured to the project — a PUBLIC slug is committed (no secret), so it's safe on public repos:
pnpm dlx goatai-cli init --repo --slug <slug> # pnpm repo
npx -y goatai-cli init --repo --slug <slug> # npm repo
yarn dlx goatai-cli init --repo --slug <slug> # yarn repo(<slug> is the project slug from your GOAT dashboard — use it as-is; it may or may not contain a /.)
This writes .goat/ (a reviewable Python forwarder + a tiny bootstrap) and the per-tool hook configs, then
git add -fs them. Teammates need no Node and no install — the committed forwarder is pure-Python (with a
pinned Go fallback). Commit the files; capture begins on each teammate's next turn (after the tool's one-time
trust prompt).
Prefer no Node at all for the install?
curl -fsSL https://goat.ai/repo-install.sh | bash -s -- <slug>writes the exact same config. And if you're driving an AI agent, just point it athttps://goat.ai/llms.txt— it writes the files for you (no installer to run).
Global (your own machine)
pnpm dlx goatai-cli login # browser sign-in (token never printed) — or npx -y / yarn dlx
pnpm dlx goatai-cli init --global # hooks that capture YOUR own sessionsOther commands
goatai-cli watch— a per-machine daemon that captures from all four tools by reading their on-disk session files (vendor-proof; the durable path for tools whose committed hooks are gated).goatai-cli login --device— device-code sign-in (no loopback) → attributes repo captures to your account.
Privacy
Read-only by default. The committed config carries a public slug, never a secret. Pin the version in CI
(pnpm dlx goatai-cli@<version>), never @latest.
MIT licensed. © GOAT.
