{"score":80,"grade":"B","scannedAt":"2026-12-05T22:54:41.801Z","scanner":"grades-0.2","signals":{"ecosystem":"npm","name":"@keepstateai/cli","version":"0.1.54","license":"MIT","repository":"https://github.com/Keepstateai/cli","firstPublished":"2026-09-03T16:03:16.646Z","lastPublished":"2026-12-01T23:51:38.631Z","versions":49,"maintainers":1,"weeklyDownloads":1096,"files":3,"bytes":2967,"hosts":["keepstate.ai"]},"capabilities":{"network":true,"files":true,"shell":true,"env":true,"dynamicCode":false},"findings":[{"rule":"install-script","severity":"medium","title":"Runs a script automatically when installed (postinstall)","file":"package.json","snippet":"node install.js"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"install.js","line":9,"snippet":"const REPO = process.env.KS_INSTALL_REPO || \"keepstateai/cli\";"},{"rule":"env","severity":"info","title":"Reads environment variables (where API keys usually live)","file":"install.js","line":10,"snippet":"const BASE = process.env.KS_INSTALL_BASE || `https://github.com/${REPO}/releases/latest/download`;"},{"rule":"network","severity":"info","title":"Makes network requests","file":"install.js","line":16,"snippet":"function fetch(url, redirects = 5) {"},{"rule":"network","severity":"info","title":"Makes network requests","file":"install.js","line":20,"snippet":"return resolve(fetch(res.headers.location, redirects - 1));"},{"rule":"network","severity":"info","title":"Makes network requests","file":"install.js","line":32,"snippet":"const [bin, sums] = await Promise.all([fetch(`${BASE}/${asset}`), fetch(`${BASE}/SHA256SUMS`)]);"},{"rule":"files","severity":"info","title":"Writes, moves or deletes files","file":"install.js","line":41,"snippet":"fs.writeFileSync(dest, bin, { mode: 0o755 });"},{"rule":"shell","severity":"info","title":"Runs shell commands or other programs","file":"run.js","line":2,"snippet":"const { spawn } = require(\"child_process\");"}],"vulns":[],"installScripts":["postinstall"],"server":{"name":"ai.keepstate/ks","title":"KeepState","description":"Durable agent sessions: start, watch, message and pause KeepState agents; approvals ask a person.","websiteUrl":"https://keepstate.ai/docs/herdr-and-mcp","repository":"https://github.com/Keepstateai/cli","version":"0.1.54"}}