@senpi/runtime weekly downloads statistics
By senpi · npm · MCP servers
Senpi's runtime plugin for OpenClaw: runs Hyperliquid trading strategies with position sizing, risk limits and two-phase trailing-stop exits
@senpi/runtime has 17,063 recorded weekly downloads on npm, an increase of 755% over the past 30 days, ranking #1088 of 3,247 tracked listings.
About @senpi/runtime
@senpi-ai/runtime
Event-driven automated trading plugin for OpenClaw. Orchestrates scanners, LLM-based trade decisions, and a DSL trailing stop-loss exit engine.
Prerequisites
- OpenClaw >= 2026.2.0
- Node >= 22
- Senpi API key (for live trading)
Install
openclaw plugins install @senpi-ai/runtime
Custom installs (Git checkout, dist/-only copy, or Docker without devDependencies): run npm install in the package root (or npm ci --omit=dev from a lockfile) so node_modules includes runtime dependencies. The runtime uses TypeBox at load time for scanner option validation (@sinclair/typebox / @sinclair/typebox/value); if that package is missing, the gateway will fail to load the plugin with Cannot find module '@sinclair/typebox/value'.
Configure
Add the plugin to your OpenClaw config (e.g. ~/.openclaw/openclaw.json or via openclaw config set). Use the plugin id @senpi-ai/runtime as the key:
{
"plugins": {
"entries": {
"@senpi-ai/runtime": {
"enabled": true,
"config": {
"stateDir": "~/.openclaw/senpi-state",
"apiKey": "YOUR_SENPI_API_KEY",
"logLevel": "info"
}
}
}
}
}
Log level
The runtime's minimum log level defaults to info. Accepted values are debug, info, warn, and error (case-insensitive); anything else falls back to info with a one-time console warning at startup.
Resolution order (highest priority first):
- Plugin config
logLevel— set it inside the pluginconfigblock inopenclaw.json. This is the recommended place so the level lives next to the rest of the runtime's configuration and survives gateway restarts without shell env wiring. SENPI_LOG_LEVELenv var — useful for one-off overrides or when running the gateway under Docker Compose where env vars are easier to inject than config patches.- Default —
info.
// ~/.openclaw/openclaw.json
{
"plugins": {
"entries": {
"@senpi-ai/runtime": {
"enabled": true,
"config": {
"logLevel": "debug"
}
}
}
}
}
# Env-var alternative (ignored if plugin config logLevel is set)
export SENPI_LOG_LEVEL=warn
The runtime logs the resolved level and its source on plugin start:
[senpi-runtime] log level: info (source: default). Set plugin config "logLevel" or env SENPI_LOG_LEVEL to debug|info|warn|error to override.
The source: field will be one of plugin config logLevel, env SENPI_LOG_LEVEL, or default. You can confirm the active level at any time with openclaw senpi status, which prints a Log Level: <level> line for each running runtime (also available under openclaw senpi state).
What each level shows
warn/error— failures, retries, clearinghouse unavailable, scanner watchdog alerts.info(default) — the above, plus lifecycle events (open/close positions, scanner signal processed), DSL monitor ticks when there are active positions, position-tracker scans when positions or deltas change.debug— the above, plus per-tick scanner heartbeats, DSL monitor ticks with zero active positions, and full MCP tool-call request/response envelopes (with secrets redacted). Useful for diagnosing individual scan or price-fetch behavior; very noisy.
Notifications
Delivery is env-configured, not a per-strategy setting: the runtime POSTs each notification to the ingest endpoint named by NOTIFICATIONS_INGEST_URL (default: the production endpoint https://notifications.prod.senpi.ai/notify), authenticated with its own Senpi token (SENPI_AUTH_TOKEN, falling back to SENPI_API_KEY). A runtime with notifications configured refuses to boot if the token is missing rather than silently dropping them.
Which strategy alerts fire is controlled by the notifications block in your strategy YAML (e.g. dsl_lifecycle, dsl_notify_sl_updates) — see the strategy YAML spec. The runtime emits DSL exit alerts (profit-lock, stop-raise), the daily trade/loss-limit and drawdown trips, decision-failure alerts, and market-scanner alerts; each event notifies once. Position open/close are announced by the backend, not the runtime.
Plugin lifecycle (start/stop) and auto-update status are not sent as notifications — they are behind-the-scenes housekeeping and go to the plugin log only.
Auto-update
Auto-update is enabled by default (opt-out). When a new minor or patch version is published to npm, the plugin will install it automatically and attempt to restart the OpenClaw gateway so the new code takes effect.
- Major versions are never auto-installed. Availability is logged (
[senpi-auto-update]), asking you to review the changelog and update manually. - Default mode:
auto-apply— the plugin polls every 6 hours, installs the update, and triggers a gateway restart. - Gateway restart requires
gateway.reload.modeset torestartorhybridin your OpenClaw config. If the mode ishotoroff, or the config helpers are unavailable, the plugin logs a warning that you need to restart the gateway manually.
To customise or disable auto-update, add an autoUpdate block to the plugin config:
{
"plugins": {
"entries": {
"runtime": {
"enabled": true,
"config": {
"autoUpdate": {
"mode": "notify-only",
"pollIntervalMinutes": 720
}
}
}
}
}
}
Set "enabled": false inside the autoUpdate block to disable it entirely.…
Description from the npm listing.
- senpi
- hyperliquid
- openclaw
- openclaw-plugin
- trading
- trading-bot
- ai-trading
- trading-agent
- perpetual-futures
- risk-management
- trailing-stop
- mcp
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm MCP servers plugins
All 20 @senpi/runtime alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@senpi/runtime. First seen Dec 4, 2026; last successful collection Dec 6, 2026. See the methodology.