From nmg-router
Puts non-Claude models into Claude Code's /model picker through the user's own provider logins, with an Anthropic guard on every routed request.
13 events · 32 calls
Ships in nmg-router. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.checkprocess.runprocess.spawnhttp.fetchfs.writefs.existsfs.readenv.getsettings.readcommand.runmodel.classifyprompt.composeEach event it registers a hook on, with the matcher when it sets one
command.runprompt.composeturn.stepsession.compactturn.completetool.checkclassic.UserPromptSubmitclassic.PermissionRequestclassic.PostToolUseui.render{component=Pane, requestId=?}ui.close{id=?}session.startcommand.run{command=model}command.run{command=usage}ui.focus{requestId=?}Every mods API method its source calls, by namespace
afterrunlistgetexistsreadwritefetchclassifyrunspawncomposeauthorizecwdidmessagesmodelusagereaddeletegetsetlistaskclosefocusinvalidatelogopenresolvestatustoastAPPDATACLAUDE_CONFIG_DIRDBUS_SESSION_BUS_ADDRESSHOMELOCALAPPDATAOSUSERPROFILEXDG_CONFIG_HOMEXDG_DATA_HOMEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
nmg-router@nmg-plugins is listed by nunley-media-group/nmg-plugins — review the source before installing
npx claudepluginhub nunley-media-group/nmg-plugins --plugin nmg-router