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

@moxt-ai/cli

v0.15.53

Published

Moxt - The Agent-Native Workspace

Readme

@moxt-ai/cli

Moxt CLI - AI Workspace command line tool.

Installation

npm install -g @moxt-ai/cli

Node.js 22.13 or newer is required. Standalone runtime archives include a compatible Node executable.

Usage

moxt [command] [options]

Upgrading

Moxt CLI keeps itself current. Once a day a command starts a detached updater; it never delays or fails that command and prints nothing. The updater downloads the release its channel publishes from an https registry, checks it against the published sha512 checksum, starts it once to confirm the version, and stores it under ~/.moxt/cli/versions/<version>. Later commands run the stored release; the package-manager installation stays in place as the launcher and as the fallback. The first interactive command on a new release says so once on stderr. A release that needs a newer Node.js than the machine has is not downloaded.

Stable releases follow npm's latest tag and beta releases follow beta. To switch automatic updates off for the machine, including its managed Connector, set "update": { "disabled": true } in ~/.moxt/config.json. A command also starts no updater in CI or with MOXT_NO_UPDATE_CHECK=1 or the community-standard NO_UPDATE_NOTIFIER in its environment; these variables do not reach a managed Connector, which only follows the config file. The CLI on a Sprite is updated together with its Sprite runtime instead.

moxt upgrade              # Download, verify, and switch to the latest release now
moxt upgrade --check      # Report the current and latest release and what the last update did
moxt upgrade --dry-run    # Show where an update would be installed without installing
moxt upgrade --rollback   # Return to the release used before; that release is not installed automatically again

If a stored release misbehaves so badly that moxt upgrade --rollback cannot run, set MOXT_CLI_USE_INSTALLED=1 to run the package-manager installation for that command. Updating through a package manager keeps working: the newer of the two installations runs.

Local Machine Connector

A managed Connector runs the same release as the CLI. An ordinary command only downloads a new release while the Connector runs, and the CLI keeps running the release that Connector runs. The Connector asks for the update itself five minutes after it starts and then once an hour: the CLI and the Connector switch to the new release together and the Connector restarts, whether or not work is running. Moxt continues Local Agent work that the restart interrupts; active Jobs recover as interrupted with daemon_restarted. If the Connector does not come back on the new release, the previous release is restored, the Connector is restarted on it, and that release is not installed automatically again. moxt upgrade switches the CLI and a running Connector right away and reports active Jobs first.

After an update through a package manager, an ordinary command refreshes the managed Connector or recovers one that is temporarily offline, provided the command uses the managed service's recorded launcher path; a different CLI installation cannot take over the service. The Connector is refreshed right away, after its active Jobs are reported. Moxt validates the new CLI entrypoint before changing the service and restores the prior service definition when a refresh cannot be completed; it reports the failed stage on stderr, and moxt machine service restart retries after the problem is corrected. A CLI update stays installed when the Connector refresh fails.

A foreground moxt machine daemon process is never restarted automatically. A managed Connector stopped with moxt machine service stop remains stopped until the user runs moxt machine service restart or installs the service again. CLI invocations inside a Local Machine Job never reconcile or mutate the Connector carrying that Job; status, logs, doctor, and other safe queries remain available. Isolated daemon development remains available by assigning a dedicated MOXT_MACHINE_HOME; its runtime, socket, locks, logs, and service configuration must not be shared with the carrying Connector.

A managed Connector takes its registry from NPM_CONFIG_REGISTRY as it was set when the service was installed or last refreshed. These settings in the update section of ~/.moxt/config.json tune it:

| Setting | Default | Meaning | | --- | --- | --- | | connectorStartupDelaySeconds | 300 | How long after it starts the Connector first asks for a newer release | | connectorRetrySeconds | 3600 | Shortest pause between two attempts of the Connector |

Commands

machine

Pair and operate the outbound Local Machine Connector:

# Pair the current directory as the Agent's working root
moxt machine connect --code <pairing-code> --root "$PWD"

# Pair and run this machine as a Mobius Runtime using the command copied from Moxt
moxt machine connect --code <pairing-code> --pairing <pairing-id> --relay <mobius-endpoint>

# Start serving all previously paired Machines on this host
moxt machine start

