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

pms-ollama-cli

v1.2.5

Published

Autonomous AI Software Engineer CLI powered by Local Ollama & Cloud Models.

Downloads

1,029

Readme

█▀█ █▀▄▀█ █▀   █▀█ █░░ █░░ ▄▀█ █▀▄▀█ ▄▀█

█▀▀ █░▀░█ ▄█   █▄█ █▄▄ █▄▄ █▀█ █░▀░█ █▀█

Autonomous AI Software Engineer CLI
Harness the power of Ollama, Cloud Models, and Local Intelligence in a professional Terminal UI.

Version Node License Local Ollama


🌟 Introduction

PMS Ollama CLI is a robust, autonomous AI engineering tool designed for developers who want a seamless, high-performance interface for both local and cloud-based LLMs. Built with a sleek React-powered Terminal UI (Ink), it empowers you to write code, manage files, and execute system commands through a natural conversation with an AI that understands your local project context.

Unlike standard chat interfaces, PMS Ollama CLI is an active participant in your development workflow. It doesn't just suggest code; it applies it.


🆕 What's New (v1.2.5)

  • Autonomous Tool Enforcer: Completely redesigned system prompt that mandates tool usage for file operations. Local models like qwen2.5-coder will now autonomously save files instead of just showing code blocks.
  • Hierarchical Esc Navigation: Implemented "one-step-back" logic for the Esc key. Navigate backwards through sub-menus (Model selection -> Category selection) or cancel ongoing AI generations instantly.
  • JSON Fallback Engine: Added a robust JSON-based tool calling fallback to support smaller local models that may struggle with native tool protocols.
  • Universal Code Formatting: Enforced standard Markdown blocks across all models for perfect parsing and rendering.
  • Improved Identity Logic: Refined AI persona to maintain a consistent "PMS Ollama CLI" identity across all local and cloud backends.

🚀 Key Features

🖥️ Professional Terminal UI (TUI)

  • Hierarchical Navigation: Use Esc to go back one step in menus or Ctrl+C to exit.
  • Interactive Navigation: Smooth arrow-key navigation for history, models, and permissions.
  • Real-time Streaming: Watch the AI's thoughts and code blocks appear live.
  • Categorized Models: Clear distinction between Local, Public, and Subscription models.

🏠 Local & Cloud Flexibility

  • Deep Local Integration: Automatically detects and connects to your local Ollama instance (localhost:11434).
  • Autonomous Local Workflow: Optimized for local models to perform file system operations without manual copy-pasting.
  • Cloud Power: Access massive cloud models like qwen3-coder:480b or llama3.1:405b when local resources aren't enough.

🛡️ Smart Security & Permissions

  • Session Whitelisting: Grant "Allow for this session" permissions to tools you trust, minimizing interruptions.
  • Encrypted Keys: API keys are stored securely using XOR + Base64 encryption in your local AppData.

🧠 Advanced Engineering Tools

  • MCP Support: Connect to external Model Context Protocol servers for dynamic tool capabilities (e.g., GitHub, Slack, SQLite).
  • Plan Mode: Forces the AI to draft a design document and strategy before touching any code.
  • Web Fetch: Allows the AI to read documentation or research topics directly from URLs.
  • File System Mastery: Surgical editing, directory listing, and smart file attachments.

🔌 Model Context Protocol (MCP)

PMS Ollama CLI supports MCP, allowing you to extend the AI's capabilities with external tools.

How to use MCP Server

  1. Create (or edit) the mcp-servers.json file in your data directory (usually ~/.config/pmsollama/mcp-servers.json or %APPDATA%\pmsollama\mcp-servers.json).
  2. Define your servers. Here is an example to add SQLite and GitHub capabilities:
{
  "servers": {
    "sqlite": {
      "command": "uvx",
      "args": ["mcp-server-sqlite", "--db-path", "D:/data/my-database.db"]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "your_token_here"
      }
    }
  }
}
  1. Restart PMS Ollama CLI.
  2. The AI will automatically discover the new tools. You can ask it to:
    • "Query my SQLite database for the top 5 users."
    • "List my open pull requests on the 'pms-ollama-cli' repo."

🛠️ Installation

Prerequisites

Global Installation

Install PMS Ollama CLI globally to access it from any project directory:

npm install -g pms-ollama-cli

After installation, you can launch the app from anywhere by typing:

pmsollama

📖 Usage Guide

Getting Started

  1. Launch the CLI: pmsollama
  2. Set your API Key (if using Cloud models): /key
  3. Select your model: /model
  4. Start building!

Navigation

  • Esc: Go back one step in menus, cancel generation, or deny tool permission.
  • Arrows: Navigate menu options and chat history.
  • Enter: Select option or send message.
  • Ctrl+C: Save and exit.

Useful Commands

| Command | Description | | :--- | :--- | | /help | List all available commands | | /model | Switch between Local, Public, and Subscription models | | /mcp | List connected MCP servers and their tools | | /checkpoint | Save the current session state as a new history entry | | /settings | View technical details of the current session | | /key | Add, update, or remove your Ollama API key | | /history | Browse and load previous chat sessions | | /ls | List files in the current project directory | | /file <path> | Attach a file to your next message for context | | /search <query> | Manually trigger a web search | | /update | Check for and install the latest version | | /clear | Clear the terminal screen |


🎯 Use Cases

  • Rapid Prototyping: "Create a React todo list with Tailwind and save it to src/todo."
  • Code Refactoring: "Read src/utils.js and improve the error handling logic."
  • Local Documentation Research: Use web_fetch to feed a library's documentation to a local model for offline-first development.
  • Autonomous Bug Fixing: Attach a failing test file and let the AI diagnose and fix the issue.

🤝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.