@asathinkeroops/cmm
v0.1.2
Published
Multi-model API gateway for code agents - CLI wrapper
Downloads
12
Maintainers
Readme
code-models-manager (cmm)
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.
Architecture
Screenshots
Key Features
- 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
- Code Agent Integration: Intercept ClaudeCode/OpenCode/Codex's BaseURL configuration to centralize their requests through the CMM gateway
- Dual Protocol Support: Compatible with OpenAI (
/v1/chat/completions), Anthropic (/v1/messages) and Codex (/v1/responses) protocols - Web Admin Interface: Visual configuration for models and ClaudeCode settings management
- Startup Service: Support for macOS/Linux/Windows system service installation
Quick Start
# Install
npm install -g @asathinkeroops/cmm
# Install global auto-start service
cmm install
# Open configuration page to configure models
cmm configUsage
# Show help
cmm --help
# Install startup service
cmm install
# Uninstall startup service
cmm uninstall
# View current configuration
cmm config
# View service status
cmm status
Package Structure
packages/npx/
├── src/
│ ├── index.js # CLI entry point (source)
│ └── install.js # Postinstall script (source)
├── dist/ # Bundled output (published)
│ ├── index.js
│ └── install.js
├── package.json
├── .gitignore
└── .npmignore