OG

oakplank/gpt-image-bridge

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

90 stars 品質 68 トレンド 10MIT

OpenAI の gpt-image-2 をコーデックス CLI でブリッジすることで、Claude コード画像生成を行います。 ChatGPT サブ、API キーを使用しません.

概要

OpenAIのgpt-image-2をCLIのコーディングエージェントから生成し、コーデックスCLIを通してブリッジングします。 ChatGPT サブスクリプションを使用する — ブリッジはスタンドアローンバッシュスクリプトです。 クロードコード、カーソル、Gemini CLI、エイダー、またはシェルコマンドを実行できる他のエージェントはそれを呼び出します。 クロードコードは、付属のインストーラがそれをスキルとして登録しているため、最も素晴らしい人間工学的を取得します。 任意の設計スキル(Lonxlnx/taste-skill のイメージ・テース・フロントエンドのスキルのような)、またはエージェントが画像を生成する必要があるとき、独自の方法で動作します。 コーディングエージェントはイメージ生成ツールで出荷しません。 これは、既存の ChatGPT 認証を使用して gpt-image-2 を呼び出すコードックス exec にシェルアウトする薄い bash ラッパーを追加し、要求した PNG をコピーします。 エージェントは PNG をコンテキストに戻します。 Codexはサンドボックスを実行し、独自の作業ディレクトリ内でのみ書き込むことができます。そのため、ラッパーはプライベートなテンペでポイントし、最終的なコピー自体を実行します.

概要(AI 翻訳)

OpenAIのGPTイメージ2.5をCLIコーディングエージェントから[codexCLIを通してブリッジすることで生成します。 ChatGPT サブスクリプションを使用する — ** API のキーは必要ありません。

ブリッジはスタンドアローンバッシュスクリプトです。 クロードコード、カーソル、Gemini CLI、エイダー、またはシェルコマンドを実行できる他のエージェントはそれを呼び出します。 クロードコードは、付属のインストーラがそれをスキルとして登録しているため、最も素晴らしい人間工学的を取得します。

Leonxlnx/taste-skillのスキル([[T1]のような)、またはエージェントが写真を撮る必要があるときはいつでも、任意の設計スキルで動作します。

それは何ですか

codex execにシェルアウトする細いバッシュラッパーでエージェントをコーディングする画像生成を追加し、既存のChatGPT認証を使用してimage_generationツールを呼び出し、要求したPNGをコピーします。 エージェントは PNG をコンテキストに戻します。

OpenAIの画像 2.5 の通知には、Codex の可用性が含まれています。 ブリッジは、Codex が提供するイメージモデルを使用します。特定のバックエンドモデルを選択または検証しません。 実行可能は、既存のインストールとスクリプトとの互換性のために、まだ[gpt-image-2と名付けられます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

gpt-image-bridge

Generate images with OpenAI’s GPT Image 2.5 from a CLI coding agent by bridging through the codex CLI. Uses your ChatGPT subscription — no API key required, no per-image billing.

The bridge is a standalone bash script — Claude Code, Cursor, Gemini CLI, aider, or any other agent that can run a shell command can call it. Claude Code just gets the nicest ergonomics, because the included installer registers it as a skill so Claude reaches for it unprompted.

Works with any design skill (like the image-taste-frontend skill from Leonxlnx/taste-skill) or on its own whenever your agent needs to produce a picture.

What it is

This adds image generation to coding agents through a thin bash wrapper that shells out to codex exec, calls its image_generation tool using your existing ChatGPT authentication, and copies the PNG where you asked. Your agent then reads the PNG back into context.

OpenAI’s Images 2.5 announcement includes availability in Codex. The bridge uses the image model provided by Codex; it does not select or verify a particular backend model. The executable is still named gpt-image-2 for compatibility with existing installs and scripts. That filename does not pin generation to GPT Image 2.

your agent ──shell──▶ gpt-image-2 wrapper ──codex exec──▶ image_generation
                              │                                  │
             read PNG ◀── copies to your ◀──── out.png in a ◀────┘
                          output path          private temp dir

Codex runs sandboxed and can only write inside its own working directory, so the wrapper points it at a private temp dir and performs the final copy itself. That keeps arbitrary output paths (and Windows paths) working reliably.

Prerequisites

  • Any coding agent that can run shell commands — Claude Code, Cursor, Gemini CLI, aider, or your own script
  • codex CLI installed (brew install codex on macOS, npm install -g @openai/codex anywhere)
  • A ChatGPT subscription (Plus / Pro / Team) logged in via codex login
  • macOS, Linux, or Windows — the wrapper is bash, which on Windows runs under Git Bash (the shell Claude Code already uses there) or WSL

Verify:

codex login status   # should say: Logged in using ChatGPT
codex features list | grep image_generation    # should be: stable true

Install

Claude Code

git clone https://github.com/oakplank/gpt-image-bridge.git
cd gpt-image-bridge
./install.sh
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add oakplank/gpt-image-bridge
MCP 初心者?mcpskill.org のガイドから始めましょう →