Skip to content

Show HN: Crossmind-CLI – CLI for X, Reddit, HN API with compact JSON output

github.com/cross-mind
2 pointsnovachen1 comment
On HN

A CLI for fetching data from social platforms (X, Reddit, HN, GitHub, LinkedIn, Product Hunt, etc.) with compressed JSON output. Built because raw GraphQL responses from X are ~3,900 tokens for 10 tweets — this gets it down to ~666 tokens.

Features: - 15+ platforms supported - Three-tier auth (public API -> cookie -> OAuth) - Structured output designed for LLM context efficiency - Handles X's rotating query IDs and x-client-transaction-id

Built on top of jackwener's opencli/twitter-cli/rdt-cli ecosystem. Open source, PRs welcome.

Comments

We built this because raw X API responses were costing us ~3,900 tokens per 10 tweets. The official API pricing made autonomous social agents economically unviable.

cookie-auth + compact JSON gets it to ~666 tokens (-83%). This is what powers CrossMind's AI agent for distribution.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.