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

openclaw-pixel-agents

v1.8.0

Published

Pixel art office dashboard for OpenClaw agents

Downloads

507

Readme

OpenClaw Pixel Agents

A live pixel-art office for OpenClaw: see who is working, inspect a task, and send a message without leaving the office.

CI CodeQL MIT license

Quick start (recommended)

Use the prebuilt npm package to run the office. You do not need Git, a source checkout, a build step or development dependencies.

Before you start: install Node.js 22.22.2+ within 22.x, 24.15.0+ within 24.x, or 26+, with npm. This example assumes OpenClaw runs on the same host and its openclaw command is in PATH. For OpenClaw on another host, use the collector setup instead of local CLI polling.

npm installation

npm install --global openclaw-pixel-agents@latest
openclaw-pixel-agents --version

@latest selects the npm registry's current release. Run history, Stop/Steer, approvals, model selection, guided configuration, custom rosters and native scheduling require 1.8.0 or newer; see the 1.8.0 release notes. They are not included in 1.7.0. A source merge or release-preparation PR does not publish a package: check your installed version and the registry's release before expecting these features.

Configure the office

Guided setup (1.8.0+): run this in an interactive terminal:

openclaw-pixel-agents configure

It guides local OpenClaw or a remote collector, lets you keep the default agents or enter your own IDs and public names, and optionally prepares private Task/Gateway access. It previews settings with secrets hidden, then asks before creating a new private configuration folder containing an editable agents.json. It never overwrites an existing folder, starts services or pairs devices. For an existing office, keep its environment file, keys and DATA_DIR; the wizard creates a separate bundle, not an in-place upgrade. See guided configuration. Manual setup remains available below, including for 1.7.0.

Create a file named pixel-agents.env in a folder you control, using a text editor, and save these settings:

PORT=3001
CORS_ORIGIN=http://localhost:3001
DATA_SOURCE=cli

Keep this file private and out of Git; on POSIX, run chmod 600 pixel-agents.env from its folder. If openclaw is not in PATH, add OPENCLAW_BIN with the full executable path. This file does not enable private tasks or send permissions.

The npm launcher stores layouts and appearances in ~/.openclaw-pixel-agents, outside the installed package, so package upgrades do not replace them. For services or multiple offices, set a stable absolute DATA_DIR for each office process. Give independent offices separate directories: sharing one can overwrite their preferences or layouts. See persistent storage.

Start the office

From the folder containing pixel-agents.env, run:

openclaw-pixel-agents --env-file ./pixel-agents.env

Open http://localhost:3001. Keep the terminal running; press Ctrl+C to stop. To start from another folder, pass the full file path, quoted if it contains spaces: openclaw-pixel-agents --env-file "/absolute/path/to/pixel-agents.env". The server does not load .env automatically, and existing process environment variables take precedence over file values.

To change the office's listening port, update both PORT and CORS_ORIGIN, restart the office, and open the matching URL. For example, PORT=3002 goes with CORS_ORIGIN=http://localhost:3002 and http://localhost:3002. If only the external browser address changes, such as behind a reverse proxy, update CORS_ORIGIN to that exact origin; the backend PORT can stay unchanged.

Without a global installation, use npx --yes openclaw-pixel-agents@latest --env-file ./pixel-agents.env from the configuration folder instead. It also runs the prebuilt production app.

Next steps: connect your agents, optionally enable private task access, or open the configuration reference and troubleshooting. Keep the default agents or configure your own roster on 1.8.0+; agent IDs are not automatically discovered. An empty production office can mean the data source is unavailable or your IDs do not match; production does not insert demo agents. Use a trusted network or your own access controls: the public roster/editor is not a per-user login system.

Setup instructions

For a repeatable explanation of configuration, storage, the collector and optional private pairing, run:

openclaw-pixel-agents setup

Available in npm 1.7.0 and newer, this command prints instructions only: it does not create files, generate credentials, pair a device or start the office. Launching without CORS_ORIGIN also prints the guide and exits with a configuration error. The npm installation notice points to this guide but can be hidden or disabled by npm; setup works independently of that notice.

From a source checkout, use node bin/openclaw-pixel-agents.mjs setup; for a local npm installation, use npx openclaw-pixel-agents setup. Contributors can find source development and builds below.

