Hacker News new | ask | show | jobs
Show HN: Crossmind-CLI – CLI for X, Reddit, HN API with compact JSON output (github.com)
2 points by novachen 85 days ago
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.

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