Skip to main content

Command Line Inferface for ChatGPT

Installation

pip install --upgrade cligpt

Getting Started

# Fill in your OpenAI API key
export OPENAI_API_KEY=[sk-xxxx]

# Launch
cligpt

# Switch roles (you may use abbreviations as long as they do not clash with other roles)
@revise (or @revis | @revi | @rev | @re | @r)

Advanced Options

  • Customize your roles

    Edit the configuration file:

    vim ~/.cligpt/config.json
    
  • Turn on/off Auto-copy (default=on)

    cligpt automatically copies the last response to your clipboard. To enable/disable it, launch cligpt with the following command:

    cligpt --no_auto_copy
    
  • Adjust context length (default=6)

    Context length refers to the number of prompts+responses cligpt should remember. For example, if you want it to remember the last 3 prompts + 3 responses, launch cligpt with the following command:

    cligpt --context_length=6
    
  • Turn on/off stream mode (default=on)

    Stream mode displays words popping up one by one. To enable/disable it, launch cligpt with the following command:

    cligpt --no_stream
    
  • Proxy (default=None)

    Use a proxy for the OpenAI API:

    cligpt --proxy=http:127.0.0.1:9000
    

Uninstallation

pip uninstall cligpt
(rm -rf ~/.cligpt)

Metadata

Release files for cligpt 2.8

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

Source distribution (sdist)

Source distribution for cligpt 2.8
File Size Uploaded
cligpt-2.8.tar.gz 6.6 kB Details

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / cligpt-2.8.tar.gz

Download URL cligpt-2.8.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
258a392965d76545a2d1288efa2c6ebb211a0931a74032a39a2420876a765cb3
BLAKE2b-256 checksum
How to use checksums
393403cef741bd1c8a9cc17fda69bf8b10f855705304f2ad93540e8f0e2ec31f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / cligpt-2.8-py3-none-any.whl

Download URL cligpt-2.8-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea1bc452995d7e5698a98ef4c466f4cf7b507f58e71895eda6c856145e1817c8
BLAKE2b-256 checksum
How to use checksums
6e9e463cd13de3f21190407dcb8d246209644d733b3127d64c92719fbaae1544
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

2.8 This release

2 release files

2.7.2

2 release files

2.7.1

2 release files

2.7

2 release files

2.6

2 release files

2.5.1

2 release files

2.5

2 release files

2.4

2 release files

2.3

2 release files

1.1

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