• Stars
    star
    1,252
  • Rank 37,538 (Top 0.8 %)
  • Language
    Python
  • License
    MIT License
  • Created about 3 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

โŒจ๏ธ ๐Ÿฆพ 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.

Newer Version available (pip install kiera)

More Info

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

More Repositories

1

codex-readme

Revolutionize your project documentation with the Codex-README generator, utilizing OpenAI's Codex for intelligent README creation.
Python
391
star
2

vim_codex

Supercharge your Vim editor with AI-powered code completion using OpenAI Codex. Boost productivity and save time with intelligent suggestions.
Python
249
star
3

TecoGAN-Docker

This is a fork of the TecoGAN project (https://github.com/thunil/TecoGAN) that adds support for docker.
Python
97
star
4

fix

Boost your command line with AI-powered error resolution using OpenAI's Codex. Enjoy a smoother workflow with Fix!
Python
88
star
5

codex.fish

Supercharge your command line with OpenAI Codex integration. Get AI-powered coding assistance right in your fish shell.
Python
70
star
6

chatgpt_commit_message_hook

Enhance your git workflow using AI-generated commit messages from ChatGPT. Seamless integration for a well-documented commit log.
Python
67
star
7

dalle_flow_streamlit

Python
28
star
8

gpt_minus_one

Stealth Mode for ChatGPT - Keep your AI-generated text under the radar with our obfuscation tool designed for ChatGPT.
Python
17
star
9

github_stats

Python
9
star
10

timew_distribution

This plugin plots the time you spent on a tag as a histogram.
Python
8
star
11

github_fork_info

Python
6
star
12

ai_data_analyser

Analyse tabular data using OpenAI Codex
Python
6
star
13

carla_rl_weights

This repository contains checkpoint-files for the Sentdex/Carla-RL repository.
5
star
14

dotfiles

Contains my configuration files
Shell
4
star
15

point_e_streamlit

Python
3
star
16

meta_neural_networks

Python
2
star
17

scripts

Shell
2
star
18

chat_gpt_coder

Python
2
star
19

commonroad-docker

Dockerfile
2
star
20

tum_ai_bot

Python
2
star
21

Intrinsic-Image-Popularity

Shell
1
star
22

mnist_codex

Python
1
star
23

fakebob_offsets

Python
1
star
24

ipython_codex

1
star
25

set_random_wallpaper_reddit

Shell
1
star
26

TecoGAN_to_low_res

Python
1
star
27

next_js_test

1
star
28

trending_custom

Python
1
star
29

commonroad_batch_processing

Jupyter Notebook
1
star
30

ai_photo_rater

Python
1
star
31

taskwarrior-auto-tag-hook

This hook script allows to automatically add tags to a task.
Python
1
star
32

application_dashboard

Python
1
star