# Open the interactive terminal manager
moxt machine manager

# Non-interactive status, diagnostics, logs, and service operations
moxt machine status
moxt machine doctor
moxt machine logs
moxt machine dump [--output <path>]
moxt machine service restart

moxt machine dump creates a timestamped zip archive in the current directory, or at the path given by --output. It includes redacted Connector logs and non-credential runtime/service status. Pairing credentials, private keys, Job payloads and output, Local Codex attempt state, service environment definitions, browser data, .env files, sockets, lock contents, and unrecognized files are never included.

The archive also includes rotating RSS/heap, fatal-stack, exit, and Linux OOM evidence logs for the Connector and its embedded Mobius Runtime. See daemon diagnostics for fields, collection limits, and repeatable process-fault verification.

The interactive manager shows daemon health, connections, Jobs, logs, and diagnostics, and exposes pairing, disconnect, and service lifecycle actions. Once connected, Moxt Agents can run commands, Codex, or Claude Code on the paired machine through the same durable Job lifecycle.

whoami

Show current user information.

moxt whoami

workspace

Workspace management.

# List all workspaces you belong to
moxt workspace list

members

Manage workspace members.

# List all members in a workspace
moxt members list -w <workspace-id>

# Remove members by email (comma-separated)
moxt members remove -w <workspace-id> <email1>,<email2>

space

List accessible spaces in a workspace.

# List all accessible spaces (personal, team, teammate)
moxt space list -w <workspace-id>

Output columns: TYPE, TEAM_SPACE_ID, TEAMMATE_ID, NAME

  • personal — Your personal space (Momo). Both IDs are empty; this is the default.
  • team — Teamspace. Only TEAM_SPACE_ID is populated.
  • teammate — AI teammate. Only TEAMMATE_ID is populated.

file

File operations on a space. Use moxt space list to find available spaces.

# List directory contents (defaults to personal space)
moxt file list -w <workspace-id> [-p <path>]

# List directory in personal space (explicit)
moxt file list -w <workspace-id> --personal [-p <path>]

# List directory in a teamspace (by name)
moxt file list -w <workspace-id> -s <teamspace-name> [-p <path>]

# List directory in a teamspace (by ID)
moxt file list -w <workspace-id> --team-space-id <teamSpaceId> [-p <path>]

# List directory in a teammate space (by teammate ID)
moxt file list -w <workspace-id> --teammate-id <teammateId> [-p <path>]

# Read file content by path
moxt file read -w <workspace-id> -p <path>

# Read file content from a teamspace (by name or ID)
moxt file read -w <workspace-id> -s <teamspace-name> -p <path>
moxt file read -w <workspace-id> --team-space-id <teamSpaceId> -p <path>

# Read file content from a teammate space (by teammate ID)
moxt file read -w <workspace-id> --teammate-id <teammateId> -p <path>

# Read file content by URL
moxt file read --url <moxt-url>

# Read a password-protected shared file; the password is read from stdin only
printf '%s' "$SHARE_PASSWORD" | moxt file read --url <moxt-url> --password-stdin

# Read file content and metadata as JSON (path or URL mode)
moxt file read -w <workspace-id> -p <path> --json
moxt file read --url <moxt-url> --json

# Resolve the shareable browser URL for a file by path
moxt file get-url -w <workspace-id> -p <path>

# Resolve URL in a teamspace (by name or ID)
moxt file get-url -w <workspace-id> -s <teamspace-name> -p <path>
moxt file get-url -w <workspace-id> --team-space-id <teamSpaceId> -p <path>

# Resolve URL in a teammate space (by teammate ID)
moxt file get-url -w <workspace-id> --teammate-id <teammateId> -p <path>

# Upload a file by path
moxt file put -w <workspace-id> -p <path> -l <local-path> [-r]

# Upload a file to a teamspace (by name or ID)
moxt file put -w <workspace-id> -s <teamspace-name> -p <path> -l <local-path> [-r]
moxt file put -w <workspace-id> --team-space-id <teamSpaceId> -p <path> -l <local-path> [-r]

# Upload a file to a teammate space (by teammate ID)
moxt file put -w <workspace-id> --teammate-id <teammateId> -p <path> -l <local-path> [-r]

