@bike4mind/cli weekly downloads statistics
By bike4mind · npm · MCP servers
Interactive CLI tool for Bike4Mind with ReAct agents
@bike4mind/cli has 34,761 recorded weekly downloads on npm, a decrease of 58.0% over the past 30 days, ranking #886 of 3,247 tracked listings.
About @bike4mind/cli
Bike4Mind CLI
Interactive command-line interface for Bike4Mind with ReAct agents.
Features
- 🤖 ReAct agent with reasoning and tool use
- 💬 Interactive chat interface
- 💾 Session persistence
- 🛠️ B4M tools + MCP integration
- 🎨 Rich terminal UI with Ink
- 🖼️ Image paste and drag-and-drop support (iTerm2, Kitty)
- 🐛 Debug logging with
--verboseflag - 📄 Context file loading (CLAUDE.md, AGENTS.md, AI.md)
- 📁 File references with
@autocomplete
Installation
From NPM (Recommended)
Install globally:
npm install -g @bike4mind/cli
Or run without installing:
npx @bike4mind/cli
From Source (Development)
From the project root:
pnpm install
Build Requirements
The CLI uses native dependencies (better-sqlite3 for image caching, sharp for image processing) that require compilation. These should build automatically during installation, but if you encounter errors:
Prerequisites:
- Python 3 (required by node-gyp)
- C++ compiler (Xcode Command Line Tools on macOS, build-essential on Linux, Visual Studio on Windows)
Manual rebuild if needed:
# If you see "Could not locate the bindings file" errors
pnpm rebuild better-sqlite3
# Or rebuild all native modules
pnpm rebuild
Note: The postinstall script will automatically rebuild better-sqlite3 if the native bindings are missing, so manual intervention is rarely needed.
Usage
Start Interactive Session
b4m
When you are signed out, the CLI starts on a local model from Ollama or a model server saved in Desktop. With no local model available, it offers Bike4Mind sign-in.
Optional fullscreen mode
Run b4m --fullscreen to use the terminal's alternate screen. This opt-in mode
redraws the live display after resizing and restores the original shell screen
when it exits. It requires interactive stdin and stdout; piped and headless runs
keep their normal output behavior. The default normal-screen mode is unchanged,
including its known resize artifacts in some reflowing terminals.
Alternate screen has no native scrollback. Press Ctrl+O to browse completed messages, Left/Right to change messages, and Up/Down or PageUp/PageDown to scroll wrapped text. Press Ctrl+O again to return to the input. Completed agent steps are available as plain JSON text below the message body. Session persistence is unchanged. As with other terminal applications, a forced kill cannot run cleanup. Command help and diagnostics are retained separately in the fullscreen history browser (most recent 64K characters); they do not become conversation messages. Retained diagnostics are printed after the original screen is restored on exit, so initialization failures and restart hints remain available in shell history. While a permission prompt is active, PageUp/PageDown scrolls its complete pending arguments and preview. Paging never approves or denies; use the displayed decision keys explicitly.
Chat without signing in
Start Ollama and pull a model, then open the CLI:
ollama serve
# In another terminal:
ollama pull qwen3.5
b4m
The signed-out session lists only local models. Run /login to use Bike4Mind cloud models; finish or stop the current reply with Esc before signing in. From a local session, cancelling sign-in returns you to that session.
For headless prompts, save a local default first:
b4m models use qwen3.5
b4m -p "say hello" </dev/null
A signed-out headless run uses the selected local model or your saved local default. With a cloud default and no saved local default, it exits with an error instead of choosing an arbitrary model. ACP sessions also support local models while signed out.
If no local model is found, start Ollama, pull a model, or check the saved model server's address and credentials. A server login hint uses b4m models servers login <name>. An expired Bike4Mind sign-in is refreshed at startup; a temporary refresh failure keeps the saved sign-in and uses local models for that run, so restart the CLI to retry.
CLI Flags
b4m [options] ["initial prompt"]
A bare positional argument seeds and submits the first turn while keeping the interactive UI open (e.g. b4m "summarize the git log").
Environment / API (see API Configuration):
| Flag | Effect |
|---|---|
--dev | Point the CLI at the local dev server (http://localhost:3001) and remember it. Aliases: --local (except after b4m mcp serve), single-dash forms. |
--prod | Point the CLI at Bike4Mind production and remember it. Alias: --production. |
--api-url <url> | Point the CLI at any instance — a self-hosted stack, an AWS deployment, http://localhost:3000, etc. Clears cached auth (bound to the old origin) and exits; run b4m again to sign in. |
--reset-api | Reset the API URL to the built-in default and clear auth, then exit. |
Session / behavior:…
Description from the npm listing.
- cli
- ai
- bike4mind
- agent
- mcp
- react-agent
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 (170)Similar npm MCP servers plugins
All 20 @bike4mind/cli 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/@bike4mind/cli. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.