← GUIDES

GUIDE / SETUP NOTE

How to Vet an Open-Source Agent Repo Before You Run It

A checklist to vet an open-source AI agent before install: license, activity, install scripts, provenance and permissions, tried on two agent CLIs.

25 Nov 2026Checked 2026-10-30
Two open-source agent CLIs checked before install, opencode and Codex CLI: license, npm install scripts, npm provenance and repo name, with nothing installed or run

Checks run on 2026-10-30 against two open-source coding agents, opencode (npm opencode-ai 1.19.5) and Codex CLI (npm @openai/codex 0.166.0), using the GitHub API, npm registry metadata, the public OpenSSF Scorecard API, and a read of each install script. Nothing from either project was installed or run.

An agent you install can read your files, run commands and use your keys, so the minutes before install are the cheapest time to check it. We ran one checklist on two popular open-source coding agents, opencode and Codex CLI, without installing either. Both had clear licenses and recent releases. They differed on the details that matter at install time: one npm package runs a script on install and has no build provenance, and one install script checks a checksum while the other does not.

The checks are quick and mostly scriptable. A person reads the results and decides whether to install.

What the checklist covers (checked on 2026-10-30)

Five questions, each answered from a public source:

  1. License: is there one, and is it an open-source license?
  2. Activity: recent commits and releases, not archived, a security policy.
  3. Install scripts: what runs on your machine during install.
  4. Provenance: can you tie the package to the repo and build it came from?
  5. Permissions: what can the agent do by default once it runs?

For a second opinion on repo practices we used OpenSSF Scorecard. Its public API needs no key, and "Each individual check returns a score of 0 to 10, with 10 representing the best" (Scorecard).

Based on OpenSSF Scorecard, by the Scorecard contributors, and npm's own registry data. Apache-2.0.

The setup at a glance

  • Trigger: someone wants to try a new agent or agent tool.
  • Permissions: the checks only read public data. Nothing is installed or run.
  • Output: a short record for each candidate: license, last release, install scripts, provenance, scorecard and default permissions.
  • Human approval: a person reads the record, opens any install script, and signs off before anything is installed. No sign-off, no install.

Steps

  1. License and activity. Ask the GitHub API about the repo:
sh
curl -s https://api.github.com/repos/openai/codex | jq '{full_name, license: .license.spdx_id, archived, pushed_at}'
curl -s https://api.github.com/repos/openai/codex/releases/latest | jq '{tag_name, published_at}'

Watch for a redirect. Our request for sst/opencode came back as anomalyco/opencode, so the repo had moved. Check the new owner is who you expect.

  1. Package metadata. For npm packages, read the registry entry without installing:
sh
npm view opencode-ai license repository scripts dist.attestations --json

A missing repository field means the package does not say where its code lives. An empty dist.attestations means no provenance. Provenance "allows developers to verify where and how your package was built before they download it" (npm provenance).

  1. Install scripts. npm runs preinstall, install and postinstall during npm install. Download the package without running anything and read the script:
sh
npm pack opencode-ai@1.19.5 --ignore-scripts
tar xzf opencode-ai-1.19.5.tgz && cat package/postinstall.mjs

With --ignore-scripts, "npm does not run scripts specified in package.json files" (npm install). If the README says curl ... | sh, download that script to a file and read it first.

  1. Scorecard. curl -s https://api.securityscorecards.dev/projects/github.com/openai/codex | jq '.score, .checks[] | {name, score}'. A 404 means no published result, not a bad one.
  2. Default permissions. Read the README or docs for what the agent may do without asking: edit files, run shell commands, reach the network.
  3. Sign-off. Put the record in front of a person. They approve, reject or ask for more.

What our checks showed

CheckopencodeCodex CLI
License (GitHub)MITApache-2.0
Last releasev1.19.5, 2026-10-28rust-v0.166.0, 2026-10-29
Archived, security policyNo, SECURITY.md presentNo, SECURITY.md present
Repo nameMoved: sst/opencode redirects to anomalyco/opencodeUnchanged
npm repository fieldMissingSet to openai/codex
npm provenanceNoneSLSA provenance v1
npm install scriptspostinstall: node ./postinstall.mjsNone
README install script`curl ... \bash. We found no checksum check in it. Adds a PATH line to shell config unless --no-modify-path``curl ... \sh`. Checks SHA256 against a published sums file. Adds a marked PATH block to a shell profile
ScorecardNo published result (404)Aggregate score 6 of 10 (result dated 2026-10-26, checked 2026-10-30). Code-Review 0 ("Found 0/30 approved changesets"), Maintained 10, Security-Policy 10, Token-Permissions 0
Default permissions (README)Default "build" agent is "full-access". The "plan" agent "Denies file edits by default" and "Asks permission before running bash commands"Not covered in the README; see its docs

We read opencode's 189-line postinstall script instead of running it. It checks the CPU and C library, picks the matching platform package, copies its binary into place and runs it with --version. If the binary is missing it runs npm install --ignore-scripts for that one package. We found nothing else in it. The Linux binary package it pulls is about 214 MB unpacked.

None of this makes either tool unsafe. It tells you what will happen at install, which is what a person needs to approve it.

Things to know

  • Star counts and open issue counts are weak signals. Codex's GitHub open issue count, which includes pull requests, was 25,732.
  • A Scorecard of 0 on a check can reflect how a project works, such as merging without formal review approvals, not a flaw in the code.
  • Some agent packages are not open source even when the code is visible. In npm metadata on 2026-10-30, @anthropic-ai/claude-code 2.1.314 listed its license as "SEE LICENSE IN README.md", and @qwen-code/qwen-code 0.26.4 had no license field. Check the LICENSE file.
  • Pin the version you vetted. A later release has new code and new scripts.
  • Reading an install script takes minutes. Run it only after you have read it.

Takeaway

Before installing an open-source agent, check its license, activity, install scripts, provenance and default permissions, then have a person sign off. Our two candidates both passed the basics and differed on install-time details that only showed up when we read the scripts.

Next step: run the five checks on the next agent you plan to try, and read its install script before you run it.

How we check the tools we list is on our verification page.

Good setups, worth keeping. Request email updates on the home page, then confirm by email. No subscription starts until you confirm. Or find an agent for the job.

Your privacy choices

Choose optional tools. Rejecting them keeps the setup library available. Advertising consent stays off.

Choices stay in this browser for 90 days. You can change them using Privacy settings. Privacy and cookie details