# Overwrite an existing file by its Moxt URL
moxt file put --url <moxt-url> -l <local-path>

# Create a directory
moxt file mkdir -w <workspace-id> -p <path> [-r]
moxt file mkdir -w <workspace-id> -s <teamspace-name> -p <path> [-r]

# Delete a file or empty directory
moxt file del -w <workspace-id> -p <path>
moxt file del -w <workspace-id> -s <teamspace-name> -p <path>

# Search files across accessible spaces (omit selectors to search every space you can access)
moxt file search -w <workspace-id> <query>

# Search inside a single space
moxt file search -w <workspace-id> --personal <query>
moxt file search -w <workspace-id> -s <teamspace-name> <query>
moxt file search -w <workspace-id> --team-space-id <teamSpaceId> <query>
moxt file search -w <workspace-id> --teammate-id <teammateId> <query>

# Tune the result set (defaults: --limit 30, --mode any; max --limit 80)
moxt file search -w <workspace-id> -l 50 --mode all <query>

file comment

Read and manage comments on a regular document. Identify the file by URL (--url) or by workspace + path (-w with -p, plus the usual space selectors). Creating and deleting comments is not supported from the CLI.

# List comment threads on a file (by URL)
moxt file comment list --url <moxt-url>

# List comment threads on a file (by path)
moxt file comment list -w <workspace-id> -p <path>
moxt file comment list -w <workspace-id> -s <teamspace-name> -p <path>

# Update a comment you created (content read from a local UTF-8 text file)
moxt file comment update --url <moxt-url> <comment-id> --content-path <local-path>
moxt file comment update -w <workspace-id> -p <path> <comment-id> --content-path <local-path>

# Resolve or reopen a comment thread
moxt file comment resolve --url <moxt-url> <thread-id> --state resolved
moxt file comment resolve --url <moxt-url> <thread-id> --state open

File comment content is read only from a local UTF-8 text file with --content-path. Inline --content is not supported. Only the comment author can update a comment; resolve only requires access to the file. Comment and thread IDs come from file comment list.

memory

Search archived agent memory (past chat conversations indexed for recall).

# Search the personal assistant's memory (default)
moxt memory search -w <workspace-id> <query>

# Search a managed AI teammate's memory
moxt memory search -w <workspace-id> --teammate-id <teammateId> <query>

# Tune the result set (default: --limit 5; max --limit 10)
moxt memory search -w <workspace-id> -l 10 <query>

workflow

Manage workflows, workflow definitions, tasks, and workflow agent runs.

# List workflows
moxt workflow list -w <workspace-id>
moxt workflow list -w <workspace-id> --scope owner_is_me

# Create, inspect, update, duplicate, and delete workflows
moxt workflow create -w <workspace-id> -p <path.workflow> [--desc-file <local-path>]
moxt workflow get -w <workspace-id> <workflow-file-id>
moxt workflow update -w <workspace-id> <workflow-file-id> --desc-file <local-path>
moxt workflow duplicate -w <workspace-id> <workflow-file-id>
moxt workflow delete -w <workspace-id> <workflow-file-id> [--message <message>]

# Manage workflow statuses
moxt workflow status create -w <workspace-id> <workflow-file-id> --name Todo --type 1
moxt workflow status update -w <workspace-id> <workflow-file-id> <status-id> --type 2
moxt workflow status move-after -w <workspace-id> <workflow-file-id> <status-id> --after <status-id>
moxt workflow status move-after -w <workspace-id> <workflow-file-id> <status-id> --first
moxt workflow status delete -w <workspace-id> <workflow-file-id> <status-id>

# Manage workflow transitions
moxt workflow transition create -w <workspace-id> <workflow-file-id> --from <status-id> --to <status-id>
moxt workflow transition delete -w <workspace-id> <workflow-file-id> --from <status-id> --to <status-id>

