
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 CLI Agent — a terminal AI assistant with filesystem tools and, optionally, ZenAI's persistent memory and knowledge graph.
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.
npm install -g @zensation/cli
Or run it without installing:
npx @zensation/cli "summarize the TypeScript files in this folder"
export ANTHROPIC_API_KEY=sk-ant-... # required
# Interactive REPL
zenai
# One-shot question
zenai "what does src/index.ts do?"
zenai Interactive REPL mode
zenai "your question" One-shot mode
zenai --help Show help
zenai --version Show version
In the REPL:
| Command | Description |
|---|---|
/status | Show backend connection, tool count, project, and session |
/clear | Clear the conversation history |
/exit (or exit) | Exit |
All configuration is via environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
ANTHROPIC_API_KEY | yes | — | Claude API key |
ZENAI_MODEL | no | claude-sonnet-4-20250514 | Claude model to use |
ZENAI_MAX_TOKENS | no | 4096 | Maximum response tokens |
ZENAI_MAX_ITERATIONS | no | 25 | Maximum agent-loop iterations |
ZENAI_BACKEND_URL | no | — | ZenAI backend URL (enables memory + knowledge-graph tools) |
ZENAI_BACKEND_API_KEY | no | — | ZenAI backend API key |
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.
This CLI lives in the ZenAI monorepo and builds on the same neuroscience-inspired memory system published as @zensation/core and @zensation/algorithms.
Apache 2.0 — see LICENSE.
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.