Repository navigation
Highlights
Major release consolidating 30 community PRs, 21 issue fixes, and x.com resilience updates (#106), plus April 2026 API schema and cursor pagination improvements since v0.8.5.
X.com Resilience & Security
- ClientTransaction bootstrap fix: Authenticates against
https://x.com/homewith fallback to unauthenticatedhttps://x.com/i/jf/(working around X's strippedx-webshell) without leaking session cookies to CDN script fetches. - Query ID resilience: Refreshed
FALLBACK_QUERY_IDS, added 24h owner-only disk cache (~/.twitter-cli/query_ids_cache.json),TWITTER_QID_<OP>overrides, and automatic retry on stale query IDs (HTTP 404/422,Query: Unspecified,PersistedQueryNotFound). - Fail-closed unsigned mutations: Blocks unsigned GraphQL
POSTmutations unlessTWITTER_ALLOW_UNSIGNED=1is set; preferschrome136TLS impersonation. - Dependencies & permissions: Upgraded
curl_cffi>=0.15.0(fixes GHSA-qw2m-4pqf-rmpp / CVE-2026-33752) andxclienttransaction>=1.0.3; enforced owner-only (0o700/0o600) atomic cache files.
Authentication
- Added
TWITTER_COOKIE_STRINGenv var for full browserCookie:headers. - Added
TWITTER_CHROMIUM_USER_DATA_DIR, Vivaldi, and Zen browser cookie extraction (macOS / Linux / Flatpak / Windows). - Improved Windows Chrome/Edge >=127 App-Bound Encryption diagnostics.
CLI, Config & Publishing
- Video & long-form publishing: Chunked video upload (
--video/-Vonpost,reply,quote, MP4/MOV/WebM up to 512 MB), twitter-text v3 weighted length + automaticCreateNoteTweetrouting for Premium long-form posts (>280 weighted chars), andtwitter article-publish <file.md> --title ... [--draft]. - New commands:
twitter news,twitter doctor [--refresh], andtwitter completion bash|zsh|fish. - Pagination, time & config: Cursor pagination for feed (#49), lists (#56), tweets, and bookmarks;
--maxhonors explicit values up to 10,000;--time relative|absolute|iso; user config at~/.twitter-cli/config.yaml.
Rich Metadata, Articles & Python API
- Python library API: Public exports from
twitter_cli(TwitterClient,get_cookies,load_config,filter_tweets, models, exceptions, serializers). - Richer tweet/user/media data: Author follower/following counts,
viewerFollowing/viewerFollowedBy, sensitivity/content warnings, mediaposterUrl/altText/durationMs, thread reply/conversation IDs, numeric user ID routing (UserByRestId), andTweetDetailfocal-tweet validation. - Articles: Inline hyperlinks (#44), inline images (#38), atomic markdown blocks (#37),
MARKDOWN/DIVIDER/TWEETblocks, and subscriber-only tweet detection (#33).
Full Changelog: v0.8.5...v0.9.0