# 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 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.

Website: https://github.com/DezXBT/AgentX
