chatgpt-cli

chatgpt-cli is a skill for Claude Code, Codex from ItamarZand88/CLI-Anything-WEB. It costs 84 tokens per session (815 once invoked), scanned A, original, MIT.

A command-line interface for using ChatGPT through a terminal. It can ask questions, continue conversations, generate and download images, browse conversations, list available models, and manage OpenAI sign-in.

In plain words
What is it for?
Use it to ask ChatGPT questions, continue a conversation, generate or download images, list or view conversations, inspect available models, and log in or out.
Why use it?
It lets developers use ChatGPT-related tasks from scripts or a terminal instead of opening the ChatGPT website. It also keeps conversation and image operations accessible from command-line workflows.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/itamarzand88/cli-anything-web/chatgpt-cli
Any agent
npx skills add ItamarZand88/CLI-Anything-WEB --skill chatgpt-cli
Clone the repo
git clone --depth 1 https://github.com/ItamarZand88/CLI-Anything-WEB

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chatgpt-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/itamarzand88/cli-anything-web/chatgpt-cli.svg)](https://agentmods.dev/skills/itamarzand88/cli-anything-web/chatgpt-cli)
Your own site
<a href="https://agentmods.dev/skills/itamarzand88/cli-anything-web/chatgpt-cli"><img src="https://agentmods.dev/badge/skills/itamarzand88/cli-anything-web/chatgpt-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 815 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00084 $0.00815
Opus 5 $0.00042 $0.00407
Sonnet 5 $0.00017 $0.00163
Haiku 4.5 $0.00008 $0.00081

Measured 5d ago against content hash 23c3985ba3f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

chatgpt-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/chatgpt-cli/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cli-web-chatgpt

ChatGPT on the command line: chat, image generation, conversation browsing. Chat/image commands run a headless stealth browser (Camoufox) to pass Cloudflare; read-only commands are instant HTTP. Install: pip install "cli-web-chatgpt[auth]", then python -m camoufox fetch and playwright install chromium.

Commands

  • chat ask QUESTION — ask ChatGPT. Options: --model SLUG (see models), --conversation ID (continue a thread)
  • chat image PROMPT — generate an image. Options: --style NAME (see images styles), -o/--output PATH (save file), --conversation ID
  • conversations list — recent conversations. Options: -n/--limit N, --archived, --starred
  • conversations get CONVERSATION_ID — view a conversation's messages
  • images list — recently generated images. Options: -n/--limit N
  • images download FILE_ID -c CONVERSATION_ID — download an image. Options: -o/--output PATH
  • images styles — available image styles
  • models — available model slugs
  • me — current user profile
  • auth login / auth status / auth logout — manage authentication

Examples

# Ask a question — returns text + conversation_id for follow-ups
cli-web-chatgpt chat ask "Explain quantum computing in 3 sentences" --json

# Continue the same conversation
cli-web-chatgpt chat ask "Now give an example" --conversation <conversation_id> --json

# Generate an image and save it
cli-web-chatgpt chat image "Logo for a coffee shop" -o logo.png --json

# Browse recent conversations, then read one
cli-web-chatgpt conversations list -n 10 --json
cli-web-chatgpt conversations get 69ca710b-5ef8-8397-a242-c5123470d7f8 --json

# Re-download a previously generated image
cli-web-chatgpt images download file_00000000xxx -c <conversation_id> -o image.png --json

JSON output

Add --json for structured output: {"success": true, "data": {...}} on success, {"error": true, "code": "...", "message": "..."} on failure. chat ask data: {text, conversation_id, model}. chat image data: {file_id, download_url, conversation_id, saved_to}.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 60 lines · 84 tokens per session scan A 23c3985ba3f1

Subscribe to this mod's changes

chatgpt-cli is a skill published in the GitHub repository ItamarZand88/CLI-Anything-WEB (216 stars, last pushed 11d ago), licensed MIT. It adds 84 tokens to every session and 815 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gemini-imagegen

This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports…

aegntic/compound-engineering · 81 tokens

skill-thought-partner

Brainstorm creatively with pattern spotting and paradox hunting — use for ideation and exploration.

nyldn/claude-octopus · 22 tokens

ffmpeg

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

digitalsamba/claude-code-video-toolkit · 55 tokens

playwright-recording

Record browser interactions as video using Playwright. Use for capturing demo videos, app walkthroughs, and UI flows for Remotion videos. Triggers include recording a demo, capturing browser video, screen recording a website, or creating walkthrough footage.

digitalsamba/claude-code-video-toolkit · 53 tokens

elevenlabs

Generate AI voiceovers, sound effects, and music using ElevenLabs APIs. Use when creating audio content for videos, podcasts, or games. Triggers include generating voiceovers, narration, dialogue, sound effects from descriptions, background music, soundtrack generation, voice cloning, or any audio synthesis task.

digitalsamba/claude-code-video-toolkit · 63 tokens

sheet-music-publisher

Converts mastered audio to sheet music and creates printable songbooks. Use after mastering when the user wants sheet music or a songbook for their album.

bitwize-music-studio/claude-ai-music-skills · 36 tokens