
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@zensation/cli
Advanced tools
ZenAI CLI Agent — Terminal interface with Memory, Knowledge Graph and Agent System
ZenAI in your Terminal -- an AI agent for knowledge work, powered by Claude.
@zenai/cli brings the full power of ZenAI to the command line: an interactive REPL with tool execution, filesystem access, and optional backend integration for persistent Memory, Knowledge Graph, and RAG retrieval.
zenai "summarize this project".zenai/ for continuity across sessionsnpm install -g @zenai/cli
Requires Node.js 18 or later.
# Start interactive REPL
zenai
# One-shot mode
zenai "what files are in this project?"
# With backend connection
ZENAI_BACKEND_URL=http://localhost:3000 zenai
| Variable | Required | Default | Description |
|---|---|---|---|
ANTHROPIC_API_KEY | Yes | -- | Claude API key |
ZENAI_MODEL | No | claude-sonnet-4-20250514 | Model to use |
ZENAI_MAX_TOKENS | No | 4096 | Max response tokens |
ZENAI_MAX_ITERATIONS | No | 25 | Max agent loop iterations |
ZENAI_BACKEND_URL | No | -- | ZenAI backend URL for Memory/KG |
ZENAI_BACKEND_API_KEY | No | -- | API key for backend access |
| Command | Description |
|---|---|
/clear | Clear conversation history |
/status | Show session info and tool availability |
exit | End session |
The agent has access to 6 filesystem tools, executed locally:
| Tool | Description |
|---|---|
read_file | Read file contents with line numbers |
write_file | Create or overwrite a file |
edit_file | Apply targeted edits to existing files |
list_files | List directory contents with glob support |
search_content | Search file contents with regex patterns |
run_command | Execute shell commands with timeout |
When connected to a ZenAI backend, additional tools become available:
The CLI follows the Claude Code agent loop pattern: a single-threaded loop that sends messages to Claude, executes tool calls, feeds results back, and repeats until the model produces a final text response or the iteration limit is reached.
User Input --> Agent Loop --> Claude API
^ |
| Tool Calls
| |
Tool Results <-- Execute
Session state and conversation history persist in .zenai/ within your project directory.
Apache-2.0. See LICENSE for details.
FAQs
ZenAI CLI Agent - terminal interface with persistent memory, knowledge graph and agent system, built on the ZenBrain memory architecture.
The npm package @zensation/cli receives a total of 136 weekly downloads. As such, @zensation/cli popularity was classified as not popular.
We found that @zensation/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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.