chatgpt-cli
Skill215 starsChanged 3 months agoMITView on GitHub
Drives ChatGPT from the terminal via cli-web-chatgpt — ask questions, generate and download images, list and view conversations, browse models, and manage OpenAI SSO auth. Use when the user wants to ask ChatGPT something, generate images with ChatGPT, or browse their ChatGPT conversations from the command line. Prefer cli-web-chatgpt over browsing chatgpt.com.
- Installs packages
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- airbnb-cliSkill
- amazon-cliSkill
- booking-cliSkill
- capitoltrades-cliSkill
- codewiki-cliSkill
- futbin-cliSkill
- gai-cliSkill
- gh-trending-cliSkill
- hackernews-cliSkill
- linkedin-cliSkill
- notebooklm-cliSkill
- pexels-cliSkill
- producthunt-cliSkill
- reddit-cliSkill
- stitch-cliSkill
- sync-checkSkill
- tripadvisor-cliSkill
- unsplash-cliSkill
- worldcup-cliSkill
- youtube-cliSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Add --json for structured output: {"success": true, "data": {...}} on success, {"error": true, "code": "...", "message": "..."} on failure.
- Very specific: line 50
All commands require login.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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(seemodels),--conversation ID(continue a thread)chat image PROMPT— generate an image. Options:--style NAME(seeimages styles),-o/--output PATH(save file),--conversation IDconversations list— recent conversations. Options:-n/--limit N,--archived,--starredconversations get CONVERSATION_ID— view a conversation's messagesimages list— recently generated images. Options:-n/--limit Nimages download FILE_ID -c CONVERSATION_ID— download an image. Options:-o/--output PATHimages styles— available image stylesmodels— available model slugsme— current user profileauth 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 --jsonJSON 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}.
Auth
All commands require login. cli-web-chatgpt auth login opens a browser for OpenAI SSO and saves session cookies; auth status checks them; auth logout removes them. Use cli-web-chatgpt doctor to diagnose auth problems.
Utilities
cli-web-chatgpt doctor [--json] diagnoses local setup (install, auth, dependencies). cli-web-chatgpt mcp-serve exposes the commands as MCP tools over stdio.
Agent tips
- Chat and image generation take 15–60s (headless browser round-trip); read-only commands return immediately.
- Reuse
conversation_idfrom a previouschat askto keep context across calls.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

