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.
npm install -g @statechange/mentorOr run directly without installing:
npx @statechange/mentor search "how to price my SaaS"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).
mentor logoutmentor search "when should I raise prices"
mentor search "build vs buy"Returns relevant resources and mental models. Add --json for machine-readable output.
List all available models:
mentor modelView a specific model by ID or number:
mentor model mm-70
mentor model 70List resources:
mentor resourcesView a specific resource:
mentor resource essay-132All commands support --json for piping to other tools:
mentor search "pricing" --json | jq '.resources[0]'
mentor model 70 --json
mentor resources --json| Variable | Description |
|---|---|
STATECHANGE_API_KEY |
API key (overrides stored auth) |
NO_COLOR |
Disable colored output |