⌨️

?
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 .

How do I install it?

  1. Download the ZSH plugin.

    $ git clone https://github.com/tom-doerr/zsh_codex.git ~/.oh-my-zsh/plugins/ 
  1. Add the following to your .zshrc file.

    plugins=(zsh_codex)
    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!

GitHub

GitHub - tom-doerr/zsh_codex
Contribute to tom-doerr/zsh_codex development by creating an account on GitHub.