Back to directory

agentx

An unofficial X (Twitter) client for autonomous agents, written in Go as a single binary and library, that signs in with a personal account's cookies and prints one JSON object per command.

agentx

agentx is a Go library and command-line client for X (Twitter) built for autonomous agents rather than people. Every command prints a single predictable JSON envelope with an ok flag, the result data, pagination and rate-limit information, so a calling agent can check success, read the result and page through it without parsing HTML.

It authenticates through a personal account's browser cookies and works to keep the auth_token cookie from expiring by generating X's own transaction-id header, sending a full browser-like header set, and optionally matching a Chrome TLS fingerprint over HTTP/2. It covers reading feeds, search, users, posts, threads, lists, communities and notifications; writing posts, replies, polls, likes, follows and scheduled tweets; Grok text answers and image generation; and direct messages, with several accounts managed at once.

It is written in Go, distributed as a single binary, and released under the MIT license.

More in CLI tools

See all 181
  • grev

    github.com

    A set of Unix coreutils-style filters — grep, sort, cut and more — that answer a plain-language question about each record instead of matching a pattern, using a small decision model.

  • A Node.js script that exports a Google Doc to HTML and CSS with high fidelity, preserving headings, spacing, alignment, bullet lists, images and right-to-left text.

  • gpusched

    github.com

    A VRAM-aware GPU job scheduler for a single machine: declare how much memory each shell command needs, and it places jobs the moment a GPU has room and reports when a guess was wrong.