Using ask-question CLI

Query ChatGPT from the command line using a headless Playwright browser session.

1|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/johnnymo87/chatgpt-relay --skill using-ask-question-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Using ask-question CLI
Source: https://github.com/johnnymo87/chatgpt-relay/tree/main/.claude/skills/using-ask-question-cli
Command: npx skills add https://github.com/johnnymo87/chatgpt-relay --skill using-ask-question-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates querying ChatGPT from the command line by driving a headless Playwright browser session. It eliminates the friction of switching to a browser for quick prompts and enables integration with Claude's /ask-question slash command.

Core Features & Use Cases

  • Headless CLI access: Run prompts from the terminal without opening a visible browser.
  • Slash Command Integration: Seamlessly connect with Claude's /ask-question workflow to draft and submit prompts.
  • Deterministic Interactions: Maintain a session for faster responses and repeatable results across prompts.

Quick Start

Install dependencies and prepare the environment:

  • Install Node.js, then run npm install and npm link in the repository root.
  • Run ask-question-login to authenticate to ChatGPT.
  • Start the daemon with ask-question-server and keep it running in a dedicated terminal. Example usage:
  • Direct prompt: ask-question "What is the capital of France?"
  • From file: ask-question -f question.md -o answer.md
  • Pipe input: echo "Explain async/await in JavaScript" | ask-question