Skip to content

Auto Copilot is a powerful and useful tool for developers that uses OpenAI models to translate natural language into commands, scripts, refactoring code and more that will help you achieve your goal as safely as possible.

License

Notifications You must be signed in to change notification settings

CatsPunch/auto-copilot-cli

 
 

Repository files navigation

Auto Copilot CLI

logo

npm Node.js Package MIT License auto-copilot-cli npm downloads

Demo

Click to view demo
Usage.mov

Usage

Click to view usage
# Refactor code
$ copilot -r <file>

# Rename all files in the current directory to lowercase
$ copilot "rename files in the current directory to lowercase"

# Convert all images in the current directory to size 100x100
$ copilot "convert all images in the current directory to size 100x100"

# Create a file with implementation of binary search
$ copilot "create a js file with implementation of binary search"

# Create a simple web server in Node.js using Koajs
$ copilot "create a simple web server in Node.js using Koajs"

# Start PostgreSQL in Docker
$ copilot "start PostgreSQL in Docker"

Description

Auto Copilot is a powerful and useful tool for developers that uses OpenAI models to translate natural language into commands, scripts, refactoring code and more that will help you achieve your goal as safely as possible.

Installation

npm install -g auto-copilot-cli

Install Script:

curl -s https://raw.githubusercontent.com/rsaryev/auto-copilot-cli/main/deployment/deploy.bash | bash

Requirements

Options

  • -r, --refactor <file> - refactor code
  • -h, --help - display help for command
  • -V, --version - output the version number

Configuration

  • -m, --model <modelName> - OpenAI model name (default: "gpt-3.5-turbo")
  • -k, --openai-api-key <key> - OpenAI API key (Get OpenAI API key)
  • -e, --editor <editor> - Editor to open files (default: "code")

About

Auto Copilot is a powerful and useful tool for developers that uses OpenAI models to translate natural language into commands, scripts, refactoring code and more that will help you achieve your goal as safely as possible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.2%
  • Shell 4.5%
  • JavaScript 0.3%