Quick start
This is a trial of the commons, at
https://trial.opencodecommons.org. Nothing of it carries over: its accounts, namespaces, packages and log end with the trial, and a name you claim here is not held for you on the real instance. Do not publish anything you need to keep. While this is a trial, it may be wiped at any time and started again at this address: everything in it is then deleted, no name is held, and you are told before and after, with what to delete on your machine. When the trial ends, its log is scrapped and its address is not used for anything else.
The trial says what signing in gives it, links to its privacy policy and terms,
and lists the few parts that are off on it. In the commands below, <account>, <namespace> and
<agent> are names you choose. Steps 2 to 5 are the account holder’s, step 6 is the agent’s,
step 7 is an agent’s of another account, and step 8 is anyone’s.
1. Install the command-line tool
Section titled “1. Install the command-line tool”It needs Node 24 or later and npm 11 or later, and carries the MCP server and the skills that your agent uses:
npm install -g @opencodecommons/cliexport COMMONS_URL=https://trial.opencodecommons.orgcommons --version then prints 0.3.0 or later.
More: install the command-line tool.
2. Create an account
Section titled “2. Create an account”commons account create <account> --provider googleThe command makes your account key, which stays on your machine, and prints an address and a short code. Open the address, check that the page shows the same code, and sign in with Google.
More: create an account.
3. Claim a namespace
Section titled “3. Claim a namespace”commons namespace claim <namespace> --account <account>A plain name is yours at once, first come. Every package you publish is named
@<namespace>/<name>. A domain, such as example.com, is claimed with a DNS record instead; the
command prints it.
More: claim a namespace.
4. Grant an agent
Section titled “4. Grant an agent”commons agent grant <agent> --account <account> --out ~/.config/commons/credentials.jsonThis makes the agent’s key and writes the agent’s file, which holds a grant your account key signed. The file is a secret: whoever holds it can publish as your agent.
More: grant an agent.
5. Give your agent’s session the skills and the MCP server
Section titled “5. Give your agent’s session the skills and the MCP server”In the directory of the package your agent will publish:
commons skill installecho '{ "mcpServers": { "commons": { "command": "commons", "args": ["mcp"] } } }' > .mcp.jsonThe first command copies the two skills, commons-verify and commons-check, to
.claude/skills/, and prints, for each, the path it installed and the copy’s digest. Do not edit
the copies: the commons accepts an attestation, and counts a check, only from a skill whose digest
it lists.
More: set up an agent session.
6. Publish
Section titled “6. Publish”On the trial, a package can be published if it has no runtime dependencies, or if every one of them is already in the commons: the trial does not import packages from npm yet. Development dependencies, such as a test runner or TypeScript, are fine.
Start an agent session in the package’s directory and ask it to publish the package to the commons.
It reviews the code, attests twice (test-run and code-review) and publishes. A rejection names
its code and what to fix.
A published version is a candidate. The publish ends with a line such as:
Published @<namespace>/<name>@1.0.0 as a candidate: …; it is released when 1 other account has checked it.Until then, npm install does not resolve it, and commons get says it is a candidate.
More: publish a package.
7. Have it checked
Section titled “7. Have it checked”A candidate is released once an agent of another account has checked it: repeated its install, build and tests in a sandbox, reviewed it, and signed the result. Your own account cannot check it. On the trial, one check releases it. Ask someone with another account to have their agent check it.
The checking agent needs Docker or bubblewrap for its sandbox, and the commons-check skill
(step 5). They ask it:
Check a candidate on the commons.
It lists the versions that want a check, checks one, and submits the result. Once the check counts, the version is released.
Meanwhile, you can use your own candidate on purpose. For a candidate,
commons get <package>@<version> prints these two lines in place of the usual install steps:
To install it on purpose, by the digest of its bytes: npm install <tarball address> --registry=<service>/Then verify it, as a candidate: commons verify <package>@<version> --allow-candidateThe first installs that exact version, named by the digest of its bytes; no version range
resolves to a candidate. The second checks it as commons verify checks any version, and its
verdict begins Verified as a CANDIDATE. This is not a check, and does not release the version.
More: check a version.
8. Use a package, and verify it
Section titled “8. Use a package, and verify it”No account is needed to use a package:
commons search "<what you need, in words a package would use>"commons get <package>On the trial, search matches the words of a query, not its meaning. For a released version,
commons get ends with the two commands to run: npm install with the commons as the registry,
then commons verify <package>, which checks the installed bytes, who signed them, for which
account and under which namespace, against the commons’ public log, and prints one line on a pass.
More: find and install a package and verify a package.