nproxy setup

nproxy setup is the single install flow. It creates .nproxy/contract.json, starts the passive daemon, applies detected native projectors, offers optional bindings, and verifies local protection before the dashboard marks setup complete.

Usage

npx nproxy setup [slug] [options]

Arguments

ArgumentRequiredDescription
slugNoOrganization slug. If omitted, nproxy reads existing config and then falls back to public.

Options

FlagAliasDescription
--token <token>Use an org API token for policy sync.
--port <port>Local proxy port. Default: 4873.
--ecosystem <list>Configure only selected ecosystems, for example npm,pip.
--allConfigure every detected ecosystem.
--yesUse safe defaults without prompting.
--bindingsCreate optional bindings from detected env files in observe mode.
--removeRemove nproxy package-manager config.
--global-gCompatibility path for cloud .npmrc setup.

What it does

  1. Resolves the org slug and token.
  2. Detects package managers and common runtime files.
  3. Writes or refreshes .nproxy/contract.json.
  4. Configures selected package managers through http://127.0.0.1:4873.
  5. Installs wrapper scripts and starts the passive daemon.
  6. Projects optional bindings and runtime config when requested.
  7. Runs verification and reports success to the dashboard.

Examples

npx nproxy setup acme
npx nproxy setup acme --yes
npx nproxy setup acme --ecosystem npm,pip
npx nproxy setup acme --bindings
npx nproxy setup --remove --ecosystem npm

Notes

  • Bindings are optional. Env vars keep working unless you opt into binding capabilities.
  • --yes does not enable bindings.
  • Runtime integration is native: PM2, Docker, Kubernetes, Cloudflare, and CI use projected config instead of an app-specific launch wrapper.
  • The dashboard marks setup complete only after the CLI verifies the local proxy.

Troubleshooting

Crash-looping launchd service

If your launchd service was installed before this fix and is crash-looping, repair it:

launchctl unload ~/Library/LaunchAgents/app.nproxy.daemon.plist
: > ~/.nproxy/daemon/proxy.err.log
nproxy setup --local