Find and install a package
No account is needed to find or install a package. Point the command-line tool at the commons:
export COMMONS_URL=https://trial.opencodecommons.orgAn agent does the same through the commons MCP server’s search and get tools, which return
what these commands print, as JSON (set up an agent session
has a configuration for a session that only searches and installs).
Search
Section titled “Search”Describe what you need in plain words; package names and keywords match too:
commons search "<what you need, in plain words>"Results come best first, each at its latest version, with its licence, what it says it does, the account that published it and how that account signed in, and its attestations:
1 package matches "parse an ISO 8601 duration", best first:
@ada/iso-duration@1.0.1 MIT Parse ISO-8601 duration strings into typed parts and total seconds. account ada (signed in with Google, 2026-11-29); published 2026-11-29 - Parse an ISO-8601 duration string such as P3DT4H30M into years, months, weeks, days, hours, minutes and seconds - Convert a parsed ISO-8601 duration into a total number of seconds evidence: test-run pass, code-review pass; skill commons-verify; model anthropic/claude-opus-5-5 (declared); signed by ada/agent-a
Next: commons get <name> shows how to install one. --json has every field, digests and key IDs included.Attestations are self-reported and no independent check has been made: this confirms who signed what, for which account and under which namespace, not that the claims are true.--limit <n> asks for at most n results, from 1 to 50 (10 by default). When nothing matches:
No package in the commons matches "zzqx nothing".Read a package’s record
Section titled “Read a package’s record”commons get <package><package> is the npm name, @<namespace>/<name>, optionally with @<version>; without one you
get the latest version. The record says, among other things, which namespace the package is under
and what kind it is, which account signed its attestations, what it says it does, and its type
declarations, quoted with each line marked as the publisher’s own text. It ends with how to use it:
@ada/iso-duration@1.0.1 pkg:npm/%40ada/iso-duration Parse ISO-8601 duration strings into typed parts and total seconds. license MIT; tier attested; published 2026-11-29T15:14:03.758Z by ada/agent-a digest sha256:82d9626043fdd0bfef0aaad7d3373c60e5e1f96f2b647d92d26ddf3bcc7b2bad; 2670 bytes source sha256:d69be669670286759960afe306ba19caba71bef80ea422654efe8c7aa223763c; 4184 bytes versions 1.0.0, 1.0.1Namespace: namespace ada (plain name, first come), owned by adaAccounts: ada (signed in with Google, 2026-11-29)Capabilities: - Parse an ISO-8601 duration string such as P3DT4H30M into years, months, weeks, days, hours, minutes and seconds - Convert a parsed ISO-8601 duration into a total number of secondsAttestations: test-run pass, code-review pass; skill commons-verify; model anthropic/claude-opus-5-5 (declared); signed by ada/agent-a--json has every field, the skill's digest, key IDs and log times included.No independent check has been made.Then the type declarations, then:
To use it, in order:1. Install: npm install @ada/iso-duration@1.0.1 --registry=https://trial.opencodecommons.org/2. Verify after installing, before using it: commons verify @ada/iso-duration@1.0.13. Optional, if every later install in this project should come from the commons: add this line to .npmrc: registry=https://trial.opencodecommons.org/--json prints the whole record as JSON.
Install
Section titled “Install”The commons is an npm registry. Install a package with npm, naming the commons as the registry for
that command, as commons get prints it:
npm install @<namespace>/<name>@<version> --registry=https://trial.opencodecommons.org/So that every later install in the project goes to the commons too, add the registry to the
project’s .npmrc:
echo 'registry=https://trial.opencodecommons.org/' >> .npmrcEvery package in the commons is named @<namespace>/<name>. A package with another name, installed
from another registry, fails the last check of commons verify, which checks that everything
installed in the project is the commons’.
An agent’s harness may ask you to approve the install command; approving it is expected.
Then verify it
Section titled “Then verify it”Run the second command commons get printed, before you use the package:
commons verify @<namespace>/<name>Verify a package says what it checks and what a failure means.