Code Monkey home page Code Monkey logo

askllm-cli's Introduction

askllm-cli

askllm is a simple CLI interface for asking questions to the OpenAI GPT API from command line. It uses the chat completion API to form responses and feels much faster than the official web interface. If you need to ask a simple question, especially about something CLI-related, this tool offers a faster and more convenient workflow.

It requires you to have an OpenAI API key, from which you will need a developer subscription with openai.com

Privacy is a sensitive issue when it comes to personal AI requests. That's why this tool is designed as a simple one-page app, that you can easily audit and compile yourself. It does not send any data to any server, except the OpenAI API.

Installation with Homebrew

On Mac with homebrew, just run the following:

brew tap procommerz/askllm
brew install askllm

Installation from the Repository

First cd to the cloned repositoty.

Use one of the file from dist/[your platform]/askllm and link it to /usr/local/bin/askllm:

ln -s ./dist/macos_arch64/askllm /usr/local/bin/askllm

...or compile it yourself with

go build -o askllm main.go
ln -s ./askllm /usr/local/bin/askllm

Run it once, to create the config file

askllm hello

Edit the config file in ~/.askllm and add your OpenAI API key

Use It

askllm How to restart nginx?

Command Line Usage

Usage: askllm [-s] [-f filename] question. OpenAI API key is must be set in the ~/.askllm file
-s, --system			Prepend the question with system info from ~/.askllm
-f, --file			Add the file contents to the prompt for analysis
-m, --more			Triples the max_tokens value, for longer answers
-h, --help			Show this help

askllm-cli's People

Contributors

procommerz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.