
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
napster-cli
Advanced tools
The nap (nap) is a customizable command line coding agent.

Install with npm (Node.js 20+):
npm i -g napster-cli
If napster is not found after install, restart your shell session.
napster
Headless mode (-p flag) runs without an interactive terminal UI, making it perfect for:
# Basic usage
napster -p "Generate a conventional commit name for the current git changes."
# With piped input
echo "Review this code" | napster -p
# JSON output for scripting
napster -p "Analyze the code" --format json
# Silent mode (strips thinking tags)
napster -p "Write a README" --silent
TTY-less Environments: Headless mode is designed to work in environments without a terminal (TTY), such as when called from VSCode/IntelliJ extensions using terminal commands. The CLI will not attempt to read stdin or initialize the interactive UI when running in headless mode with a supplied prompt.
The CLI automatically saves your chat history for each terminal session. You can resume where you left off:
# Resume the last session in this terminal
nap --resume
# List recent sessions and choose one to resume
nap ls
# List sessions in JSON format (for scripting)
nap ls --json
-p: Run in headless mode (no TUI)--config <path>: Specify agent configuration path--resume: Resume the last session for this terminal<prompt>: Optional prompt to start withNAPSTER_API_BASE: Override backend API base URL (default https://api.nap-code.com/)NAPSTER_API_KEY: Explicit backend token overrideNAPSTER_BOOTSTRAP_PATH: Override bootstrap route path (default cli/bootstrap)nap_API_BASE: Legacy fallback for backend API base URLnap_API_KEY: Legacy fallback backend token overridenap_GLOBAL_DIR: Override nap home directory (default ~/.nap)nap_CLI_DISABLE_COMMIT_SIGNATURE: Disable adding the nap commit signature to generated commit messagesFORCE_NO_TTY: Force TTY-less mode, prevents stdin reading (useful for testing and automation)Compatibility note: nap_API_BASE, nap_API_KEY, nap_GLOBAL_DIR, and nap_CLI_DISABLE_COMMIT_SIGNATURE remain supported as fallbacks.
By default, napster attempts to auto-bootstrap a backend access token on startup.
${NAPSTER_API_BASE}/${NAPSTER_BOOTSTRAP_PATH}~/.nap/service-auth.jsonXAI_API_KEY / NAPSTER_XAI_API_KEY) when present.nap: Start an interactive chat sessionnap ls: List recent sessions with TUI selector to choose one to resumenap remote: Launch a remote instancenap serve: Start HTTP server modenap ls)Shows recent sessions, limited by screen height to ensure it fits on your terminal.
--json: Output in JSON format for scripting (always shows 10 sessions)The CLI fully supports running in environments without a TTY (terminal):
# From Docker without TTY allocation
docker run --rm my-image nap -p "Generate docs"
# From CI/CD pipeline
nap -p "Review changes" --format json
# From VSCode/IntelliJ extension terminal tool
nap -p "Analyze code" --silent
The CLI automatically detects TTY-less environments and adjusts its behavior:
For more details, see spec/tty-less-support.md.
FAQs
napster
The npm package napster-cli receives a total of 21 weekly downloads. As such, napster-cli popularity was classified as not popular.
We found that napster-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.