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

mola-agent

v1.1.3

Published

A chat app whose agent drives a real Omarchy computer, local or cloud.

Readme

mola-agent

Watch an agent use a real Omarchy computer.

A chat app that gives an agent a real Omarchy computer. Run Omarchy locally with mola-core or in the cloud with cloud.mola.sh. The agent works on it, you see the screen while it does, and you can take the mouse whenever you want.

npx mola-agent

Choose Local or Cloud in the terminal. Agent connects the backend, opens your browser, and guides you through model setup before chat opens.

Quick Start

One-command setup

npx mola-agent

On first launch, choose where your computer should run:

  • Local: reuse an existing Core, or start npx mola-core@^1.5.0 start and wait for it to be ready. Core downloads the guest image if it is missing.
  • Cloud: reuse your saved Cloud login, or open mola-cloud login in your browser and verify the connection.

Then select a model provider, enter its API key, and choose a model in the browser wizard. Later launches reuse these settings. To choose the backend again:

npx mola-agent --setup

Local Mode

Run Omarchy computers on your own hardware:

npx mola-agent --backend=local
  • Free and private
  • No account required
  • Limited by your hardware

Ctrl-C stops Agent and any Core it started. An already running Core stays running. Local virtualization prerequisites must be installed; Core reports missing host requirements during startup. The first guest image download can take several minutes.

Cloud Mode

Run persistent Omarchy computers on cloud.mola.sh:

npx mola-agent --backend=cloud

Or set the token directly:

export MOLA_TOKEN="sk-..."  # from https://cloud.mola.sh → API tokens
export MOLA_BACKEND=cloud
npx mola-agent

Interactive first launch opens Cloud login if needed. For unattended launches, authenticate beforehand with npx mola-cloud login or set MOLA_TOKEN.

For a separately managed backend, --no-bootstrap skips backend startup and connection checks. MOLA_AGENT_BOOTSTRAP=0 does the same. Noninteractive first launch defaults to Local unless a backend is specified.

What it does

The agent has a real Linux machine and tools to use it. It prefers the shell, because almost everything is faster there, and drives the desktop when the task is genuinely graphical.

| | | |---|---| | Shell | run a command, start a long job and poll it, read and write files | | Files | attach generated files to chat for download (up to 10 MB) | | Screen | look at it, click, type, press keys, scroll | | Machines | create, stop, start, delete | | Snapshots | save and restore machine state (cloud only) |

Press Show desktop and the live screen slides in beside the conversation. Your mouse and keyboard work there, so you can take over mid-task and hand back. Computer activity stays compact in chat. Expand an activity to inspect individual actions, and expand an action to see its output or screenshot. Approval requests stay visible. Clear chat starts over in the current conversation while keeping its computer and files; New creates a separate conversation and computer. Web tasks reuse the installed Chromium browser and current tab on the Omarchy desktop. Answers render Markdown, including tables and code. Generated files appear as download attachments. Interrupted runs show their error and a Continue task action.

Local vs Cloud

| | Local | Cloud | |---|---|---| | Setup | npx mola-agent --backend=local | npx mola-agent --backend=cloud | | Where | Omarchy on your machine | Omarchy on cloud.mola.sh | | Persistence | Stops auto-delete after idle | Computers persist, auto-stop when idle | | Cost | Free (your hardware) | Usage-based (10h free/month) | | Auto-stop | 15 minutes idle | 30 min (free) or 60 min (paid) | | Snapshots | No | Yes | | Requirements | Host virtualization and 4+ GB RAM per machine | Cloud login or MOLA_TOKEN |

In cloud mode, each conversation gets its own persistent Omarchy computer (or share one across all conversations — see Config).

What you need

For both backends:

  • Node 20 or newer
  • API key for Anthropic, OpenAI or OpenRouter (stored in ~/.mola-agent/config.json, mode 0600)

For local backend:

  • Host virtualization requirements for mola-core
  • 4+ GB RAM available for machines

For cloud backend:

  • Cloud login through mola-cloud login, or MOLA_TOKEN from cloud.mola.sh

