codex-with-claudecode

Execute OpenAI Codex or ChatGPT CLI queries within Claude Code.

8|Updated Jul 26, 2026
One-click install
npx skills add https://github.com/joonlab/joonlab-claudecode-setting-for-share --skill codex-with-claudecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codex-with-claudecode
Source: https://github.com/joonlab/joonlab-claudecode-setting-for-share/tree/main/claude/skills/codex-with-claudecode
Command: npx skills add https://github.com/joonlab/joonlab-claudecode-setting-for-share --skill codex-with-claudecode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill bridges the gap between Claude Code and OpenAI models, allowing you to leverage GPT-based reasoning for code generation, cross-checking, or alternative perspectives without leaving your terminal environment.

Core Features & Use Cases

  • Cross-Model Validation: Use GPT models to verify code logic or suggest improvements on Claude's output.
  • Session Management: Execute queries in non-interactive mode and convert them into persistent terminal sessions for follow-up.
  • Use Case: When you need a second opinion on a complex refactoring task, use this skill to query Codex for an alternative implementation strategy and resume the conversation directly in your terminal.

Quick Start

Use the codex skill to execute a query asking GPT to review the current code logic for potential security vulnerabilities.

Frequently Asked Questions about codex-with-claudecode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cross-validate code logic using OpenAI models inside the Claude Code terminal?

Cross-validation is achieved by executing OpenAI Codex or ChatGPT CLI queries within Claude Code to fetch alternative reasoning and verify code logic without leaving the terminal environment.

Can I run OpenAI Codex queries in non-interactive mode and resume them later?

Yes, queries can be executed in non-interactive mode and converted into persistent terminal sessions using session ID tracking and local session file management to maintain context across multiple turns.

Do I need the codex-cli tool to generate code with GPT models from my terminal?

Yes, the codex-cli tool is required to execute OpenAI queries, manage local session files, and facilitate non-interactive execution workflows within the Claude Code environment.

What is the best way to get a second opinion on a complex refactoring task from ChatGPT?

The best way is querying Codex for an alternative implementation strategy via CLI, then converting the background task into an interactive terminal session to resume the conversation directly.

Does cross-model code analysis work without managing local session files?

No, local session file management is required to maintain context across multiple turns and track session IDs when converting background tasks into interactive terminal sessions.