AI in the command line.
This is a fish plugin that enables you to use OpenAI's powerful Codex AI in the command line. OpenAI Codex is the AI that also powers GitHub Copilot. To use this plugin you need to get access to OpenAI's Codex API.
There's a fork of this repo called fish-ai. It has many more features and supports more language models, so you should probably use fish-ai instead of the version in this repo.
Install the OpenAI package.
pip3 install openai
Install the plugin itself. You can install it using fisher:
fisher install tom-doerr/codex.fish
Create a file called openaiapirc
in ~/.config
with your ORGANIZATION_ID and SECRET_KEY.
[openai]
organization_id = ...
secret_key = ...
fish
, start typing and complete it using ^X
!