# Manage workflow tasks
moxt workflow task list -w <workspace-id> [--workflow-file-id <workflow-file-id>] [--limit 50] [--cursor <cursor>]
moxt workflow task list -w <workspace-id> [--scope all|assigned_to_me|reported_by_me]
moxt workflow task list -w <workspace-id> [--scope all|assigned_to_me|reported_by_me]
moxt workflow task list -w <workspace-id> [--priority urgent|high|medium|low] [--owner-human-id <human-id>]
moxt workflow task list -w <workspace-id> [--reporter-human-id <human-id>] [--status-type todo|in-progress|done]
moxt workflow task list -w <workspace-id> [--assignee-human-id <human-id>]
moxt workflow task list -w <workspace-id> [--assignee-assistant-id <assistant-id> | --assignee-teammate-id <teammate-id>]
moxt workflow task list -w <workspace-id> [--sort-by default|title|status|assignee|owner|priority|updated] [--sort-direction asc|desc]
moxt workflow task get -w <workspace-id> <workflow-file-id> <task-id>
moxt workflow task create -w <workspace-id> <workflow-file-id> --title "Review draft" --status <status-id> [--reporter-human-id <human-id> | --clear-reporter]
moxt workflow task update -w <workspace-id> <workflow-file-id> <task-id> [--reporter-human-id <human-id> | --clear-reporter]
moxt workflow task add-linked-links -w <workspace-id> <workflow-file-id> <task-id> --url <http(s)-url> [--title <title>]
moxt workflow task remove-linked-links -w <workspace-id> <workflow-file-id> <task-id> --url <http(s)-url>
moxt workflow task move -w <workspace-id> <workflow-file-id> <task-id> --status <status-id>
moxt workflow task move-after -w <workspace-id> <workflow-file-id> <task-id> --status <status-id> --after <anchor-task-id>
moxt workflow task move-after -w <workspace-id> <workflow-file-id> <task-id> --status <status-id> --first
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --human-id <human-id>
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --assistant-id <assistant-id>
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --teammate-id <teammate-id>
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --clear
moxt workflow task delete -w <workspace-id> <workflow-file-id> <task-id>

# Manage workflow task comments
moxt workflow comment create -w <workspace-id> <workflow-file-id> <task-id> --content-path <local-path>
moxt workflow comment list -w <workspace-id> <workflow-file-id> <task-id>
moxt workflow comment update -w <workspace-id> <workflow-file-id> <task-id> <comment-id> --content-path <local-path>
moxt workflow comment delete -w <workspace-id> <workflow-file-id> <task-id> <comment-id>

# Abort workflow agent runs
moxt workflow run abort -w <workspace-id> <workflow-file-id> <pipeline-id>
moxt workflow run abort-local -w <workspace-id> <workflow-file-id> <turn-id>

Workflow, status, and task descriptions are read from local UTF-8 text files with --desc-file. Inline --desc is not supported. workflow task get shows linked items in insertion order. An empty linked-item title falls back to the file name for a workspace file and to the full URL for any other link. Workflow task comment content is read only from a local UTF-8 text file with --content-path and is limited to 5,000 characters. Inline --content is not supported. Workflow status type values are 1=todo, 2=in-progress, and 3=done.

File command options

