chatgpt-cli

Access ChatGPT from the command line using Chrome cookies and stealth browser automation.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/wolfiesch/chatgpt-cli --skill chatgpt-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chatgpt-cli
Source: https://github.com/wolfiesch/chatgpt-cli/tree/main
Command: npx skills add https://github.com/wolfiesch/chatgpt-cli --skill chatgpt-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nodriver, camoufox, brotli, python-dotenv, pycryptodome, httpx, and includes scripts (resource) components.

What problem does it solve?

ChatGPT access from the command line by reusing Chrome session cookies and stealth browser automation, enabling quick prompts without repetitive login steps.

Core Features & Use Cases

  • GPT-5.2 thinking modes Auto, Instant, Thinking, Pro and legacy models (o3, GPT-4.5) behind a submenu for flexible AI options.
  • File and image uploads for analysis and vision tasks, plus conversation management (list, continue, export, delete, archive).
  • Custom GPT routing, memory management, code extraction, multi-format outputs, and ephemeral/project-scoped prompts for integration into shell workflows.

Quick Start

Start a chat by running python3 scripts/run.py chatgpt.py --prompt "Your question" --show-browser.

Frequently Asked Questions about chatgpt-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query ChatGPT from the command line using my existing browser session?

To query ChatGPT from the CLI, run a Python script with your prompt while the engine reuses Chrome cookies and stealth browser automation. This allows quick prompts without repetitive login steps or manual authentication.

Can I upload files and images to ChatGPT through a CLI interface?

Yes, you can upload files and images to ChatGPT through a CLI interface for analysis and vision tasks. The automation handles conversation management including listing, continuing, exporting, and deleting chats directly from the terminal.

Does this command line ChatGPT tool support legacy OpenAI models and custom GPTs?

Yes, the command line ChatGPT tool supports GPT-5.2 thinking modes like Auto and Pro, alongside legacy OpenAI models like o3 and GPT-4.5. It also includes custom GPT routing and project-context prompts for shell workflows.

Do I need a stealth browser to run ChatGPT automation from the terminal?

Yes, a stealth browser is required to run ChatGPT automation from the terminal reliably. It prevents detection blocks when interacting with the ChatGPT UI, ensuring robust error handling and resilient engine abstraction.

What is the best way to manage ephemeral ChatGPT conversations in shell workflows?

The best way to manage ephemeral ChatGPT conversations in shell workflows is using CLI tools with temporary chat options and project-scoped prompts. This enables multi-format outputs and code extraction without saving session history.