sushant-cli
v0.1.0
Published
Programmable product judgment in your terminal.
Readme
Sushant CLI
Product judgment, encoded.
A terminal-first CLI for product thinking, decision-making, and system design.
Install
One-liner (like Claude’s curl installer)
Requires Node.js (npm on your PATH). Then:
curl -fsSL https://raw.githubusercontent.com/SushantChhetry/sushant-cli/main/scripts/install.sh | bashOverride the repo with SUSHANT_CLI_REPO=YourOrg/your-fork if you fork.
Claude Code’s default flow is a native script plus Homebrew; this is the closest parallel for a Node-based CLI—one command, no clone.
npm (after you publish to the registry)
npm install -g sushant-clinpm from GitHub
npm install -g github:SushantChhetry/sushant-cliThe repo ships a prebuilt dist/, so this install does not run a TypeScript compile on your machine.
Homebrew (maintainer/distributor flow)
Sushant now includes a Homebrew formula generator for taps:
npm run release:brew-formulaThis writes packaging/homebrew/sushant-cli.rb, which can be committed to your tap repo and installed with brew install <tap>/sushant-cli.
RPM (maintainer/distributor flow)
Sushant now includes RPM packaging files and a build helper:
npm run release:rpmRequirements: rpmbuild + nodejs.
First-run setup (new default)
Sushant CLI now uses a frictionless local setup flow:
- Install globally.
- Run
sushant. - If no valid local config is found, Sushant launches a setup wizard.
- Choose a provider, enter your API key securely, and optionally set a model.
- Config is saved locally and reused on future runs.
sushantSupported providers
- OpenAI (
OPENAI_API_KEY) - Anthropic (
ANTHROPIC_API_KEY)
The configuration model is provider-agnostic so additional providers can be added without changing the main auth shape.
Authentication and config commands
sushant login→ run setup wizard explicitlysushant logout→ remove local configsushant whoami→ show current provider/model with redacted keysushant config→ show safe redacted configsushant config set provider <openai|anthropic>sushant config set model <model-name>
Credential resolution order
For AI-backed commands (wwsd, breakdown, redflag, visualize) and no-args interactive mode:
- Local config file
- Environment variables
- Interactive setup wizard
If local config is malformed, the CLI guides you into repair through the same setup wizard.
Local config storage
Config is stored in a user-level directory:
- macOS/Linux (XDG aware):
$XDG_CONFIG_HOME/sushant/config.jsonor~/.config/sushant/config.json - Windows:
%APPDATA%\\sushant\\config.json
Example structure:
{
"provider": "openai",
"providerConfig": {
"apiKey": "SECRET",
"model": "gpt-5-mini"
}
}Environment variables (advanced / fallback)
Environment variables are still supported when no local config exists:
OPENAI_API_KEYANTHROPIC_API_KEY- Optional model overrides:
OPENAI_MODELANTHROPIC_MODELSUSHANT_MODEL(generic fallback)
Quick command examples
sushant
sushant login
sushant whoami
sushant wwsd "Should we automate tax intake via SMS?"
sushant redflag "AI agent that auto-submits claims"
sushant configLocal development
npm install
npm run dev
npm run buildDocs
License
MIT
