{"_id":"@asathinkeroops/cmm","_rev":"5-38dc49c57a5d4f545d89eb1e34111864","name":"@asathinkeroops/cmm","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.1":{"name":"@asathinkeroops/cmm","version":"0.1.1","keywords":["cli","api-gateway","claude","openai","anthropic","code-agent"],"author":"","license":"MIT","_id":"@asathinkeroops/cmm@0.1.1","maintainers":[{"name":"asathinkeroops","email":"asathinker@foxmail.com"}],"homepage":"https://github.com/asathinkeroops/cmm#readme","bugs":{"url":"https://github.com/asathinkeroops/cmm/issues"},"bin":{"cmm":"dist/index.js"},"dist":{"shasum":"c1226eeab3389a20ad9158cfe7bc34abb9a8181d","tarball":"https://registry.npmjs.org/@asathinkeroops/cmm/-/cmm-0.1.1.tgz","fileCount":4,"integrity":"sha512-7q/F5T05ejHPjNVEZKQO8LDuf9xVE0aHdxa62QP8fs07StF2hWYsyHC+svZV0NHk3m2VNsiCagaWLUb/BmxZAg==","signatures":[{"sig":"MEUCIDBsp/pLsumPRWoP8mh8yk3AJLRT0JdjRIIcBuLuj3pFAiEAtlRuOGPitwU0BvJxNXH306QMY5e86CwvkSD5zdW6big=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89789},"main":"dist/index.js","engines":{"node":">=16"},"gitHead":"91f96b50434ed2582300119baa3d76e7bb20476b","scripts":{"build":"esbuild src/index.js src/install.js --outdir=dist --bundle --platform=node --format=cjs","postinstall":"node -e \"const fs=require('fs'); const path=fs.existsSync('dist/install.js')?'./dist/install.js':'./src/install.js'; require(path);\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"asathinkeroops","email":"asathinker@foxmail.com"},"repository":{"url":"git+ssh://git@github.com/asathinkeroops/cmm.git","type":"git"},"_npmVersion":"11.6.2","description":"Multi-model API gateway for code agents - CLI wrapper","directories":{},"_nodeVersion":"24.13.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.25.2","extract-zip":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/cmm_0.1.1_1775894083811_0.9113553477619873","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@asathinkeroops/cmm","version":"0.1.2","description":"Multi-model API gateway for code agents - CLI wrapper","keywords":["cli","api-gateway","claude","openai","anthropic","code-agent"],"publishConfig":{"access":"public"},"author":"","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/asathinkeroops/cmm.git"},"bugs":{"url":"https://github.com/asathinkeroops/cmm/issues"},"homepage":"https://github.com/asathinkeroops/cmm#readme","main":"dist/index.js","bin":{"cmm":"dist/index.js"},"scripts":{"build":"esbuild src/index.js src/install.js --outdir=dist --bundle --platform=node --format=cjs","prepublishOnly":"npm run build","postinstall":"node -e \"const fs=require('fs'); const path=fs.existsSync('dist/install.js')?'./dist/install.js':'./src/install.js'; require(path);\""},"engines":{"node":">=16"},"devDependencies":{"esbuild":"^0.25.2","extract-zip":"^2.0.1"},"gitHead":"b975723e36f86f4390c8469049dbd47039d08210","_id":"@asathinkeroops/cmm@0.1.2","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-ZDEOBiJm72L7gBfpaqWM40KgNGHQLFXbuqFkPvUkwGE/vczBOQxIx7lZ8+jw1D737Ju3osZhuF1XKeqq/8NvKg==","shasum":"326fb8de0608221583ceec976da52ae55eef9db9","tarball":"https://registry.npmjs.org/@asathinkeroops/cmm/-/cmm-0.1.2.tgz","fileCount":4,"unpackedSize":89241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDCDE9LZx4DpYjZ/nHX/w2QP6Gmz5x4txu7ETdUCx/ZYwIgHlMXdKgOUwbfpCGGqduKPDk49xLpro9IACVXr+ZCcmo="}]},"_npmUser":{"name":"asathinkeroops","email":"asathinker@foxmail.com"},"directories":{},"maintainers":[{"name":"asathinkeroops","email":"asathinker@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cmm_0.1.2_1775902099457_0.5655420565322251"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-11T07:54:43.705Z","modified":"2026-04-11T10:08:19.716Z","0.1.0":"2026-04-11T07:38:58.296Z","0.1.1":"2026-04-11T07:54:43.974Z","0.1.2":"2026-04-11T10:08:19.609Z"},"bugs":{"url":"https://github.com/asathinkeroops/cmm/issues"},"license":"MIT","homepage":"https://github.com/asathinkeroops/cmm#readme","keywords":["cli","api-gateway","claude","openai","anthropic","code-agent"],"repository":{"type":"git","url":"git+ssh://git@github.com/asathinkeroops/cmm.git"},"description":"Multi-model API gateway for code agents - CLI wrapper","maintainers":[{"name":"asathinkeroops","email":"asathinker@foxmail.com"}],"readme":"# code-models-manager (cmm)\n\n**CMM is a multi-model API gateway**: By intercepting the BaseURL configuration of code agents, it centralizes all requests and routes them to upstream model providers, supporting ClaudeCode, OpenCode, Codex and other popular code agent tools.\n\n## Architecture\n\n![CMM Architecture](https://github.com/asathinkeroops/cmm/raw/main/snapshots/cmm-architecture.svg)\n\n## Screenshots\n\n<table>\n  <tr>\n    <td width=\"50%\"><img src=\"https://github.com/asathinkeroops/cmm/raw/main/snapshots/model-manager.png\" alt=\"Model Manager\" /></td>\n    <td width=\"50%\"><img src=\"https://github.com/asathinkeroops/cmm/raw/main/snapshots/claude-code-config.png\" alt=\"ClaudeCode Config\" /></td>\n  </tr>\n</table>\n\n## Key Features\n\n- **Multi-model API Gateway**: Configure multiple models (each with different API Key, BaseURL, model name), call with a unified ID, and the gateway automatically routes to the correct upstream\n- **Code Agent Integration**: Intercept ClaudeCode/OpenCode/Codex's BaseURL configuration to centralize their requests through the CMM gateway\n- **Dual Protocol Support**: Compatible with OpenAI (`/v1/chat/completions`), Anthropic (`/v1/messages`) and Codex (`/v1/responses`) protocols\n- **Web Admin Interface**: Visual configuration for models and ClaudeCode settings management\n- **Startup Service**: Support for macOS/Linux/Windows system service installation\n\n\n## Quick Start\n\n```bash\n# Install\nnpm install -g @asathinkeroops/cmm\n\n# Install global auto-start service\ncmm install\n\n# Open configuration page to configure models\ncmm config\n```\n\n## Usage\n\n```bash\n# Show help\ncmm --help\n\n# Install startup service\ncmm install\n\n# Uninstall startup service\ncmm uninstall\n\n# View current configuration\ncmm config\n\n# View service status\ncmm status\n```\n\n![CMM Status](https://github.com/asathinkeroops/cmm/raw/main/snapshots/cmm-status.png)\n\n## Package Structure\n\n```\npackages/npx/\n├── src/\n│   ├── index.js      # CLI entry point (source)\n│   └── install.js    # Postinstall script (source)\n├── dist/             # Bundled output (published)\n│   ├── index.js\n│   └── install.js\n├── package.json\n├── .gitignore\n└── .npmignore\n```","readmeFilename":"README.md"}