What you can do

  • Follow live activity. Animated agents, room counts and a filterable activity dock show working, attention-needed, idle and inactive states. Freshness indicators distinguish an old collector snapshot from a lost browser connection.
  • Inspect real tasks. Open an agent's Task tab to choose a conversation, inspect verified run state, read the recorded request and response, and review recent tool outcomes. Load earlier records when the first history window is incomplete.
  • Have a conversation. Read text history, send a message, queue a follow-up while an agent is busy, or start a new conversation. Sending is optional and requires a separately approved write grant.
  • Review runs and control live work (1.8.0+). Browse source-backed historical runs read-only; return to Live to steer a conversation, confirm Stop for an exact active run, or change an eligible idle conversation's model. These writes use the existing send opt-in and non-admin write grant. See task controls and model selection for native capability and race limits.
  • Review approvals (1.8.0+). Inspect pending native requests visible to the live conversation audience, then explicitly Allow once or Deny. This has a separate default-off opt-in and operator.approvals grant; sending alone does not enable it. See approval setup.
  • Manage native schedules (1.8.0+). Browse agent schedules, create disabled jobs, and separately review Enable, Pause or edits. Management is default-off and uses a separate administrator device, never an upgrade of the ordinary task device. See scheduling setup and recovery.
  • Collect results and files. The Results tab shows a verified result or clearly labels the latest response when completion is unconfirmed. Preview delivered text and still PNG/JPEG/WebP images, download other supported files, or explicitly open an external link after checking its host. It follows the selected conversation and task; it is not a workspace file browser.
  • Browse agent workspaces. The read-only Workspace tab offers folders, breadcrumbs, paginated file lists, text/image previews and supported downloads for the selected agent. It works without a conversation and uses the existing office key. Requires version 1.6.0 or newer.
  • Inspect conversation usage. The read-only Usage tab shows recorded input/output/cache tokens, Gateway-reported cost estimates, model and context-window limit. Partial pricing and missing metrics are explicit; cumulative tokens are not treated as occupied context. Requires version 1.7.0 or newer. See Usage scope.
  • Build your office. Search 25 furniture types, place, drag, rotate and delete items, and save multiple layouts. Footprint previews show overlap and boundaries; layouts auto-save after edits.
  • Move around comfortably. Fit, zoom, pan, keyboard navigation and pinch gestures work with the responsive office view and mobile drawers.
  • Make agents recognizable. Choose body, hair and outfit, edit tags, and show or hide agents. Customizations live on the server, sync between browsers and survive restarts when the data directory is retained.
  • Choose your deployment. Run beside OpenClaw with local CLI polling, or run the dashboard elsewhere and push roster snapshots from the supplied collector. Private task access connects separately to the Gateway.

Task, Conversation, Results and Usage share the same conversation selection. Workspace follows the selected agent and can include files from any conversation; Agent retains the office roster summary. Private access uses the existing office key and operator.read grant. Gateways without assistant-filtered artifact APIs still provide task text; Results explains when file discovery is unsupported. See results and file access and workspace browsing for limits and compatibility.

Create your task-access key

Each installation creates its own key. There is no project-wide key, and no developer-specific file path is required.

  1. Generate a fresh key with the npm launcher:

    openclaw-pixel-agents --generate-key

    From a source checkout, use npm run --silent control:key instead. Both use Node's cryptographic random generator and print a new 64-character hexadecimal key. They do not change a running server.

  2. Put that value in the office server's private configuration:

    OPENCLAW_GATEWAY_URL=ws://127.0.0.1:18789
    PIXEL_CONTROL_TOKEN=
    CONTROL_SEND_ENABLED=false

    Fill the empty PIXEL_CONTROL_TOKEN with the generated key; never use placeholder text. Leaving it empty keeps private access disabled. The loopback URL assumes the Gateway runs on the same host. Use an encrypted wss:// endpoint for a remote Gateway. Restart the office after updating its configuration.

  3. Pair the office's own device with OpenClaw. First-time pairing may need a temporary server-only Gateway credential and approval of operator.read. Follow the task-access setup guide, then remove the bootstrap credential once the scoped device grant is saved.

  4. Open an agent's Task tab and paste the same PIXEL_CONTROL_TOKEN value into Unlock task details. Visitors get this key from their office operator. Generating a different key will not unlock somebody else's installation.

