Skip to main content

AI Assistant

Test AIssist

AIssist is a simple, but capable command-line-interface (CLI) to chat with OpenAI's cutting-edge AI models.

Install me with pip install aissist. Set the OPENAI_API_KEY environment variable to be your OpenAI API key, then type ai.

Why AIssist?

This library was written to scratch a personal itch. I have found GPT 3.5 to be incredibly useful in my day-to-day coding activities, but also found that having to go to a web browser and interact there was tedious. What I really wanted was a tool that would:

  1. Be accessible from a simple command line prompt (ai)
  2. That single command should open up a shell to interact with ChatGPT, with the system already prompted to respond tersely but helpfully to coding questions
  3. Have chat history accessible with the up arrow
  4. Have syntax highlighting on ChatGPT responses
  5. Have multi-line editing capabilities on multi-line prompts

This library is precisely that.

Installation

Install using pypi with

pip install aissist

There is one required environment variable, OPENAI_API_KEY, which should contain an OpenAI API key. aissist will prompt you if the key is not set or is invalid.

Usage

Invoke the program with ai. Various pieces of configuration can be edited with command-line parameters, list these with ai --help.

Once launched, simply enter a prompt, and hit ESCAPE then ENTER to submit the prompt.

Inside of each session there is a history, and you can use the up arrow to revisit and edit previous prompts.

Here is a simple example

An example of using aissist to write Python

Configuration

On first run, aissist will write a configuration file (.aissist) to your home directory. This file contains a number of configuration options that can be edited. Each configuration option matches precisely to a command-line argument. The orde of precedence for taking an option value is

  1. Command-line argument
  2. .aissist setting
  3. Default setting

Versioning

AIssist follows semantic versioning thus you should expect that:

  • If the patch version is increased, only bugfixes have taken place
  • If the minor version is increased, only additive changes have been made to the program. Your existing workflows will work fine.
  • If the major version is increased, the user may notice backward incompatible changes, or feature deprecations.

Release files for aissist 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aissist 0.1.0
File Size Uploaded
aissist-0.1.0.tar.gz 109.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aissist 0.1.0
File Interpreter ABI Platform
aissist-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 124.0 kB

Release files / aissist-0.1.0.tar.gz

Download URL aissist-0.1.0.tar.gz
Size 109.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1e301200242804aaa0e2025b5b6f89a881d3dc11d8dd190b704dc3e9b56f06fc
BLAKE2b-256 checksum
How to use checksums
e3198817b22865fe5043bee09460f9be57ceca6522bf0c328edb3fbdbb4f1e11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / aissist-0.1.0-py3-none-any.whl

Download URL aissist-0.1.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f40ea7e6f1b9b51245dd4fadb7abab2a88cbc7548bd91b2f99404df957d3931
BLAKE2b-256 checksum
How to use checksums
92781de841e66c8f49ce0e57d13c5bb31ebbf5fc7ebd02dbdac4f256eaf7ef7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page