---
title: "Xcli: reconstructing an X GraphQL terminal client"
url: https://awesomerea.org/resources/xcli-x-graphql-case/
updated: 2026-11-08
type: resource
---

# Xcli: reconstructing an X GraphQL terminal client

> 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.

- Type: Case study
- Targets: Website
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-08
- Original resource: <https://github.com/k41-vibe/X-CLI>
- Primary source: <https://github.com/k41-vibe/X-CLI/blob/8445a985af5d095057613527906873fbe66e7cc9/README.md>
- Catalog page: <https://awesomerea.org/resources/xcli-x-graphql-case/>
- Record JSON: <https://awesomerea.org/resources/xcli-x-graphql-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/xcli-x-graphql-case/index.md)

## Requirements & limits

- 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.

## Primary sources

1. <https://github.com/k41-vibe/X-CLI/blob/8445a985af5d095057613527906873fbe66e7cc9/README.md>

## More in Websites

- [Hitachi MB110: mapping TV services and replacing its web portal](https://awesomerea.org/resources/hitachi-mb110-toolkit-case/index.md) · Case study
- [python-onvistabank-notifications: recovering account access through OnVistaBank’s web API](https://awesomerea.org/resources/python-onvistabank-notifications-case/index.md) · Case study
- [Buckler's Boot Camp API Notes: mapping Street Fighter 6 web data routes](https://awesomerea.org/resources/buckler-boot-camp-api-notes-case/index.md) · Case study
- [vibes-api: reconstructing vibes.ai generation APIs](https://awesomerea.org/resources/vibes-api-case/index.md) · Case study
- [ankiweb-cli: reconstructing AnkiWeb's protobuf card API](https://awesomerea.org/resources/ankiweb-cli-case/index.md) · Case study
- [aqi-liberator: decoding aqicn.org historical air-quality data](https://awesomerea.org/resources/aqi-liberator-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
