Purpose: Quick reference for publishing OpenAgents Control to npm
Time to Read: 3 minutes
OpenAgents Control is published as @nextsystems/oac on npm. Users install globally and run oac [profile] to set up their projects.
Key files:
package.json - Package configurationbin/oac.js - CLI entry point.npmignore - Exclude dev filesinstall.sh - Main installer (runs when user executes oac)# Update version
npm version patch # 0.7.0 -> 0.7.1
npm version minor # 0.7.0 -> 0.8.0
# Update VERSION file
node -p "require('./package.json').version" > VERSION
# Update CHANGELOG.md with changes
# Create package
npm pack
# Install globally from tarball
npm install -g ./nextsystems-oac-0.7.1.tgz
# Test CLI
oac --version
oac --help
# Uninstall
npm uninstall -g @nextsystems/oac
# Login (one-time)
npm login
# Publish (scoped packages need --access public)
npm publish --access public
# Check it's live
npm view @nextsystems/oac
# Test installation
npm install -g @nextsystems/oac
oac --version
git tag v0.7.1
git push --tags
# Create release on GitHub with changelog
Once published, users can:
# Global install (recommended)
npm install -g @nextsystems/oac
oac developer
# Or use npx (no install)
npx @nextsystems/oac developer
"You do not have permission to publish"
npm whoami # Check you're logged in
npm publish --access public # Scoped packages need public access
"Version already exists"
npm version patch # Bump version first
"You must verify your email"
npm profile get # Check email verification status
What's included (see package.json → files):
.opencode/ - Agents, commands, context, profiles, skills, toolsscripts/ - Installation scriptsbin/ - CLI entry pointregistry.json - Component registryinstall.sh - Main installerWhat's excluded (see .npmignore):
node_modules/evals/.tmp/npm profile enable-2fa auth-and-writes@nextsystems scope is protected (only you can publish)package.json, bin/oac.js, .npmignoreLast Updated: 2026-01-30