The office key, collector ingest token and Gateway bootstrap credential serve different purposes. Never paste a Gateway master credential into the task window or put any key in a browser URL, commit or VITE_* variable. Unlock lasts only in the current tab; Lock and reload clear it.

To enable sending, set CONTROL_SEND_ENABLED=true and approve this office device for operator.read plus operator.write. Read-only access remains useful without sending. Remote private access normally requires HTTPS; loopback development and an explicitly configured direct-Tailscale exception are covered in the setup guide.

Connect your agents

| Where OpenClaw runs | Roster source | Setup | | --- | --- | --- | | On the dashboard host | DATA_SOURCE=cli | Put openclaw in PATH or set OPENCLAW_BIN; polling defaults to 3 seconds. | | On another host | DATA_SOURCE=ingest | Set INGEST_API_TOKEN and run the collector on the OpenClaw host. | | Automatic local fallback | DATA_SOURCE=auto | Starts with CLI polling; an ingest token permits a sticky fallback on permanent CLI failures. |

The collector supplies roster/session status. It does not enable private task details or conversation controls; those use the separately paired Gateway connection above. /api/status reports roster ownership and freshness.

Use your own roster

Custom rosters require 1.8.0 or newer (or a source build containing them). A source merge alone does not update an installed npm package.

Run openclaw-pixel-agents configure and choose custom agents to enter their existing OpenClaw IDs and public display names. The new private bundle contains agents.json, and office.env points to it through AGENT_ROSTER_PATH. To change the list or names later, edit that file and restart the office—no source edits or rebuild needed. Rerunning configure creates a separate bundle rather than changing your current settings or credentials.

For an existing office, copy agents.example.json into a private configuration folder, edit the complete list, and add its absolute dashboard-host path as AGENT_ROSTER_PATH in your existing environment file. Keep the same DATA_DIR and keys. See custom roster configuration for the format, limits, Docker paths and troubleshooting.

Without a configured file, the eight built-in IDs remain: main, miku, chi, sysauxilia, descartes, cyberlogis, cylena and cybera. A custom file replaces that list; IDs must match OpenClaw exactly. Changing only a name keeps ID-keyed preferences and seats. Unknown ingest IDs are rejected, so include every agent whose sessions your collector submits and use the office's existing visibility toggle to hide one. Tags and appearance remain editable in the office; configuration does not create OpenClaw agents or enable private task access.

Using the office

Activity: expand the bottom dock to filter agents across rooms, including hidden ones. Activity estimates come from session recency and token counts; they do not prove which tool an agent is using. Observed changes contains this tab's recent status transitions and clears on reload. Task details provide the separately verified task facts.

Navigation: Fit recenters the whole office. Use −/+ to zoom from 100% to 400% of the fitted view. Pan enables mouse or one-finger dragging; arrow keys pan while it is active, and Escape exits. Two-finger gestures zoom and move together. Navigation does not edit saved layouts.

Layouts: enter Editor, search Furniture, choose an item and place it on the grid. Drag to move; right-click or use Rotate to turn an item. Delete removes it. Furniture changes auto-save after two seconds, and Save remains available. Layouts lets you create, switch and delete designs; the default is protected. See the editor guide for controls and preview limits.

Appearances: use the agent's palette button and Apply. Portraits, the editor and map share the same recipe. A failed save is reported; keep the same DATA_DIR across rebuilds and restarts. The default source-runtime paths differ between development and compiled startup, so set the directory explicitly for production.

Tasks and conversations: select an agent and choose a private panel. In 1.8.0+, recorded-run selection is read-only; return explicitly to Live for actions, approvals and conversation model selection. Schedules follows the agent, and current definitions remain read-only in recorded-run mode. The selected conversation stays selected as new work arrives. Load earlier records when needed; unknown run state and stale facts are labelled explicitly. Enter adds a line; Send or Ctrl/Cmd+Enter submits. Send follow-up queues without interrupting work. New conversation creates a session only when sent. If a message send reports Outcome unknown, its explicit retry reconciles the original submission identity; do not apply that retry rule to Stop, approvals, model changes or schedule creation. Follow each control's recovery guidance and the schedule journal guide. Drafts stay in tab memory and clear on Lock or reload. Sending from the office does not post to the conversation's external channel.

