Skip to main content

OAICLI 🕶️

A Command Line Interface to Open AI (pronounced Oakley (IPA oʊk.li)

OAICLI is designed to help developers create and use assistants, which were launched on OpenAI Dev Day, November 2023.

Threads, messages, and thread runs are abstracted, to make the user experience of creating and chatting with agents simpler. Your files, agent prompts, and messages will be saved to .oaicli, from which you can edit prompts and files.

Use at your own risk.

I built this for myself. Feel free to open issues and PRs. If you want a complete implementation of what Assistants are capable of, you can use the friendly OpenAI playground.

installation

pip install oaicli

Next, creat an .env file in your project home:

OPENAI_API_KEY  = "[your key]"
OPEN_AI_MODEL_TYPE = "gpt-4-1106-preview"
OPEN_AI_VISION_MODEL_TYPE = "gpt-4-1106-vision-preview"

When you first run oaicli, it will install the .oaicli directory in the project location. You could version prompts for example in your repo, and then update your agents.

Threads are given names to make it easier to choose.

Commands

oaicli -h | --help for help

Quickstart

oaicli start - allows you to start up quickly, choose a thread, agent, and start communicating.

If runs reach a time limit, they will be canceled.

File and Agent maintenance

Otherwise there is some agent and file maintenence.

oaicli file upload
oaicli file list
oaicli file download-all

Screenshot of running oaicli start

Roadmap

v0.3-0.5

  • upload doc from url, or get web contents
  • cat a directory into a single file and upload
  • share publicically OAICLI help agent, uploading entire github repo. For example "what changes would you make to README.md based on the source code"
  • pydantic refactor
  • stream response to console

v1.x

Have agents select and talk to each other.

Other:

Development

https://github.com/HumanAssistedIntelligence/OAICLI https://pypi.org/project/oaicli/

pyenv install 3.12
pyenv virtualenv 3.12 oaicli
export PYTHONPATH="[project path]/oaicli
pip install .

Metadata

Release files for oaicli 0.2.4

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

Source distribution (sdist)

Source distribution for oaicli 0.2.4
File Size Uploaded Provenance Actions
oaicli-0.2.4.tar.gz 20.5 kB Without provenance Details for oaicli-0.2.4.tar.gz

Built distribution (wheel)

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

Total release size: 40.1 kB

Release files / oaicli-0.2.4.tar.gz

Download URL oaicli-0.2.4.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
24e1e141c04d02b03f27e4f9b63a9dc734923f182bee5e40aad9e34797b5715e
BLAKE2b-256 checksum
How to use checksums
72ff4a537956f223aa41ca89b4867af31df3a8b700b80d413ca1e44ab4f51170
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / oaicli-0.2.4-py3-none-any.whl

Download URL oaicli-0.2.4-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae474133fe99ce24e04816363f018371c4ed4eeb9f1bd2f9ea1ef05979dbe97f
BLAKE2b-256 checksum
How to use checksums
0bb4f1e1dc465b1c7bfdc273a80e8471c6c10e1411adb8d6527d982a61df54bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for oaicli 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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