Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/gaojiongwenv587-beep/threads-skillsnpx agentmods add skills/gaojiongwenv587-beep/threads-skills/threads-authWrote 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.
[](https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-auth)<a href="https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-auth"><img src="https://agentmods.dev/badge/skills/gaojiongwenv587-beep/threads-skills/threads-auth/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/gaojiongwenv587-beep/threads-skills/threads-auth"><img src="https://agentmods.dev/badge/skills/gaojiongwenv587-beep/threads-skills/threads-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.00905 |
| Opus 5 | $0.00042 | $0.00452 |
| Sonnet 5 | $0.00017 | $0.00181 |
| Haiku 4.5 | $0.00008 | $0.00090 |
Grade A, and why
threads-auth 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 11d 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.
What it actually says
license: MIT-0 acceptLicenseTerms: true
threads-auth — 认证管理
管理 Threads 登录状态与多账号切换。
前置条件:Chrome 必须先启动
所有命令依赖 Chrome 调试端口,使用前确认 Chrome 已运行:
# 启动 Chrome(默认端口 8666)
python scripts/chrome_launcher.py
# 已有实例时强制重启
python scripts/chrome_launcher.py --restart
Chrome 启动后会保持运行,无需每次重启。
登录说明
Threads 使用 Instagram 账号登录,Cookie 持久化在 ~/.threads/chrome-profile/,登录一次长期有效,无需重复登录。
命令
检查登录状态
python scripts/cli.py check-login
实测返回(用户名提取有时失败,以 logged_in 字段为准):
{ "logged_in": true, "username": null, "message": "已登录(用户名获取失败)" }
{ "logged_in": false, "username": null, "message": "未登录,请执行 login 命令" }
登录
python scripts/cli.py login
执行后浏览器自动打开登录页,用户在浏览器中手动输入 Instagram 账号密码完成登录,Cookie 自动保存。登录完成后用 check-login 确认。
退出 / 切换账号
python scripts/cli.py delete-cookies
清除当前账号 Cookie,执行后需重新 login。
多账号管理
每个账号使用独立的 Chrome Profile 和调试端口(从 8667 递增),账号间完全隔离。
# 添加账号(自动分配端口)
python scripts/cli.py add-account --name "work" --description "工作号"
# 列出所有账号(含端口号)
python scripts/cli.py list-accounts
# 指定账号执行任意命令
python scripts/cli.py --account work check-login
python scripts/cli.py --account work post-thread --content "..."
# 设置默认账号
python scripts/cli.py set-default-account --name "work"
# 删除账号
python scripts/cli.py remove-account --name "work"
决策逻辑
- 其他操作报错"未登录" → 先
check-login,未登录则引导执行login - 用户说"检查登录" →
check-login - 用户说"登录" →
login,提示在浏览器完成后确认 - 用户说"退出"/"切换账号" →
delete-cookies后login - 用户说"换个号操作" →
--account <name>参数,无需切换 Cookie
失败处理
| 错误 | 原因 | 处理 |
|---|---|---|
| 连接 Chrome 失败 | Chrome 未启动或端口错误 | 运行 python scripts/chrome_launcher.py |
logged_in: false |
Cookie 过期或未登录 | 执行 login |
| 登录页卡住 | 可能需要 2FA 或验证码 | 引导用户在浏览器中手动处理 |
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.
- 11d ago First seen · 111 lines · 83 tokens per session scan A 0683d4fa4300
threads-auth is a skill published in the GitHub repository gaojiongwenv587-beep/threads-skills (5 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 905 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-31.
Other skills, from other repositories
obscura
Operate and validate Obscura for JavaScript page loading, stealth browsing, anti-fingerprinting, tracker blocking, screenshots and visual comparison, CDP automation with Puppeteer or Playwright, screencasting, PDF export, MCP browser interaction, and web extraction. Use when running Obscura against deterministic…
pinchtab
Use this skill when a task needs browser automation through PinchTab: open a website, inspect interactive elements, click through flows, fill out forms, scrape page text, reuse a dedicated automation profile with user approval, export screenshots or PDFs, manage multiple browser instances, or fall back to the HTTP API…
pinchtab-mcp
Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.
browser_harness
../../SKILL.md.
Chrome
Browser automation for the user's Chrome browser. Use for browser tasks that require the user's cookies, logged-in sessions, existing tabs, extensions, or remote authenticated sites.
open-browser-use
Platform-neutral guidance for using Open Browser Use, the open-source Chrome automation stack for AI agents. Use when an agent needs to install, verify, troubleshoot, or operate Open Browser Use through its browser extension, native CLI, JavaScript SDK, Python SDK, Go SDK, or Browser Use style JSON-RPC methods; use…