codex.nvim  by johnseth97

Neovim plugin for OpenAI Codex integration

Created 1 year ago
253 stars

Top 99.4% on SourcePulse

GitHubView on GitHub
Project Summary

Codex Neovim Plugin integrates OpenAI's Codex models, providing AI-powered code completion and generation directly within the editor. It targets Neovim users seeking to enhance their coding workflow with AI assistance, offering features like toggling an AI panel, background processing, and statusline integration.

How It Works

The plugin acts as a frontend for the open-sourced Codex CLI. Users install the CLI via npm and configure their OpenAI API key. The Neovim plugin then communicates with the CLI to send code context and receive AI-generated suggestions or completions. It offers flexibility in presentation, allowing users to choose between a floating window or a side-panel, and to capture output in a terminal buffer or a standard editable buffer.

Quick Start & Requirements

  1. Install the Codex CLI: npm install -g @openai/codex or set autoinstall = true in the plugin configuration.
  2. Obtain an OpenAI API key and set it as an environment variable: export OPENAI_API_KEY=your_api_key.
  3. Install the plugin using a Neovim package manager (e.g., lazy.nvim example provided).
  4. Prerequisites: Neovim, Node.js/npm, OpenAI API Key.
  5. Setup Time: Minimal, assuming Node.js and Neovim are already configured.

Highlighted Details

  • Toggle Codex window/side-panel with :CodexToggle or custom keymaps.
  • Optional background execution when the Codex window is hidden.
  • Statusline integration via require('codex').status().
  • Customizable UI elements (border, width, height) and output handling (terminal vs. buffer).

Maintenance & Community

No specific details on contributors, sponsorships, or community channels (like Discord/Slack) are provided in the README.

Licensing & Compatibility

The license is not explicitly stated in the provided README. Compatibility for commercial use or closed-source linking is therefore undetermined.

Limitations & Caveats

The plugin and its underlying Codex CLI are in "active beta development," meaning features can change rapidly, and stability is not guaranteed. It relies on an external CLI and an OpenAI API key, introducing external dependencies and potential costs.

Health Check
Last Commit

7 months ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
7 stars in the last 30 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems").

muxy by muxy-app

2.4%
2k
Lightweight terminal for macOS and iOS
Created 3 months ago
Updated 1 day ago
Starred by George Hotz George Hotz(Author of tinygrad; Founder of the tiny corp, comma.ai), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
47 more.

opencode by anomalyco

1.3%
184k
CLI tool for AI-assisted coding in the terminal
Created 1 year ago
Updated 8 hours ago
Feedback? Help us improve.