Installation
Requirements
Section titled “Requirements”| Requirement | Detail |
|---|---|
| Node.js | >= 20 |
| Module format | ESM only ("type": "module") |
| The CLI itself | ActiveCLI drives an installed CLI; it does not bundle one |
The CLI must be installed and authenticated on the machine. ActiveCLI locates it and runs it; it never handles credentials.
Installation
Section titled “Installation”npm install activecliEvery public class is exported from the package root:
import { Claude, Command, AssistantEvent } from 'activecli';There is no deep-import path to learn. If a class is part of the public surface, it is on the root export — see What you can import for the full list.
Where to go next
Section titled “Where to go next”- Your first conversation — open a command, subscribe, send, close.
- Asking one question — when there is no conversation to manage.
- Nothing runs until
send()— the arrangement borrowed from ActiveRecord that the rest of the API rests on.