Skip to content

Command-line tool for AI-powered text and code generation using Gemini AI, OpenAI and GPT4ALL APIs.

License

Notifications You must be signed in to change notification settings

Elixir-Craft/terminalAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Reference

Terminal AI

A command line tool that uses Gemini AI and OpenAI API to generate text and code.

Installation

You can download the latest release for Debian or Arch based distros from the release page, or you can build from the source.

If you using Arch Linux or Arch based distro, you can install the terminalAI using PKGBUILD

You have to install Go and set up the environment before installing the tool.

git clone https://github.com/Elixir-Craft/terminalAI.git
cd terminalAI
go mod tidy

Build

go build -v -o out ./...  

Options

  • -i <input file> Input file path
  • -o <output file> Output file path
  • -p <Prompt> Prompt
  • -c Prompt from clipboard
  • chat Chat with AI
  • config Configure Services and API Keys

Set configurations

terminalai config init

Usage

terminalai "Generate Some Text"
terminalai -p " $(tree -L 2) generate docker-compose file for this project" -o docker-compose.yaml 
terminalai -i input.txt -p "Read the following text and generate a summary" -o output.txt

Chat

terminalai chat

About

Command-line tool for AI-powered text and code generation using Gemini AI, OpenAI and GPT4ALL APIs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages