@statechange/mentor
v0.1.0
Published
CLI for State Change Mentor — search knowledge, chat, and explore mental models from your terminal
Maintainers
Readme
@statechange/mentor
State Change's 25 years of building experience, right in your terminal. Search the knowledge base, explore mental models, and browse resources — without leaving your flow.
Install
npm install -g @statechange/mentorOr run directly without installing:
npx @statechange/mentor search "how to price my SaaS"Getting Started
Log in
mentor loginThis opens your browser to authenticate via State Change. Once you approve, you're all set.
If you prefer, you can paste an API key manually:
mentor login --token <your-api-key>Your credentials are stored in ~/.statechange/auth.json (shared with other State Change CLI tools).
Log out
mentor logoutUsage
Search the knowledge base
mentor search "when should I raise prices"
mentor search "build vs buy"Returns relevant resources and mental models. Add --json for machine-readable output.
Look up mental models
List all available models:
mentor modelView a specific model by ID or number:
mentor model mm-70
mentor model 70Browse resources
List resources:
mentor resourcesView a specific resource:
mentor resource essay-132JSON output
All commands support --json for piping to other tools:
mentor search "pricing" --json | jq '.resources[0]'
mentor model 70 --json
mentor resources --jsonEnvironment Variables
| Variable | Description |
|---|---|
| STATECHANGE_API_KEY | API key (overrides stored auth) |
| NO_COLOR | Disable colored output |
