🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentrhq/webcmd

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentrhq/webcmd

Turn websites, browser sessions, desktop apps, and local tools into deterministic CLI surfaces for humans and AI agents.

latest
Source
npmnpm
Version
0.5.2
Version published
Weekly downloads
120
Maintainers
1
Weekly downloads
 
Created
Source
Webcmd — stop paying agents to rediscover the web

NPM version NPM downloads Documentation License Join the community on Discord Follow AgentR on X

Webcmd

Self-learning browser infra for AI agents.

WebCMD learns the navigational context of websites as agents use them, then compiles that knowledge into deterministic commands for faster, cheaper, more reliable browser automation. The goal is simple: stop making agents rediscover the same sites on every run and cut browser-agent token spend by up to 90%.

On top of live browser control, WebCMD adds 3 layers of learnings. Each layer collapses cost and variance for the layer above it.

LayerScenarioWhat Webcmd Helps With
1. Live browser controlThe site is unfamiliar.Use webcmd browser to inspect, click, type, extract, capture network calls, and complete the task in a real browser.
2. Sitemap memoryThe site is familiar, but the action space is not fully known.Capture an agent-facing sitemap of observed pages, states, actions, workflows, APIs, pitfalls, and fallback paths.
3. CLI authoringThe action space is known, but the path is still too variable for one fixed sequence.Explicitly author a reusable webcmd <site> adapter with structured output, so future agents spend tokens on the task instead of navigation.
4. Extend existing CLIsThe workflow is deterministic enough to stop browsing.Extend the webcmd <site> adapter with a tailored command so the workflow runs instantly with the least amount of tokens.

Demo

https://github.com/user-attachments/assets/04eceadc-d398-4303-984d-ae3197bfa664

Quick Start

Codex

In Codex, open Plugins, choose Add plugin marketplace, and enter either agentrhq/webcmd or https://github.com/agentrhq/webcmd. Install Webcmd from that marketplace, then start a new task. On first use, the plugin installs the npm CLI automatically if webcmd is missing.

The plugin includes all seven bundled Webcmd skills. Do not also add those skills with webcmd skills add in Codex.

Other agents or plugin-free setup

Webcmd requires Node.js 20+.

npm install -g @agentrhq/webcmd
webcmd skills add

When prompted, choose Claude, Codex, another supported harness, or a custom skills path.

In your agent harness, load or tag webcmd-usage, then describe the outcome you want.

Use webcmd to research the latest discussions about browser automation across Hacker News and Reddit, then return a concise comparison with source links.

What You Can Ask

  • “Use webcmd to research agentic browser automation on PubMed and return the title, authors, publication date, abstract, and URL for each result.”
  • “Use webcmd to find active AI infrastructure companies in the YC company directory and return the company, batch, description, location, profile URL, and source links. Keep it read-only.”
  • “Use webcmd to look up parts on Grainger by part number and return price, stock, minimum order quantity, lead time, and product URL.”
  • “Use webcmd with my logged-in work profile to summarize unread LinkedIn messages from the last seven days and return the sender, subject or opening text, received time, and conversation URL.”
  • “Repair webcmd reddit popular --limit 10 and keep returning the title, subreddit, score, comment count, and URL.”
  • “Use webcmd to check Grainger part prices and SAP Ariba purchase-order status, then return a combined summary.”

See It in Action: X → CLI

Use webcmd with my logged-in `social` profile to collect my recent X bookmarks and return the author, text, and URL.

The agent explores the X workflow once using the logged-in profile. It creates a stable command that returns the requested bookmark fields. Later agents reuse that command instead of repeating browser exploration; learn the pattern in X → CLI.

Where Webcmd Works

Beyond website adapters, Webcmd can work through authenticated browser sessions, APIs, desktop apps, and local tools.

GroupSupported surfacesRepresentative outcomes
research and communitiesHacker News, Reddit, PubMedCompare current discussions, find primary research, and return concise summaries with source links.
social and professionalX/Twitter, LinkedIn, TikTokCollect bookmarks, monitor public posts, or research people and creators with a named profile when needed.
AI toolsChatGPT, Claude, Gemini, NotebookLMRetrieve conversations, research outputs, notebooks, and generated materials from the tools you already use.
shopping and bookingsAmazon, Blinkit, Zepto, BigBasket, District, PractoCompare products, availability, prices, appointments, events, and delivery options.

This list is illustrative; ask your agent to use webcmd to discover what is currently available.

Learn More

Webcmd Cloud can run supported commands and browser sessions on hosted infrastructure. It is in active development and is not yet stable.

Community

Community plugins

PluginDescriptionAuthor
bmwblogBMWBLOG article discovery commands for WebcmdWebCMD Agent
pypiInspect public Python package metadata and releases from PyPIKemal Kaya
skyscannerSkyscanner flight search commands for WebcmdRishabh
techcrunchSearch and read TechCrunch stories from its public APIWebCMD Agent
ycombinatorRead-only Y Combinator startup directory commands for WebCMDWebCMD Agent

Contributing

See CONTRIBUTING.md.

License

Released under the terms in LICENSE.

Keywords

cli

FAQs

Package last updated on 31 Jul 2026

Did you know?

Socket

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.

Install

Related posts