Skip to main content

X from the command line

Search X posts, full archive. GBrain gives X, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: X and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect X

X takes a key, pasted in the browser and kept encrypted on GBrain's servers. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every X command, once X is connected
gbrainio tool help x

What GBrain can do with X

Search posts on X with the team’s own developer access, a bearer key that GBrain keeps encrypted on its servers.

gbrainio
gbrainio tool xSearch X posts, full archive.USAGE  gbrainio tool x <command> [arguments]COMMANDS  search  Search X posts  open    Open its page in the browserLEARN MORE  gbrainio tool x <command> -h  What one command takes  https://gbrain.io/docs/tools  The manualgbrainio tool x search -hSearch X postsSearch X (Twitter) posts, full archive. Supports X query syntax likefrom:handle. Returns post text, author, date, likes, views, reposts, replies,quotes, bookmarks, and a link. It cannot post or read private accounts. Meteredon this account; every call is recorded.USAGE  gbrainio tool x search <query> [flags]ARGUMENTS  <query>  X search query, e.g. from:jane_doe or a phraseFLAGS  --limit <value>        How many posts (default 20, min 10, max 100)  -w, --workspace <id>   The workspace, when this terminal reaches several  -u, --user <email>     Whose copy, when several people share a tool there  -a, --account <email>  Choose one of several connected accounts  -f, --format <kind>    json or text; text on a terminal, json piped  -d, --dry-run          Show what would run, without running itLEARN MORE  gbrainio tool x -h            Every x command  https://gbrain.io/docs/tools  The manualOver MCP this tool is x_search.
Every X command, one line each.

The page and the CLI print these from the same code, so they are what the CLI answers today.

What a terminal may do with X, and what GBrain keeps

A level for each terminal, from Off up

Each terminal reaches X at the level set for it in the browser: Off or On. A terminal reads its level and never raises it.

300 actions a day for each command

Each of X's commands stops at 300 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on X is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool x reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help x says what X is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

X from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect X in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.