All Projects → tom-doerr → zsh_codex

tom-doerr / zsh_codex

Licence: MIT license
This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to zsh codex

fix
Allows you to use OpenAI Codex to fix errors in the command line.
Stars: ✭ 72 (-90.85%)
Mutual labels:  openai, codex
awesome-codex
A list dedicated to products, demos and articles related to 🤖 OpenAI's Codex.
Stars: ✭ 115 (-85.39%)
Mutual labels:  openai, codex
graphsignal
Graphsignal Python agent
Stars: ✭ 158 (-79.92%)
Mutual labels:  openai
pen.el
Pen.el stands for Prompt Engineering in emacs. It facilitates the creation, discovery and usage of prompts to language models. Pen supports OpenAI, EleutherAI, Aleph-Alpha, HuggingFace and others. It's the engine for the LookingGlass imaginary web browser.
Stars: ✭ 376 (-52.22%)
Mutual labels:  openai
capella
Cloud service for image storage and delivery
Stars: ✭ 116 (-85.26%)
Mutual labels:  codex
inline-code
Inline-Code Tool for Editor.js 2.0
Stars: ✭ 32 (-95.93%)
Mutual labels:  codex
warning
Warning Tool for CodeX Editor 2.0
Stars: ✭ 15 (-98.09%)
Mutual labels:  codex
clip-guided-diffusion
A CLI tool/python module for generating images from text using guided diffusion and CLIP from OpenAI.
Stars: ✭ 260 (-66.96%)
Mutual labels:  openai
yourAI
GPT-2 Discord Bot and Steps to Train Something Like You
Stars: ✭ 71 (-90.98%)
Mutual labels:  openai
ActiveRagdollControllers
Research into controllers for 2d and 3d Active Ragdolls (using MujocoUnity+ml_agents)
Stars: ✭ 30 (-96.19%)
Mutual labels:  openai
CartPole
Run OpenAI Gym on a Server
Stars: ✭ 16 (-97.97%)
Mutual labels:  openai
Codex
A free note-taking software for programmers and Computer Science students
Stars: ✭ 242 (-69.25%)
Mutual labels:  codex
ru-dalle
Generate images from texts. In Russian
Stars: ✭ 1,606 (+104.07%)
Mutual labels:  openai
Pytorch-RL-CPP
A Repository with C++ implementations of Reinforcement Learning Algorithms (Pytorch)
Stars: ✭ 73 (-90.72%)
Mutual labels:  openai
link
Link Tool for Editor.js 2.0
Stars: ✭ 61 (-92.25%)
Mutual labels:  codex
clip playground
An ever-growing playground of notebooks showcasing CLIP's impressive zero-shot capabilities
Stars: ✭ 80 (-89.83%)
Mutual labels:  openai
Gpt 2 Simple
Python package to easily retrain OpenAI's GPT-2 text-generating model on new texts
Stars: ✭ 2,834 (+260.1%)
Mutual labels:  openai
frozenlake
Value & Policy Iteration for the frozenlake environment of OpenAI
Stars: ✭ 16 (-97.97%)
Mutual labels:  openai
go-gpt3
OpenAI GPT-3 API wrapper for Go
Stars: ✭ 107 (-86.4%)
Mutual labels:  openai
vim codex
This is a simple plugin for Vim that allows you to use OpenAI Codex.
Stars: ✭ 181 (-77%)
Mutual labels:  codex

⌨️ 🦾 Zsh Codex

AI in the command line.

Repository's starts Issues License
Latest commit GitHub repository size

You just need to write a comment or variable name and the AI will write the corresponding code.

What is it?

This is a ZSH 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.

How do I install it?

Manual Installation

  1. Install the OpenAI package.
pip3 install openai
  1. Download the ZSH plugin.
    $ git clone https://github.com/tom-doerr/zsh_codex.git ~/.oh-my-zsh/custom/plugins/zsh_codex 
  1. Add the following to your .zshrc file.

Using oh-my-zsh:

    plugins=(zsh_codex)
    bindkey '^X' create_completion

Without oh-my-zsh:

    # in your/custom/path you need to have a "plugins" folder and in there you clone the repository as zsh_codex
    export ZSH_CUSTOM="your/custom/path"
    source "$ZSH_CUSTOM/plugins/zsh_codex/zsh_codex.plugin.zsh"
    bindkey '^X' create_completion
  1. Create a file called openaiapirc in ~/.config with your ORGANIZATION_ID and SECRET_KEY.
[openai]
organization_id = ...
secret_key = ...
  1. Run zsh, start typing and complete it using ^X!

Fig Installation

Troubleshooting

Unhandled ZLE widget 'create_completion'

zsh-syntax-highlighting: unhandled ZLE widget 'create_completion'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> create_completion` without creating the 'create_completion' widget with `zle -N` or `zle -C`.)

Add the line

zle -N create_completion

before you call bindkey but after loading the plugin (plugins=(zsh_codex)).

Already exists and is not an empty directory

fatal: destination path '~.oh-my-zsh/custom/plugins'

Try to download the ZSH plugin again.

git clone https://github.com/tom-doerr/zsh_codex.git ~/.oh-my-zsh/custom/plugins/zsh_codex

Buy Me A Coffee

More usage examples


Fish Version

Traffic Statistics

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].