Skip to main content

CLI and TUI for Nowledge Mem - AI memory management

Project description

nmem-cli

A lightweight CLI and TUI for Nowledge Mem - AI memory management that works with any AI agent.

Installation Options

Option 1: Standalone PyPI Package (Recommended for CLI-only users)

pip install nmem-cli

Or with uv:

uv pip install nmem-cli

Option 2: Nowledge Mem Desktop App

If you're using the Nowledge Mem desktop app, the nmem CLI is bundled and can be installed via:

  • macOS: Settings → Install CLI (creates /usr/local/bin/nmem)
  • Linux: Automatically installed via package postinstall
  • Windows: Automatically added to PATH during installation

The desktop app includes a bundled Python environment, so no separate Python installation is required.

Requirements

  • Python 3.11+ (for PyPI package)
  • A running Nowledge Mem server (default: http://127.0.0.1:14242)

Quick Start

# Check server status
nmem status

# Launch interactive TUI
nmem tui

# List memories
nmem m

# Search memories
nmem m search "python programming"

# List threads
nmem t

Commands

Core Commands

Command Description
nmem status Check server connection status
nmem stats Show database statistics
nmem tui Launch interactive terminal UI

Memory Commands

Command Description
nmem m / nmem memories List recent memories
nmem m search "query" Search memories
nmem m show <id> Show memory details
nmem m add "content" Add a new memory
nmem m update <id> Update a memory
nmem m delete <id> Delete a memory

Thread Commands

Command Description
nmem t / nmem threads List threads
nmem t search "query" Search threads
nmem t show <id> Show thread with messages
nmem t create -t "Title" -c "content" Create a thread
nmem t delete <id> Delete a thread

Options

Global Options

nmem --json <command>     # Output in JSON format (for scripting)
nmem --api-url <url>      # Override API URL
nmem --version            # Show version

Search Filters (memories)

nmem m search "query" -l label1 -l label2   # Filter by labels
nmem m search "query" -t week               # Time range: today/week/month/year
nmem m search "query" --importance 0.7      # Minimum importance

Environment Variables

Variable Description Default
NMEM_API_URL API server URL http://127.0.0.1:14242

TUI Features

The interactive TUI provides:

  • Dashboard: Overview with statistics and recent activity
  • Memories: Browse, search, and manage memories
  • Threads: View conversation threads
  • Graph: Explore the knowledge graph
  • Settings: Configure the application

TUI Keybindings

Key Action
1-5 Switch tabs
/ Focus search
? Show help
q Quit

Examples

Script Integration (JSON mode)

# Get memories as JSON
nmem --json m search "meeting notes" | jq '.memories[].title'

# Check if server is running
if nmem --json status | jq -e '.status == "ok"' > /dev/null; then
    echo "Server is running"
fi

Adding Memories

# Simple memory
nmem m add "Remember to review the PR tomorrow"

# With title and importance
nmem m add "The deployment process requires SSH access" \
    -t "Deployment Notes" \
    -i 0.8

Creating Threads

# From content
nmem t create -t "Debug Session" -c "Started investigating the memory leak"

# From file
nmem t create -t "Code Review" -f review-notes.md

Related

  • Nowledge Mem - The full Nowledge Mem application
  • This CLI is also bundled with the main Nowledge Mem desktop app

Author

Nowledge Labs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nmem_cli-0.5.12.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nmem_cli-0.5.12-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file nmem_cli-0.5.12.tar.gz.

File metadata

  • Download URL: nmem_cli-0.5.12.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for nmem_cli-0.5.12.tar.gz
Algorithm Hash digest
SHA256 7cf5e041a1a0111ed20d5683f5c796f73639e755520f77c3ab36b8b187af2b18
MD5 a738efc74561f39a5f1b4f9023c38ee8
BLAKE2b-256 165f07cf6fa935b897a66d5d4beb6d3a26f94d7afc7df3aae8c447143fe26593

See more details on using hashes here.

File details

Details for the file nmem_cli-0.5.12-py3-none-any.whl.

File metadata

  • Download URL: nmem_cli-0.5.12-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for nmem_cli-0.5.12-py3-none-any.whl
Algorithm Hash digest
SHA256 901a6df23a0b5ef3b9add29ccdc0514026b549c58956408bb05ee1715b66f339
MD5 dd026bb45ce8702333aa425e1ae1051e
BLAKE2b-256 1d957f746918d6308f24791ace07a05545f9061de40d43bd97a68994ed4249d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page