# docs / cli
g2x — tweet from your terminal
Post to X without opening the feed. Part of your Pro plan: 50 text + 5 link tweets a month, on top of your daily auto-posted cards.
Prefer your AI editor? Use git-to-x via MCP in Cursor / Claude Code →
1 · Install
npm i -g git-to-x
Needs Node 18+.
Run g2x in your integrated terminal — not the AI chat panel.
2 · Log in (once)
g2x login
Opens your browser — click Approve. Your terminal is now linked to your git-to-x account. No X API keys ever touch your machine.
3 · Tweet
g2x "shipped dark mode 🌙"
Whatever is inside the quotes is the tweet — exactly as typed, untouched. After each post you see what's left:
▸ posted · 43 text · 5 link left this month
Check your quota
g2x status
Rules of the road
- · Tweets with links (http/https/www) use your 5 link slots.
- · Quota is checked server-side before posting — you can't overshoot.
- · Revoke terminal access anytime from Settings.
- · CLI posting is a Pro/trial feature.