Open DevTools (F12) → Application → Cookies → https://x.com
Copy the values of auth_token and ct0
2. Connect in VS Code
Click the 𝕏 icon in the activity bar to open the sidebar
Paste both cookie values and click Connect
That's it — hit Home Timeline and your feed appears as a new editor tab.
Sidebar Dashboard
Action
Description
Home Timeline
Your personalized feed
User Tweets
Any public user's tweets
Search
Keywords, hashtags, from:user, etc.
Tweet by ID
Full detail for a single post
Format
Switch between JSON and Markdown output
Hide Retweets
Toggle to filter out retweets
Load More
Paginate through results
Command Palette
All commands available via Ctrl+Shift+P / Cmd+Shift+P:
Command
X Feed: Fetch Home Timeline
Fetch your home feed
X Feed: Fetch User Tweets
Fetch a user's tweets
X Feed: Search Tweets
Search X
X Feed: Get Tweet Detail
Fetch a single tweet
X Feed: Login with Session Tokens
Connect with cookies
X Feed: Logout / Clear Tokens
Disconnect and clear stored tokens
Settings
Setting
Default
Description
xJsonFeed.tweetCount
20
Tweets per request (1–100)
xJsonFeed.outputFormat
json
Output format: json or markdown
xJsonFeed.hideRetweets
false
Hide retweets from results
xJsonFeed.autoRefreshSeconds
0
Auto-refresh interval in seconds (0 = off)
How It Works
VS Code Extension ──cookies──▶ x.com GraphQL API ──▶ Same API the web app uses
◀──JSON──── ◀──
The extension makes the same requests your browser makes when you visit x.com — using the same public bearer token, GraphQL endpoints, and your session cookies.
Disclaimer
This extension uses X's internal/undocumented API — the same one their web app uses
It may break at any time if X changes their endpoints or GraphQL query IDs
Using session cookies outside the browser may violate X's Terms of Service — use at your own risk
Your tokens are stored locally in VS Code's SecretStorage (OS keychain) and never leave your machine
Updating GraphQL Query IDs
If fetches start failing with non-auth errors, X may have rotated their query IDs:
Open x.com → DevTools → Network → filter graphql
Browse around (home, profiles, search) and note the IDs in the URLs: