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

agentmemory-cli

v1.4.0

Published

CLI tool for AgentMemory - persistent cloud memory for AI agents

Readme

AgentMemory CLI

Command-line interface for AgentMemory - persistent cloud memory for AI agents.

Installation

npm (recommended)

npm install -g agentmemory-cli

npx (no install)

npx agentmemory-cli store "Your memory"

curl installer

curl -fsSL https://agentmemory.cloud/install.sh | bash

Quick Start

  1. Initialize with your API key:
agentmemory init
# Enter your API key from https://agentmemory.cloud/dashboard
  1. Store a memory:
agentmemory store "User prefers dark mode and likes updates at 9 AM"
  1. Search memories:
agentmemory search "user preferences"

Commands

| Command | Description | |---------|-------------| | agentmemory init | Configure your API key | | agentmemory store <content> | Store a new memory | | agentmemory search <query> | Semantic search | | agentmemory list | List all memories | | agentmemory delete <id> | Delete a memory | | agentmemory sync | Sync with local MEMORY.md | | agentmemory export | Export as JSON | | agentmemory import <file> | Import from JSON |

Options

Global Options

  • --json - Output as JSON (for scripting)
  • --help - Show help

Store Options

agentmemory store "content" --category preferences
agentmemory store "content" --metadata '{"priority": "high"}'

Search Options

agentmemory search "query" --limit 20

Sync Options

agentmemory sync              # Bidirectional sync
agentmemory sync --push       # Push local to cloud only
agentmemory sync --pull       # Pull cloud to local only
agentmemory sync --status     # Check sync status

Configuration

Configuration is stored in ~/.agentmemory/config.json:

{
  "api_key": "am_xxxxx",
  "api_url": "https://agentmemory.cloud/api",
  "memory_file": "./MEMORY.md"
}

Environment Variables

You can also use environment variables:

export AGENTMEMORY_API_KEY=am_xxxxx
export AGENTMEMORY_API_URL=https://agentmemory.cloud/api

MEMORY.md Sync

The CLI can sync with a local MEMORY.md file, enabling:

  • Offline editing - Edit memories locally, sync later
  • Backup - Keep a local copy of all memories
  • Migration - Import existing MEMORY.md files

Format

# Agent Memory

> Last synced: 2026-02-01T12:00:00Z
> Total memories: 42

---

<!-- id: abc123 -->
<!-- metadata: {"category": "preferences"} -->
User prefers dark mode

---

<!-- id: def456 -->
Another memory here

---

Examples

Store with metadata

agentmemory store "Project deadline is March 15" \
  --category deadline \
  --metadata '{"project": "website-redesign", "priority": "high"}'

Export and backup

# Export to file
agentmemory export --output backup.json --pretty

# Export to stdout (for piping)
agentmemory export > memories-$(date +%Y%m%d).json

Import memories

agentmemory import backup.json

Scripting with JSON output

# Get memories as JSON for processing
agentmemory list --json | jq '.memories[].content'

# Search and process results
agentmemory search "preferences" --json | jq '.[] | .content'

For AI Agents

Add to your agent's skill file:

# Store a memory
agentmemory store "$MEMORY_CONTENT"

# Search before asking
RESULTS=$(agentmemory search "$QUERY" --json)

# Sync at session start
agentmemory sync --pull

Support

  • Documentation: https://agentmemory.cloud/docs
  • Dashboard: https://agentmemory.cloud/dashboard
  • Issues: https://github.com/agentmemory/agentmemory-cli/issues

License

MIT