
Research
/Security News
Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
Popular npm packages keyv and cacheable compromised.
Command-line interface for RiskModels: call the REST API (metrics, batch, portfolio, returns, rankings, etc.), run billed SQL queries, explore schema in direct (Supabase) mode, check balance, and export agent tool manifests. Same contract as the Python SDK: POST /decompose returns variance shares and ETF hedge ratios per ticker.
npm install -g riskmodels
Agent-first installer (pin @latest so npx does not resolve a stale cached package):
# Prerequisites: Node.js LTS (includes npx). macOS/Homebrew: brew install node; others: https://nodejs.org
RISKMODELS_API_KEY=rm_agent_live_... npx -y riskmodels@latest install --dry-run # optional: inspect plan first
RISKMODELS_API_KEY=rm_agent_live_... npx -y riskmodels@latest install
Local development can run the same flow with:
cd cli
npm run build
node dist/index.js install --dry-run
riskmodels config init (billed mode) or riskmodels config set apiKey <rm_agent_...>.RISKMODELS_API_KEY works without a config file for REST commands.query + schema only. REST analytics need an API key (config or env).Base URL: stored as apiBaseUrl (default https://riskmodels.app). The CLI calls paths under …/api/... (same as OPENAPI_SPEC.yaml).
riskmodels config init
# Choose API Key mode and enter your rm_agent_* key
riskmodels health
riskmodels metrics NVDA
riskmodels query "SELECT ticker, company_name FROM ticker_metadata LIMIT 3"
riskmodels balance
Config file: ~/.config/riskmodels/config.json
| Command | Description |
|---|---|
riskmodels config init | set | list | API key, apiBaseUrl, or Supabase (direct) |
riskmodels install | Detect Claude, Cursor, Codex, and VS Code MCP targets, store the API key in shared config, merge MCP configs with backups, and run a connection test. |
riskmodels status | Show shared config and MCP client detection status. |
riskmodels doctor | Local install-readiness diagnostics: Node, npx, API credentials, and client detection. |
riskmodels uninstall | Remove only the riskmodels MCP server block from supported client configs, with backups. |
riskmodels query "<sql>" | SELECT only (billed → POST /api/cli/query, direct → Supabase exec_sql) |
riskmodels metrics <ticker> | Latest snapshot (GET /api/metrics/{ticker}) |
riskmodels batch analyze | POST /api/batch/analyze (--tickers, --metrics, --years) |
riskmodels portfolio risk-index | POST /api/portfolio/risk-index (--file or --stdin) |
riskmodels returns ticker <SYMBOL> | GET /api/ticker-returns — daily returns for both stocks and ETFs. Stocks include L1/L2/L3 hedge ratios + explained-risk columns; ETFs (e.g. SPY) return date/returns_gross/price_close (L* null). stock / etf subcommands are deprecated aliases. |
riskmodels l3 <ticker> | GET /api/l3-decomposition |
riskmodels correlation post|metrics | POST /api/correlation, GET /api/metrics/{ticker}/correlation |
riskmodels macro-factors | GET /api/macro-factors (daily macro returns, no ticker) |
riskmodels rankings snapshot|badge|top | Rankings endpoints |
riskmodels tickers | Universe search (GET /api/tickers, no auth) |
riskmodels health | GET /api/health (no auth) |
riskmodels estimate | POST /api/estimate (pre-flight cost) |
riskmodels schema | PostgREST OpenAPI (direct mode only) |
riskmodels balance | Account balance (GET /api/balance) |
riskmodels manifest [--format openai|anthropic|zed] | Static tool manifest (no auth) |
riskmodels agent decompose|monitor | Shortcuts → batch analyze / metrics |
Global flag: --json for machine-readable output on supported commands.
riskmodels install --dry-run detects supported clients, prints target config paths, redacts secrets, and shows the exact npx -y @riskmodels/mcp server entry it will merge. riskmodels install performs the write with timestamped backups.
Default credential policy:
~/.config/riskmodels/config.json.--embed-key is explicit opt-in and redacted in dry-run output.riskmodels MCP server block.cd cli
npm install
npm run build
npm run install:global # npm link for local testing
The repo root npm run typecheck includes cli/src (see AGENTS.md). Maintainer drift check: npm run cli:openapi-check at the repo root.
Publishing (npm publish, version bumps, npm login / tokens) is not documented in this public README. It is maintained in the private BWMACRO monorepo at docs/RISKMODELS_CLI_NPM_PUBLISHING.md — open that file from your internal BWMACRO clone.
Rule of thumb: run publish commands only from cli/; the repo root package is the Next.js portal, not this CLI.
The legacy riskmodels-cli npm package remains a backward-compatible published artifact. New releases from this directory target the unscoped riskmodels package; use npx -y riskmodels@latest install for a deterministic one-shot MCP setup.
FAQs
RiskModels CLI — REST API, SQL query, schema, billing, and agent manifests
The npm package riskmodels receives a total of 166 weekly downloads. As such, riskmodels popularity was classified as not popular.
We found that riskmodels demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.