In magpie's Docker image there is no curl to run xAI's installer, and a grok binary dropped on PATH outside a .grok folder isn't taken (isGrokBuild keeps another program named grok out). GROK_BIN_DIR already took one as it is; the error now says so, and the README says where the CLI is looked for. Run: TMPDIR=<scratch> HOME=<scratch home> bun test in packages/grok (41 pass, 0 fail); bun scripts/check.mjs grok (✓). With index.mjs put back to 0.1.14, import.test's "no Grok Build … is refused first" fails on the new GROK_BIN_DIR assertion. Not tried in a real container from this commit; magpie's own fix (installing Grok Build before `magpie plugin login grok`) is in yetone/magpie.