@nexus-ai-nexoralabs/cli
v0.1.5
Published
NEXUS AI — Local-first AI workstation CLI. Think, plan, execute — powered by local AI runtime.
Maintainers
Readme
NEXUS AI — Local-First AI Workstation CLI
NEXUS AI is a local-first, cross-platform AI workstation CLI that orchestrates local language models (via Ollama), retrieves private knowledge (RAG), manages project context, executes permission-controlled tools, and performs full coding-agent workflows — entirely on your own machine.
Installation
Requirements
- Node.js
>=20.0.0— nodejs.org - Ollama — ollama.com/download
- At least one local model (e.g.
qwen2.5:3b)
Install NEXUS AI CLI
npm install -g @nexus-ai-nexoralabs/cliInstall a local model (if you haven't already)
ollama pull qwen2.5:3bLaunch NEXUS
nexusThat's it. NEXUS will initialize your workspace and configuration automatically on first run.
First-Run Experience
When you run nexus for the first time, NEXUS will:
- Create your personal workspace at
~/NEXUS-Workspace(Windows:%USERPROFILE%\NEXUS-Workspace) - Initialize the local database at
%APPDATA%\NEXUS AI\data\nexus.sqlite(Windows) or~/.nexus-ai/data/nexus.sqlite - Detect available Ollama models
- Display the interactive dashboard
If Ollama is not installed or not running, NEXUS will display a clear, actionable setup guide instead of crashing.
CLI Commands
Once inside NEXUS:
| Command | Description |
| --------------- | ---------------------------------------- |
| /help | Show all available commands |
| /models | List available local AI models |
| /model <id> | Switch to a specific model |
| /tasks | Show recent tasks |
| /preview | Preview the latest completed web project |
| /preview stop | Stop the preview server |
| /clear | Clear the screen |
| /exit | Exit NEXUS |
Subsystem Architecture
src/config/— Environment configuration & production path resolutionsrc/storage/— SQLite persistence & workspace abstractionsrc/intelligence/— Local Ollama gateway & model registrysrc/knowledge/— RAG document indexing & retrievalsrc/tools/— Controlled filesystem, search & terminal adapterssrc/orchestration/— Agent planning, execution & verificationsrc/preview/— Local web project preview serversrc/api/— Application API contracts & health checks
Developer Setup
# 1. Clone and install
npm install
# 2. Copy environment template
cp .env.example .env
# 3. Type check
npm run typecheck
# 4. Lint
npm run lint
# 5. Run tests
npm test
# 6. Build
npm run build
# 7. Run CLI in development mode
npm run agentTesting & Acceptance Verification
NEXUS uses a multi-tier verification strategy:
A. Unit & Fast Integration Tests
npm testRuns unit tests for isolated subsystems (routing, parsing, approval gate, tool execution, storage, config).
B. In-Process Integration Acceptance
npx tsx scripts/verify_decomposition_acceptance.tsTests end-to-end task decomposition, multi-unit dependency resolution, and preview gating in-process via ApplicationApi.
C. Real Installed CLI Black-Box End-to-End Acceptance
npm run test:e2e:cliSpawns the actual installed nexus executable as a separate OS process, submitting prompts through interactive stdin, verifying dynamic CLI stdout, task plan cards, real child unit execution, /tasks, /preview, live HTTP preview responses, substance checks, and process restart/resume.
License
MIT
