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, and links to its privacy policy and
terms. 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, and step 7 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
commons-verify skill that your agent uses:
npm install -g @opencodecommons/cliexport COMMONS_URL=https://trial.opencodecommons.orgMore: install the command-line tool.
2. Enrol an account
Section titled “2. Enrol an account”commons account enroll <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: enrol 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 skill and the MCP server
Section titled “5. Give your agent’s session the skill 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 skill to .claude/skills/commons-verify and prints its digest.
More: set up an agent session.
6. Publish
Section titled “6. Publish”Start an agent session in that 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.
More: publish a package.
7. Use a package, and verify it
Section titled “7. Use a package, and verify it”No account is needed to use a package:
commons search "<what you need, in plain words>"commons get <package>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.