Image Proxy logo

Image Proxy

Community
ninemouth
image-proxy

Generate or edit raster images through an explicitly configured OpenAI-compatible third-party image provider, including ThinkAI by default, with dry-run request snapshots, source-image and mask uploads, progress files, secure local key configuration, and downloaded output verification. Use when the user asks to use a third-party image proxy, ThinkAI, an OpenAI-compatible image endpoint, or the image-proxy skill; do not use it for native Codex image generation or a full ecommerce production workflow.

Overview

Publisherninemouth
Repositorysellerpilot-product-image-industrial
Skill nameimage-proxy
Stars
43
Forks
5
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ninemouth on GitHub. Read the source before you install it.

Installation

Install the Image Proxy AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ninemouth/sellerpilot-product-image-industrial/tree/main/standalone/image-proxy
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ninemouth/sellerpilot-product-image-industrial.git /tmp/sellerpilot-product-image-industrial
mkdir -p .claude/skills
cp -r /tmp/sellerpilot-product-image-industrial/standalone/image-proxy .claude/skills/image-proxy
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Proxy in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Proxy on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Proxy is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Image Proxy

Use this skill as an independent provider execution layer. It sends a finalized prompt to one configured OpenAI-compatible image endpoint, optionally uploads source/reference images and a PNG mask for edits, downloads the returned image assets, and writes request/response/summary evidence in the requested output directory.

Codex chat commands

Users operate this Skill from Codex chat. Do not require them to open Terminal or paste an API Key into the conversation.

text
$image-proxy status
$image-proxy dry-run --prompt "<final prompt>" --size 2k --quality hd
$image-proxy generate --prompt "<final prompt>" --size 2k --quality hd
$image-proxy edit --prompt "<final prompt>" --image <attached-or-local-image> --mask <optional-png-mask>
$image-proxy sync
  • status resolves only non-secret local provider state.
  • dry-run, generate, and edit are Codex intents. Codex runs the deterministic scripts internally and returns the output/evidence; the user should not be sent to a shell.
  • A Web-managed installation automatically pulls and applies the current user's sellerpilot-image configuration before every real third-party request. If the shared device session is missing, the tool opens the Marqel Web approval flow, waits for the current user to approve it, and resumes the same configuration pull automatically. Dry-runs stay network-free and never trigger configuration delivery.
  • sync is a troubleshooting/recovery intent only. Do not make the user copy or paste this command as part of initial setup or normal use.

Scope and boundaries

  • Use only when the user explicitly selects this skill or a third-party image provider.
  • Use the configured endpoint and model exactly. The default profile is ThinkAI at https://www.thinkai.tv/v1 with gpt-image-2; this is a default, not a claim that the provider is available or that the API key is configured.
  • Never silently fall back to native Codex image generation, another provider, or a guessed endpoint.
  • Never print, echo, commit, or include an API key in prompts, request snapshots, progress files, summaries, or diagnostics. Prefer environment variables or masked local entry through the interactive configurator.
  • A Marqel-managed installation may store the user-scoped delivered key in the dedicated local provider file protected by mode 600 or a Windows user-only ACL. Never copy that key into another config, environment file, command, or report.
  • This skill does not perform product fact extraction, platform research, buyer-facing copy strategy, identity/physics/marketing QA, tldraw review, publishing, uploading, or platform operations. It is intentionally independent from any ecommerce production skill.
  • A successful provider response proves only that the provider returned decodable image bytes. It does not prove product identity, visual quality, platform compliance, or commercial performance.