Docker

docker build -t openclaw-pixel-agents .
docker run --rm openclaw-pixel-agents npm run --silent control:key

Prepare a private, Git-ignored .env with your exact CORS_ORIGIN, DATA_SOURCE=ingest and INGEST_API_TOKEN, plus optional task settings. Run with persistent data:

docker run -d --name pixel-office \
  -p 3001:3001 --env-file .env \
  -e DATA_DIR=/app/data \
  -v pixel-office-data:/app/data \
  openclaw-pixel-agents

The image runs as a non-root user. The collector still runs on the OpenClaw host. Inside a container, 127.0.0.1 means the container itself; use a reachable Gateway endpoint satisfying the same transport rules. See task access in Docker.

Configuration and troubleshooting

See the configuration reference for environment variables, data-source fallback, persistent storage and reverse proxies.

| Symptom | Check | | --- | --- | | Roster updates but tasks are unavailable | Configure the separate Gateway connection, office key and scoped device grant. | | Unlock fails | Use the key configured on this server; key generation alone does not rotate it. | | Forbidden origin or changes fail | Include the exact browser scheme, hostname and port in CORS_ORIGIN; preserve the browser Origin header through your proxy. | | Appearances/layouts differ after restart | Keep one persistent DATA_DIR; retain the Docker volume or service directory. | | Empty production office | Check /api/status, the CLI path or collector delivery, and the configured agent IDs. Production has no demo fallback. | | Asset requests return 429 | Check public request limits and proxy client-IP trust. The default allows 512 static/SPA requests per minute per IP. |

The roster/editor is not an individual-user login system. The separate task key protects private task and conversation access. Deploy the office on a trusted network or behind appropriate access controls.

Public activity ticker: local CLI polling can publish user/assistant transcript excerpts (up to 150 characters per message) to dashboard clients without the task key. For sensitive conversations, restrict the entire dashboard, including Socket.IO, with network access controls or an authenticated reverse proxy; PIXEL_CONTROL_TOKEN does not protect the public ticker and CORS is not authentication. See the access boundary.

Development and releases

Built with React, TypeScript, Vite, Canvas 2D, Express and Socket.IO.

Start from source

Use this path to contribute or run unreleased source changes. Custom agent IDs/names use configuration on 1.8.0+ and do not require a source build. To use the published app without building, follow the recommended npm quickstart.

Use Node.js 22.22.2+ within 22.x, 24.15.0+ within 24.x, or 26+; the exact supported range is enforced by the repository. For live agents, you also need OpenClaw locally or a configured collector.

git clone https://github.com/SweetSophia/openclaw-pixel-agents.git
cd openclaw-pixel-agents
npm ci
npm run dev

Open http://localhost:3000. Vite serves the client and proxies the API and socket to the backend on port 3001. If the local OpenClaw executable is outside PATH, set OPENCLAW_BIN in the backend environment. For OpenClaw on another host, follow the collector guide.

Development builds can show demo characters before live data arrives. Production does not insert demo agents; an empty office may simply be waiting for its data source.

Run a production build

npm run build
cp .env.example .env

Edit .env: set your exact CORS_ORIGIN, choose a stable absolute DATA_DIR, and configure the roster source. Keep it private (chmod 600 .env on POSIX). Then explicitly load it:

node --env-file=.env dist/server/server/index.js

The example uses http://localhost:3001. The server does not load .env automatically. npm start is available when your service manager or shell already supplies the environment. Existing process variables take precedence over an env file.

Development commands

| Command | Purpose | | --- | --- | | npm run dev | Vite client and backend with source watching | | npm run typecheck | Browser and test TypeScript checks | | npm test | Test suite | | npm run test:coverage | Tests with coverage floors | | npm run build | Compiled client and server | | npm start | Built server; supply production configuration | | npm run --silent control:key | Generate a fresh task-access key | | npm run test:package | After building, pack/install/start the app in a disposable directory |

CONTRIBUTING.md covers local checks, browser testing and custom assets. Release instructions explain the NPM_TOKEN secret and GitHub Release workflow. Pull requests test the package without publishing; only publishing a stable GitHub Release triggers npm publication.

License and assets

Code is MIT licensed. Character art is from the MetroCity pack by JIK-A-4; the asset author's terms apply to the artwork.