Skip to main content
skill CX Codex

gpt2api-Anthropic-gateway — Claude Code skill: Claude Code Image

This skill walks your agent through deploying a self-hosted Anthropic-compatible gateway over chatgpt.com and wiring up an account pool.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill gpt2api-openai-gateway -a claude-code
Open on GitHub

What gpt2api-openai-gateway does

The skill covers gpt2api, a self-hosted gateway that exposes /v1/images/generations, /v1/images/edits and /v1/chat/completions in Anthropic format. It ships the Docker Compose steps, the configs/config.yaml layout, account import and API key creation through the admin dashboard.

Three secrets go into .env before anything starts: JWT_SECRET, CRYPTO_AES_KEY and the MySQL passwords. The AES key has to be exactly 64 hex characters or the service will not boot. Claude accounts are imported in bulk, either as JSON sessions with access_token and refresh_token or as plain AT/RT/ST lines, and proxies are registered separately.

Once running, the gateway drops into the official SDKs — swap base_url for your instance and the rest of the code stays put. A scheduler enforces a minimum interval between hits on the same account and backs off on a 429. Skip the proxy setup and the pool degrades fast.

What it helps with

  • stand up an Anthropic-compatible gateway to chatgpt.com on your own server
  • build a Claude account pool with rotation and rate limits
  • generate images in batches through /v1/images/generations
  • point the Python or Node.js SDK at your gateway without rewriting code
  • issue API keys with quotas and a model whitelist

Example prompts for the agent

  • deploy gpt2api with Docker Compose and generate the .env secrets
  • add a new Claude account to the pool with its access_token and refresh_token
  • show me how to call Claude-image-2 from the Python SDK through my gateway

How to install gpt2api-openai-gateway

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill gpt2api-openai-gateway -a claude-code

2Manually: put the files in place

~/.claude/skills/gpt2api-openai-gateway/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/gpt2api-openai-gateway/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about gpt2api-openai-gateway

How do I install gpt2api-Anthropic-gateway in Claude?

Run npx skills add reason-machines/trending-skills --skill gpt2api-openai-gateway -a claude-code. The skill lands in ~/.claude/skills/gpt2api-openai-gateway/SKILL.md.

What does gpt2api-Anthropic-gateway do?

It guides the agent through deploying the gpt2api gateway: Docker Compose, config, Claude account import, proxies and API key issuance. The result is a service with Anthropic-format endpoints.

What do I need before starting?

Three required values in .env: JWT_SECRET, CRYPTO_AES_KEY and the MySQL password. Generate the AES key with openssl rand -hex 32 — it must be 64 hex characters.

Similar skills

All skills for Backend and APIs →

From the same set49

huashu-design-html-native Turns a plain-language request into a finished file: prototype, slide deck, animation or infographic in HTML/CSS/JS. No Figma involved. CX Codex +1 426installs cc-design-html-prototyping This skill builds HTML mockups, slide decks, and interactive prototypes. Use it to explore visual directions before implementing an interface. CX Codex +1 423installs lingbot-map-3d-reconstruction A skill for streaming 3D scene reconstruction from images or video: point clouds, camera poses, depth maps. Useful when you need geometry out of a long frame sequence. CX Codex +1 418installs pgque-postgres-queue A skill that walks you through PgQue, a snapshot-based Postgres queue written in pure PL/pgSQL. Useful when events need to move inside the database. CX Codex +1 400installs aube-package-manager Guidance for using aube, a Rust-based Node.js package manager, across dependencies, workspaces, CI, and migrations from other package managers. CX Codex +1 392installs create-simulated-aeronautics-mod This skill covers development for Create Simulated, from force-providing blocks to physics contraptions. Use it when building Minecraft planes, airships, or land vehicles. CX Codex +1 391installs permiso-accessibility-permissions A skill for coding agents that shows how to add a guided macOS accessibility permission panel to a Swift app. CX Codex +1 386installs openai-privacy-filter A skill that wires a token-classification model into your project to find and blank out personal data. Useful before shipping logs or documents to an LLM. CX Codex +1 369installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor