@nodetool-ai/cli
v0.8.3
Published
NodeTool chat CLI — interactive AI chat with agent mode and tool support
Readme
@nodetool-ai/cli
Command-line tools for NodeTool — interactive AI chat and workflow management from the terminal.
Ships two executables: nodetool for managing workflows, jobs, assets, models, secrets, and servers, and nodetool-chat for an interactive multi-provider LLM chat with tool support.
Install
npm install -g @nodetool-ai/cliAgents and headless machines
The CLI needs Node.js 22 or later and nothing else: no repository, no .env,
and no desktop session. Provider keys are read from the environment.
# Run as an MCP server over stdio for Claude Code, Codex, or any MCP client
npx -y -p @nodetool-ai/cli nodetool mcp serve
# Serve the HTTP + WebSocket API (health check at /health)
npx -y -p @nodetool-ai/cli nodetool serve --port 7777
# Run a workflow file and print its outputs as JSON
OPENAI_API_KEY=sk-... npx -y -p @nodetool-ai/cli nodetool \
workflows run workflow.json --params '{"prompt":"hello"}' --jsonKeep -p @nodetool-ai/cli nodetool. The package installs two executables, so
npx @nodetool-ai/cli cannot tell which one to run.
On a machine without a system keychain (a container, CI, or a server without
a D-Bus session) the encrypted secret store stays locked. The API server, the
MCP server, and workflow runs still start, and stored secrets are unavailable.
To store secrets there, set SECRETS_MASTER_KEY to a base64
32-byte key, for example from openssl rand -base64 32, and keep the same
value for every run.
Executables
| Command | Description |
|---|---|
| nodetool | Management CLI — serve, run workflows, jobs, assets, models, secrets, settings, MCP install |
| nodetool-chat | Interactive terminal chat across providers |
nodetool
nodetool info # System and environment info, API-key status
nodetool serve --host 0.0.0.0 --port 7777 # Start the WebSocket + HTTP server
nodetool run workflow.ts # Run a TypeScript/JavaScript DSL workflow file
# Workflows (id-based commands read the local database; --api-url for a remote server)
nodetool workflows list
nodetool workflows get <id>
nodetool workflows run <id|file.json|file.ts> --params '{"key":"value"}'
nodetool workflows export-dsl <id> -o out.ts # Export as TypeScript DSL
nodetool workflows export-bundle <id> -o pack.nodetool # Portable zip with assets
nodetool workflows import-bundle pack.nodetool
# Jobs and assets
nodetool jobs list --workflow-id <id>
nodetool jobs get <job_id>
nodetool assets list --query "photo" --content-type image/png
# Models
nodetool models list
nodetool models providers
nodetool models by-provider anthropic --kind llm
# Secrets (encrypted local store)
nodetool secrets list
nodetool secrets store OPENAI_API_KEY
nodetool secrets get OPENAI_API_KEY
# Settings and MCP
nodetool settings show
nodetool mcp install # Register the MCP server for Claude Code, Codex, OpenCode
nodetool mcp status --check # Start each registered server and list its tools
nodetool mcp config # Print an mcpServers block for any other clientSee NodeTool as an MCP Server.
The workflows, jobs, assets, and models read commands hit the local database, providers, and caches by default. Pass --api-url <url> (env NODETOOL_API_URL) to query a remote server instead, and --json for machine-readable output.
nodetool-chat
nodetool-chat # Saved / auto-detected settings
nodetool-chat --provider anthropic --model claude-sonnet-5
nodetool-chat --workspace /path/to/dir # Set the workspace for file tools
nodetool-chat --url ws://localhost:7777/ws # Connect to a running server
echo "research 5 AI topics" | nodetool-chat # Piped, non-interactiveChat flags: -p, --provider, -m, --model, -u, --url, -w, --workspace, --tools <list>. Every session runs the unified agent loop; -a, --agent and --no-agent are accepted for backwards compatibility and do nothing.
Providers include anthropic, openai, gemini, xai, groq, mistral, deepseek, ollama, lmstudio, and other registry providers.
Tracing
Both executables accept --trace-file <path> (append LLM/agent/workflow spans as JSONL) and --trace-stdout <pretty|json>.