Execution workflow

  1. Treat the user’s prompt as the provider request. If the prompt contains unsupported product facts, safety claims, or exact text that must be reliable, stop and resolve those facts before calling the provider.

  2. For a managed package, every non-dry-run request invokes scripts/sync-marqel-provider.mjs automatically before provider transport. The script discovers marqel-control-center-auth beside this Skill in the same user-level Skill root, starts Web device approval automatically when no reusable session exists, and retries the pull after approval. The user must only review and approve the device in Web; never ask them to copy a Base URL, API Key, Token, config JSON, device code, or sync command. Use scripts/sync-marqel-provider.mjs --force only when the user explicitly asks for troubleshooting or recovery. Missing/revoked authorization, inactive membership, incomplete Web configuration, or a failed refresh must stop before contacting the Provider; never use a stale Web-managed key after sync failure.

  3. Resolve the local provider status without exposing secrets:

    bash
    node scripts/resolve-provider.mjs

    status: ready means a key is available to this local process. configuration_required means configuration is needed; it is not permission to switch providers. The managed installer checks this status independently from the SellerPilot main Skill; one ready consumer is not evidence that the other received the same delivery.

  4. For a standalone, non-Marqel installation only, configure the provider once when needed. Keep the user inside Codex: interpret $image-proxy configure by opening the masked OS dialog through the interactive configurator. Environment variables remain an internal CI option, not a user-facing setup requirement:

    bash
    export THINKAI_IMAGE_API_KEY="<key>"

    For a persistent local configuration, pass the key over stdin or use the masked OS dialog. The config file is stored under the Codex home in the standalone skill namespace and is written with mode 600:

    bash
    printf '%s\n' '<key>' | node scripts/configure-image-provider.mjs --api-key-stdin
    node scripts/configure-image-provider-interactive.mjs

    Do not put a real key in shell history, chat, or a committed file. Use --base-url, --model, --name, and --api-key-env only for an explicitly selected compatible provider.

  5. Run a dry-run before the first real request or whenever the endpoint/model/size changes. A dry-run writes request.json and summary.json and never calls the network:

    bash
    node scripts/openai-compatible-image-runtime.mjs \
      --prompt "<final prompt>" \
      --output-dir /abs/output \
      --size 2k \
      --quality hd \
      --dry-run
  6. Execute generation or edit only after the dry-run request is correct:

    bash
    node scripts/openai-compatible-image-runtime.mjs \
      --prompt "<final prompt>" \
      --output-dir /abs/output \
      --size 2k \
      --quality hd \
      --progress-file /abs/output/progress.json

    Add --image /abs/source.png once per source/reference image to use /images/edits; add --mask /abs/mask.png for a PNG edit mask. Use --n N for multiple provider outputs. The runtime accepts 1k, 2k, 4k, or an explicit WIDTHxHEIGHT size.

  7. Read summary.json, check that status is generated, and verify the listed image files exist and are decodable. Keep request.json, response.json, summary.json, and progress.json with the run when an audit trail is useful. If a request fails, preserve the output directory and retry only after changing the provider-visible evidence or fixing the reported configuration/transport issue.

Provider configuration and paths

Use the path helper before giving installation or configuration instructions on a different operating system:

bash
node scripts/codex-path-info.mjs

The default configuration location is:

  • The installed Skill uses the single user-level Skill root selected by the host/managed installer (current default .agents/skills; an existing legacy managed root remains supported). Auth is always discovered as a sibling in that same root; never install or synchronize into two roots.
  • macOS/Linux provider config: $CODEX_HOME/image-proxy/image-provider.json; when CODEX_HOME is unset, Codex uses ~/.codex.
  • Windows provider config: %CODEX_HOME%\image-proxy\image-provider.json; when unset, Codex uses %USERPROFILE%\.codex.

The runtime also accepts --config /abs/config.json. A config may be either the standalone shape written by the configurator:

json
{
  "provider_mode": "third_party_proxy",
  "third_party": {
    "enabled": true,
    "name": "ThinkAI",
    "base_url": "https://www.thinkai.tv/v1",
    "model": "gpt-image-2",
    "api_key_env": "THINKAI_IMAGE_API_KEY"
  }
}

or a flat object with base_url, model, api_key_env, and optional api_key. Keep api_key out of version control; an environment variable is preferred.

For a Web-managed package, scripts/sync-marqel-provider.mjs maps only the authenticated user's effective sellerpilot-image delivery into this same file. It records non-secret _marqel delivery revision/digest metadata, acknowledges applied only after an atomic secure write, and replaces a removed/incomplete managed delivery with a disabled keyless record. The upstream API Key never enters the Skill package, Web page/DOM, chat, logs, or installation report.

Resources

  • Read references/provider-contract.md when adapting the endpoint, debugging a response shape, or deciding whether a source image should be sent as an edit input.
  • Run npm run verify from this skill directory for a network-free smoke test. It checks frontmatter, scripts, generation/edit dry-runs, secure configuration plumbing, custom-provider resolution, and masked configuration behavior.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Image Proxy AI skill do?

Generate or edit raster images through an explicitly configured OpenAI-compatible third-party image provider, including ThinkAI by default, with dry-run request snapshots, source-image and mask uploads, progress files, secure local key configuration, and downloaded output verification. Use when the user asks to use a third-party image proxy, ThinkAI, an OpenAI-compatible image endpoint, or the image-proxy skill; do not use it for native Codex image generation or a full ecommerce production workflow.

Why use Image Proxy on TypingMind?

Because you install it once and use it with any model. Image Proxy is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Proxy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ninemouth/sellerpilot-product-image-industrial/tree/main/standalone/image-proxy. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Image Proxy?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Proxy?

As many as you like. As long as a model supports skills, you can use Image Proxy with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Proxy AI skill free?

Yes. It is published on GitHub by ninemouth under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