New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@zensation/cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zensation/cli

ZenAI CLI Agent - terminal interface with persistent memory, knowledge graph and agent system, built on the ZenBrain memory architecture.

Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
136
871.43%
Maintainers
1
Weekly downloads
 
Created
Source

@zensation/cli

ZenAI CLI Agent — a terminal AI assistant with filesystem tools and, optionally, ZenAI's persistent memory and knowledge graph.

npm License

zenai is a terminal agent in the spirit of Claude Code: it runs an agentic loop over Claude with a set of filesystem tools, so you can read, search, and reason over a project from the command line. When pointed at a running ZenAI backend it additionally gains persistent memory and knowledge-graph tools; without one, it runs in local-only mode.

Install

npm install -g @zensation/cli

Or run it without installing:

npx @zensation/cli "summarize the TypeScript files in this folder"

Quick start

export ANTHROPIC_API_KEY=sk-ant-...      # required

# Interactive REPL
zenai

# One-shot question
zenai "what does src/index.ts do?"

Usage

zenai                     Interactive REPL mode
zenai "your question"     One-shot mode
zenai --help              Show help
zenai --version           Show version

In the REPL:

CommandDescription
/statusShow backend connection, tool count, project, and session
/clearClear the conversation history
/exit (or exit)Exit

Configuration

All configuration is via environment variables:

VariableRequiredDefaultDescription
ANTHROPIC_API_KEYyes—Claude API key
ZENAI_MODELnoclaude-sonnet-4-20250514Claude model to use
ZENAI_MAX_TOKENSno4096Maximum response tokens
ZENAI_MAX_ITERATIONSno25Maximum agent-loop iterations
ZENAI_BACKEND_URLno—ZenAI backend URL (enables memory + knowledge-graph tools)
ZENAI_BACKEND_API_KEYno—ZenAI backend API key

Memory & knowledge graph (optional)

Set ZENAI_BACKEND_URL (and ZENAI_BACKEND_API_KEY) to connect to a running ZenAI backend. The agent then gains tools backed by ZenAI's 7-layer memory and knowledge graph, so context persists across sessions. If no backend is reachable, zenai reports local-only mode and runs with the filesystem tools alone.

Requirements

Node.js 22 or newer. Earlier versions cannot load this package: two of its dependencies ship as ES modules, and require() of an ES module only exists from Node 20.19 / 22.12 onwards. Versions up to 0.1.3 declared >=18, which was not achievable — 0.2.0 corrects the floor.

Part of ZenAI

This CLI lives in the ZenAI monorepo and builds on the same neuroscience-inspired memory system that ZenBrain publishes as standalone packages. Lab: zensation.ai · open-source@zensation.ai

About ZenBrain

ZenBrain is a seven-layer, neuroscience-derived memory architecture for LLM agents, built as zero-dependency TypeScript and published under Apache-2.0. On LongMemEval-500 it wins all nine head-to-head answer-quality comparisons against Letta, Mem0 and A-Mem (three competitors x three LLM judges, Bonferroni-corrected), reaching 91.3% of a full-context oracle's binary-judge accuracy at 1/106th of the per-query token cost.

License

Apache 2.0 — see LICENSE.

Keywords

ai

FAQs

Package last updated on 29 Aug 2026

Related posts