npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@indiccoder/mentis-cli

v1.1.4

Published

An Agentic, Multi-Model CLI Coding Assistant

Downloads

1,049

Readme

Mentis-CLI 🧠

An Agentic, Multi-Model CLI Coding Assistant.

Mentis is a powerful terminal-based AI coding assistant that lives in your command line. It supports multiple LLM providers (Gemini, Ollama, OpenAI), agentic file operations, MCP (Model Context Protocol), and more.

✨ Features

  • 🤖 Multi-Model Support: Switch seamlessly between Gemini, Ollama (Local), OpenAI, and GLM-4.6 (Z.AI Coding).
  • 🛠️ Agentic Capabilities: Mentis can read, write, list files, and search your codebase to understand context.
  • 🌐 Web Intelligence: Hybrid search for documentation and error fixing.
  • 🗺️ Smart Context: Automatically maps your repository structure.
  • 🧩 Interactive & Robust CLI:
    • History: Navigate previous commands with Up/Down arrows (persistent across sessions).
    • Cancellation: Press Esc to instantly stop generation.
    • Markdown: Beautiful syntax highlighting in terminal output.
  • 💰 Cost Awareness: Real-time token usage and cost tracking.
  • 🧠 Persistent Memory: Auto-saves sessions (/resume) and checkpoints (/checkpoint).
  • 🔌 MCP Support: Full Model Context Protocol client.
  • 🔍 Codebase Search: Built-in grep tool.
  • 🐚 Shell Integration: Run shell commands and commit changes directly.

🚀 Installation

Using NPM (Recommended)

You can install Mentis globally directly from the NPM registry:

npm install -g @indiccoder/mentis-cli

From Source (Dev)

git clone https://github.com/CoderVLSI/Mentis-CLI.git
cd Mentis-CLI
npm install
npm run build
npm link

⚙️ Configuration

Start Mentis by typing:

mentis

Setting up Models

Type /model inside the CLI to launch the interactive configuration wizard:

  1. Select Provider: Gemini, Ollama, or OpenAI.
  2. Select Model: e.g., gemini-2.5-flash, llama3.
  3. Enter Credentials: API Key (for cloud) or Base URL (for local).

Credentials are stored securely in ~/.mentisrc.

📖 Usage

Modes

  • /plan: Switch to high-level planning mode (Architecture, requirements).
  • /build: Switch to code generation mode (Implementation).

Commands

| Command | Description | | :--- | :--- | | /help | Show available commands | | /model | Configure AI provider and model (Interactive) | | /resume | Resume the last session | | /checkpoint | Manage saved sessions (save, load, list) | | /search <query> | Search for code in the current directory | | /mcp connect <cmd> | Connect an MCP Server (e.g., npx -y @modelcontextprotocol/server-time) | | /run <cmd> | Execute a shell command | | /commit [msg] | Stage and commit changes to Git | | /add <file> | Add a specific file to context | | /drop <file> | Remove a file from context | | /clear | Clear chat history | | /exit | Save and exit |

Example Workflow

Mentis > /plan
[PLAN] > Analyze this project structure and suggest improvements.

Mentis > /build
[BUILD] > Implement the FolderManager class in src/utils.ts.

🔒 Safety

Mentis asks for explicit approval before writing or modifying any files, keeping you in control.

🤝 Contributing

Pull requests are welcome!

📄 License

ISC