New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

grumpy-ai

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grumpy-ai

Openai client for cli

latest
npmnpm
Version
0.6.1
Version published
Maintainers
1
Created
Source

grumpy

Openai client I use on cli.

Install

npm install grumpy-ai

This installs a executable called ai, and requires OPENAI_API_KEY in your shell environment, then you can do things like this:

  • ai as: list predefined prompts, to edit the library, edit $HOME/ai.json.
  • ai as dict: Assume you have dict prompt in ai.json, this will use dict prompt to answer your questions.
  • ai ask: ask openai in an interactive way.
  • cat question.md | ai frompipe | bat -l markdown: read question from a markdown file and render answer with bat
  • cat question.md | ai frompipe | pbcopy: read question from markdown and copy the answer to clipboard, I find difficult to copy long answer in chatgpt web or other GUI, this makes it easier.

FAQs

Package last updated on 12 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts