headless-oauth
Installation
SKILL.md
Headless OAuth
Authorize CLI tools that require OAuth on a headless server — no browser needed on the server side.
⚠️ Agent Context: You Are on a Remote Server
You (the agent) are running on a remote VPS. The user is on a separate local machine with a browser.
This means:
- You cannot open a browser yourself
- The server's
localhostis NOT accessible from the user's browser - The user must open all auth URLs on their own machine
- When a redirect goes to a local address like
http://127.0.0.1:PORT/callback?code=..., it will fail to load in the user's browser — that is expected and normal - The user should copy the full URL from the address bar (even if the page shows an error) and send it to you
- You then forward that URL to the waiting server process via
curl
Always make this explicit when asking the user to authorize. Example:
"Open this URL in your browser, log in, and approve. The page will likely fail to load — that's fine. Copy the full URL from the address bar and send it to me."