{"id":49408211,"url":"https://github.com/johnseth97/codex.nvim","last_synced_at":"2026-05-29T22:01:43.699Z","repository":{"id":288564969,"uuid":"968506134","full_name":"johnseth97/codex.nvim","owner":"johnseth97","description":"OpenAI Codex plugin for Neovim","archived":false,"fork":false,"pushed_at":"2025-11-20T01:56:01.000Z","size":78,"stargazers_count":238,"open_issues_count":12,"forks_count":26,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-15T09:07:48.308Z","etag":null,"topics":["neovim","neovim-plugin","openai","openai-codex"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnseth97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-18T07:47:29.000Z","updated_at":"2026-05-13T17:56:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc41066f-1cbf-45c0-80ab-3e89d7c23852","html_url":"https://github.com/johnseth97/codex.nvim","commit_stats":null,"previous_names":["johnseth97/codex.nvim"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/johnseth97/codex.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnseth97%2Fcodex.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnseth97%2Fcodex.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnseth97%2Fcodex.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnseth97%2Fcodex.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnseth97","download_url":"https://codeload.github.com/johnseth97/codex.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnseth97%2Fcodex.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33672125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neovim","neovim-plugin","openai","openai-codex"],"created_at":"2026-04-28T23:00:24.014Z","updated_at":"2026-05-29T22:01:43.690Z","avatar_url":"https://github.com/johnseth97.png","language":"Lua","funding_links":[],"categories":["Stale"],"sub_categories":["Editors \u0026 Plugins"],"readme":"# Codex Neovim Plugin\n\u003cimg width=\"1480\" alt=\"image\" src=\"https://github.com/user-attachments/assets/eac126c5-e71c-4de9-817a-bf4e8f2f6af9\" /\u003e\n\n## A Neovim plugin integrating the open-sourced Codex CLI (`codex`)\n\u003e Latest version: ![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/johnseth97/codex.nvim?sort=semver)\n\n### Features:\n- ✅ Toggle Codex window or side-panel with `:CodexToggle`\n- ✅ Optional keymap mapping via `setup` call\n- ✅ Background running when window hidden\n- ✅ Statusline integration via `require('codex').status()`\n\n### Installation:\n\n- Install the `codex` CLI via npm, or mark autoinstall as true in the config function\n\n```bash\nnpm install -g @openai/codex\n```\n\n- Grab an API key from OpenAI and set it in your environment variables:\n  - Note: You can also set it in your `~/.bashrc` or `~/.zshrc` file to persist across sessions, but be careful with security. Especially if you share your config files.\n\n```bash\nexport OPENAI_API_KEY=your_api_key\n```\n\n- Use your plugin manager, e.g. lazy.nvim:\n\n```lua\nreturn {\n  'kkrampis/codex.nvim',\n  lazy = true,\n  cmd = { 'Codex', 'CodexToggle' }, -- Optional: Load only on command execution\n  keys = {\n    {\n      '\u003cleader\u003ecc', -- Change this to your preferred keybinding\n      function() require('codex').toggle() end,\n      desc = 'Toggle Codex popup or side-panel',\n      mode = { 'n', 't' }\n    },\n  },\n  opts = {\n    keymaps     = {\n      toggle = nil, -- Keybind to toggle Codex window (Disabled by default, watch out for conflicts)\n      quit = '\u003cC-q\u003e', -- Keybind to close the Codex window (default: Ctrl + q)\n    },         -- Disable internal default keymap (\u003cleader\u003ecc -\u003e :CodexToggle)\n    border      = 'rounded',  -- Options: 'single', 'double', or 'rounded'\n    width       = 0.8,        -- Width of the floating window (0.0 to 1.0)\n    height      = 0.8,        -- Height of the floating window (0.0 to 1.0)\n    model       = nil,        -- Optional: pass a string to use a specific model (e.g., 'o3-mini')\n    autoinstall = true,       -- Automatically install the Codex CLI if not found\n    panel       = false,      -- Open Codex in a side-panel (vertical split) instead of floating window\n    use_buffer  = false,      -- Capture Codex stdout into a normal buffer instead of a terminal buffer\n  },\n}```\n\n### Usage:\n- Call `:Codex` (or `:CodexToggle`) to open or close the Codex popup or side-panel.\n- Map your own keybindings via the `keymaps.toggle` setting.\n- To choose floating popup vs side-panel, set `panel = false` (popup) or `panel = true` (panel) in your setup options.\n- To capture Codex output in an editable buffer instead of a terminal, set `use_buffer = true` (or `false` to keep terminal) in your setup options.\n- Add the following code to show backgrounded Codex window in lualine:\n\n```lua\nrequire('codex').status() -- drop in to your lualine sections\n```\n\n### Configuration:\n- All plugin configurations can be seen in the `opts` table of the plugin setup, as shown in the installation section.\n\n- **For deeper customization, please refer to the [Codex CLI documentation](https://github.com/openai/codex?tab=readme-ov-file#full-configuration-example) full configuration example. These features change quickly as Codex CLI is in active beta development.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnseth97%2Fcodex.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnseth97%2Fcodex.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnseth97%2Fcodex.nvim/lists"}