| Option | Description | | ------------------------- | ---------------------------------------------------------------- | | -w, --workspace <id> | Workspace ID (required for path mode) | | -s, --space <name> | Space name (personal or teamspace name) | | --personal | Use personal space (default when no space specified) | | --team-space-id <id> | Team space ID | | --teammate-id <id> | Teammate ID (teammate space) | | -p, --path <path> | File or directory path | | -u, --url <url> | Moxt file URL (e.g., https://moxt.ai/w/{workspaceId}/{fileId}) | | --password-stdin | Read the share password from stdin (file read --url only) | | --json | Emit file read content and metadata as JSON | | -l, --local-path <path> | Local file path (for upload) | | -r, --recursive | Create parent directories if needed (path mode only) |

Note: -s, --personal, --team-space-id, and --teammate-id are mutually exclusive. For file read and file put, use either --url or --workspace with --path. They are mutually exclusive. file read --url works without any configured identity for publicly shared files. A configured identity that is invalid fails instead of reading anonymously. Every other command requires an identity. A password URL read returning 404 can mean the file is unavailable or the server does not support password URL reads yet. The CLI preserves that response (not_found in JSON mode) without a version probe. --url with file put overwrites an existing file identified by the URL; it never creates new files. Use --recursive is not allowed in URL mode.

file read output

Without --json, a successful file read writes only the file content to stdout. With --json, success writes exactly one JSON object to stdout using this shape:

{
  "path": "/notes/today.md",
  "type": "file",
  "entries": null,
  "content": "Hello\n",
  "updatedAt": 1785830950000
}

updatedAt is always a non-null Unix epoch-millisecond integer for a successful JSON read. JSON mode writes no progress or color sequences.

Every file read --json failure exits with status 1, leaves stdout empty, and writes exactly one uncolored JSON object to stderr:

{
  "error": {
    "code": "not_found",
    "message": "/missing.md does not exist",
    "status": 404,
    "details": { "message": "not found" }
  }
}

The error object always contains code, message, status, and details. status is the HTTP status for API responses and null for local or protocol failures; details is the API response body when available and otherwise null. Stable error codes are invalid_arguments, configuration_error, authentication_failed, not_found, not_a_file, api_error, and request_failed.

file get-url returns a stable Moxt URL (e.g., https://moxt.ai/w/{workspaceId}/{fileId}) for the given path; the URL is unchanged across writes to the same path and can be fed back into file read --url or file put --url.

Configuration

Set the following environment variables:

| Variable | Description | | ------------------------- | -------------------------------------------------------------------- | | MOXT_API_KEY | Your Moxt API key | | MOXT_HOST | API hostname (default: api.moxt.ai) | | MOXT_NO_UPDATE_CHECK | Set to 1 to disable update checks and prompts | | NO_UPDATE_NOTIFIER | Disable update checks and prompts when present | | MOXT_TELEMETRY_DISABLED | Set to 1 to disable anonymous usage telemetry | | DO_NOT_TRACK | Set to 1 to disable anonymous usage telemetry (community standard) |

Telemetry

Moxt CLI collects anonymous usage data by default to help us understand how the tool is used, prioritize features, and catch regressions. Telemetry is easy to turn off.

What we collect

Every invocation of a Moxt CLI command may record:

| Field | Example | Purpose | | ------------------------ | ---------------------------- | ----------------------------------------------------------- | | command / subcommand | workspace / list | Which command was invoked | | cli_version | 1.2.3 | Distribution of CLI versions in use | | node_version | 22.13.0 | Minimum-supported runtime planning | | os | darwin / linux / win32 | OS support prioritization | | arch | arm64 / x64 | Architecture support prioritization | | status | success / error | Success and error rates | | error_code | uncaught_exception | Error classification (best-effort; may be dropped on crash) | | is_ci | true / false | Separate CI traffic from human usage | | Duration | 0.42 seconds | Performance tracking |

User identification: telemetry is only sent while you are authenticated with a Moxt API key. Your user ID is attached server-side so that product decisions reflect real usage patterns.

When moxt machine connect ends after Moxt accepted its connection command, it also reports how the command ended, so that Moxt can see where computers fail to come online. This report does not need an API key. It is signed with the computer's registration key and tied to that connection command, and it records:

| Field | Example | Purpose | | ------------ | ---------------------------------------------------- | ----------------------------------------- | | outcome | online / offline / interrupted | Whether the computer came online | | stage | pairing / registration / service / relay | The step the command stopped at | | errorCode | ECONNREFUSED | The code of the error that ended it | | cliVersion | 1.2.3 | Distribution of CLI versions in use |

What we do NOT collect

  • Command argument values (file paths, workspace IDs, emails, etc.)
  • File contents, directory names, or any data from your workspace
  • Environment variables
  • Standard output, standard error, or error messages

How to opt out

Any one of the following disables all telemetry:

# Environment variable (recommended for CI)
export MOXT_TELEMETRY_DISABLED=1

# Or the community-standard variable
export DO_NOT_TRACK=1

# Or persist the choice
moxt telemetry disable

Check current status with moxt telemetry status. Re-enable with moxt telemetry enable.

Where the data is sent

Metrics are sent to POST /openapi/v1/cli-metrics on Moxt's API endpoint, authenticated with your API key. They are stored in Datadog and used to produce aggregated dashboards and reliability monitors.

Connection reports are sent to the Moxt deployment that issued the connection command, at the machine-connection endpoint next to the command's own address.

License

MIT