CLI (@nefesh/cli)

Official CLI

Command-line interface for the Nefesh API. Install globally via npm.

Installation

npm install -g @nefesh/cli

Authentication

nefesh auth login --key YOUR_API_KEY

Stores your key in ~/.nefesh/config.json.

Commands

CommandDescription
nefesh authAuthenticate with your API key
nefesh ingestSend biometric signals
nefesh stateGet current state for a session
nefesh historyView state history over time
nefesh triggersView psychological trigger profile
nefesh deleteGDPR-compliant data deletion
nefesh simulateStream realistic test data (5 scenarios)
nefesh setupAuto-configure MCP for AI agents

Simulate Scenarios

Stream realistic test data matching the 5 stress states:

nefesh simulate --scenario calm
nefesh simulate --scenario relaxed
nefesh simulate --scenario focused
nefesh simulate --scenario stressed
nefesh simulate --scenario acute_stress

Auto-Setup MCP

Configure your AI agent in one command:

nefesh setup cursor
nefesh setup claude-desktop
nefesh setup claude-code
nefesh setup vscode
nefesh setup windsurf
nefesh setup kiro

JSON Output

Every command supports --json for machine-readable output:

nefesh state test-session --json

Example Workflow

# 1. Login
nefesh auth login --key YOUR_KEY

# 2. Start simulating stressed data
nefesh simulate --scenario stressed

# 3. Check state in another terminal
nefesh state test-session

# 4. View history
nefesh history test-session --minutes 5

npm: @nefesh/cli

Open source on GitHub

Browse the source, file issues, or contribute to the project.

github.com/nefesh-ai/nefesh-cli →