Cloud Features

When using the cloud backend, you get:

  • Backend picker: Choose local or cloud during setup, or switch in Settings
  • Profile selection: Pick computer size (2c/4g, 4c/8g, etc.) from wizard or Settings
  • Snapshots: Save and restore machine state (create, list, restore, delete)
  • Usage display: See computers running, compute minutes used, plan limits
  • Fleet management: View, start, stop, delete multiple computers
  • Computer policy: Per-thread (default) or shared across conversations
  • Auto-stop: Machines stop after inactivity to save costs (30/60 min)
  • Regions: Current region displayed (Germany pilot; more coming)
  • Billing warnings: Alerts at 90% compute minutes or max computers

See docs/cloud-setup.md for details.

Already using an agent?

If you have Claude Code, Claude Desktop or Cursor, you may not need this app at all. The engine ships an MCP server:

# For local mola-core
claude mcp add mola -- npx -y mola-core mcp

# For cloud.mola.sh
claude mcp add mola-cloud -- npx -y mola-cloud mcp

This app exists for the thing MCP cannot do: showing you the desktop beside the conversation while the agent works.

Configuration

Config lives at ~/.mola-agent/config.json:

{
  "provider": "anthropic",
  "apiKey": "sk-ant-...",
  "model": "claude-3-5-sonnet-20241022",
  "backend": "cloud",
  "cloudProfile": "pilot-2c-4g",
  "computerPolicy": "per-thread",
  "confirmCommands": false
}

Environment Variables

Backend selection:

  • MOLA_BACKEND=local or MOLA_BACKEND=cloud (overrides config)

Cloud:

  • MOLA_TOKEN - Cloud API token (overrides saved Cloud login)
  • MOLA_CLOUD_API - Cloud API URL (default: https://cloud.mola.sh/api/v1)

Local:

  • MOLA_API - Local engine URL
  • MOLA_PORT - Local engine port (default: 4141)
  • MOLA_HOME - Local engine state directory

How it fits together

Local mode

browser  ─────►  this app's server  ─────►  mola-core :4141  ──►  QEMU
 chat UI          agent loop, tools          REST API         (Omarchy, local)
 iframe ──────────────────────────────────►  /desktop

Cloud mode

browser  ─────►  this app's server  ─────►  cloud.mola.sh  ──►  QEMU
 chat UI          agent loop, tools          REST API       (Omarchy, cloud)
 noVNC ───────────────────────────────────►  Cloud desktop gateway (WebSocket)

The server is not optional. It holds the model provider key so the browser never sees it, the cloud API (or engine) sends no CORS headers so the browser could not call it anyway, and an agent run takes minutes and has to survive a reload.

The iframe is the one thing that talks to the backend directly, because it loads a document rather than making a request.

Implementation details

A few details are worth knowing if you are reading the source:

  • Screenshots are sent at 1024 wide, because that is what vision models are tuned for and it is cheaper every turn. Coordinates coming back are scaled up before they reach the machine. Get that wrong and every click lands short.
  • Model requests use HTTP/1.1 to avoid destroyed HTTP/2 sessions on newer Node versions during long tool loops.
  • Desktop tickets are single use and live sixty seconds. They are minted when the panel opens, not when a machine is created, and again when a stopped machine comes back. Cloud sessions auto-refresh before expiry.
  • Idle machines stop after 15 minutes locally. Each holds 4 GB, so four idle conversations is a whole laptop. Disks survive a stop, so nothing is lost. Cloud machines auto-stop after 30 or 60 minutes depending on plan.

Working on it

npm install
npm run dev                                  # http://localhost:3000
npm run build && npm run bundle && npm test

npm test packs the tarball, installs it, boots it and checks that every asset the page references resolves. It takes about a minute and it is the most important test here: Next's standalone output fails quietly, serving HTML while every stylesheet 404s.

Licence

FSL-1.1-ALv2. Use it for anything except building something that competes with Mola. Each release becomes Apache 2.0 two years after it ships.

Hands-on comparison

See the Muse comparison report for matched tasks, observed failures, fixes, and practical limits.