@hewliyang/pi-codex-image

Pi extension that exposes OpenAI's hosted image_generation tool to any model, authenticated via the openai-codex (ChatGPT Plus/Pro) OAuth credential.

Package details

extensionskill

Install @hewliyang/pi-codex-image from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@hewliyang/pi-codex-image
Package
@hewliyang/pi-codex-image
Version
0.1.0
Published
May 3, 2026
Downloads
not available
Author
hewliyang
License
MIT
Types
extension, skill
Size
69.6 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ],
  "skills": [
    "./skills"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-codex-image

A pi extension exposing OpenAI's hosted image_generation tool to any model, authenticated via the openai-codex (ChatGPT Plus/Pro) OAuth credential.

Install

pi install npm:@hewliyang/pi-codex-image

You must be logged in via Codex OAuth:

pi /login   # pick "ChatGPT Plus/Pro (Codex)"

Contents

  • generate_image tool — agent-callable image generation/editing. Args: prompt, input_image_paths, size, quality, background, save_path.
  • /imggen slash command — user-initiated generation: /imggen <prompt>, /imggen edit, /imggen redo, /imggen help.
  • generate-image skill — teaches the agent when/how to call the tool, with prompt recipes and a chroma-key removal script.

License

MIT