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

moiagent-cli

v0.2.5

Published

CLI for MoiAgent - create and run AI agents from your terminal

Readme

MoiAgent CLI

Execute AI agents from the command line. Create focused agents with custom instructions and API tools via the MoiAgent dashboard, then invoke them from your terminal or let AI coding assistants use them as subagents.

Installation

npm install -g moiagent-cli

Quick Start

# Authenticate (required once)
moi login

# Run an agent
moi acme/code-reviewer "Review this Python file for bugs"

# List available agents
moi list

Usage

Execute an Agent

moi <workspace>/<agent> "<message>"

Examples:

moi acme/code-reviewer "Review this Python file for bugs"
moi acme/slack-notifier "Send deployment complete to #releases"
moi acme/db-query "List all users created in the last 24 hours"
moi acme/github-helper "Create an issue for the login bug"

The agent receives your message and responds with the result. Agents can have tools (APIs, databases, OAuth integrations) to perform actions.

Debug Mode

Add --debug to see request details:

moi --debug acme/code-reviewer "Review this file"

Commands

Authentication

| Command | Description | |---------|-------------| | moi login | Authenticate with your MoiAgent account | | moi logout | Clear stored credentials | | moi whoami | Show current user and workspaces |

Agent Management

| Command | Description | |---------|-------------| | moi list | Show available agents in your workspaces | | moi create <workspace>/<agent> [options] | Create a new agent | | moi update <workspace>/<agent> [options] | Update an existing agent | | moi delete <workspace>/<agent> [--force] | Delete an agent |

Options for create/update:

  • -n, --name <name> - Agent name
  • -d, --description <text> - Agent description
  • -i, --instructions <text> - System prompt instructions
  • -s, --status <status> - Status: active, draft, archived

Examples:

moi create acme/helper -d "General assistant" -i "You are helpful"
moi update acme/helper -i "New instructions for the agent"
moi delete acme/old-agent --force

API Tokens

Manage API tokens for CI/CD and programmatic access:

| Command | Description | |---------|-------------| | moi tokens | List your API tokens | | moi tokens create --name <name> | Create a new token | | moi tokens revoke <id> | Revoke a token |

Options for create:

  • -n, --name <name> - Token name (required)
  • -e, --expires <duration> - Expiration: 30d, 90d, 6m, 1y

Environment Variables

| Variable | Description | |----------|-------------| | MOI_TOKEN | API token for CI/CD (bypasses interactive login) |

CI/CD Usage

For non-interactive environments (GitHub Actions, CI pipelines), use an API token:

# Create a token via CLI or dashboard
moi tokens create --name "GitHub Actions" --expires 1y

# Use in CI (set MOI_TOKEN environment variable)
export MOI_TOKEN=moi_xxxxx
moi acme/deploy-checker "Verify deployment is healthy"

GitHub Actions example:

- name: Run MoiAgent
  env:
    MOI_TOKEN: ${{ secrets.MOI_TOKEN }}
  run: moi acme/code-reviewer "Review the changes in this PR"

Requirements

  • Node.js 18.0.0 or higher
  • A MoiAgent account (sign up)

License

MIT