{
  "added_at": "2026-11-08",
  "category": "reconstruction-cases",
  "class": "website",
  "description_en": "Xcli implements a command-line and terminal client for X through the web app's internal GraphQL endpoints. It uses the user's browser cookies for authentication, refreshes changing query IDs and feature settings from the public JavaScript bundle, and exposes posting, timelines, search, messages and media operations. The author states that the API was reverse engineered.",
  "description_zh": "Xcli 通过 X 网页应用的内部 GraphQL 接口实现命令行和终端界面客户端。它使用用户提供的浏览器 Cookie 认证，从公开 JavaScript 包更新变化的 query ID 和功能参数，并提供发帖、时间线、搜索、私信及媒体操作。作者称该 API 是通过逆向分析获得的。",
  "entry_url": "https://awesomerea.org/resources/xcli-x-graphql-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/xcli-x-graphql-case/",
  "evidence_class": 2,
  "evidence_status": "observed",
  "evidence_url": "https://github.com/k41-vibe/X-CLI/blob/8445a985af5d095057613527906873fbe66e7cc9/README.md",
  "group": "cases",
  "id": "xcli-x-graphql-case",
  "json_url": "https://awesomerea.org/resources/xcli-x-graphql-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/xcli-x-graphql-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/xcli-x-graphql-case/index.md",
  "name": "Xcli: reconstructing an X GraphQL terminal client",
  "name_zh": "Xcli：重建 X GraphQL 终端客户端",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirements": [
    "Python 3.10 or newer and the project's listed Python dependencies.",
    "The user supplies their own X auth_token and ct0 cookies.",
    "MIT License."
  ],
  "requirements_zh": [
    "需要 Python 3.10 或更新版本及项目列出的 Python 依赖。",
    "用户需提供自己的 X auth_token 和 ct0 Cookie。",
    "采用 MIT 许可证。"
  ],
  "scope": "unknown",
  "targets": [
    "website"
  ],
  "url": "https://github.com/k41-vibe/X-CLI",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
