x-integration

x-integration is a skill for Claude Code, Codex from crypdick/pynchy. It costs 38 tokens per session (765 once invoked), scanned A, original, MIT.

A browser-automation integration for X, formerly called Twitter, that can publish posts and interact with existing posts after a person logs in once.

In plain words
What is it for?
Use it to post, like, reply, retweet, or quote posts on X through an automated browser session.
Why use it?
It removes the need to perform routine X actions manually, while still requiring a human for the initial login, CAPTCHA, or two-factor authentication.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/crypdick/pynchy/x-integration
Any agent
npx skills add crypdick/pynchy --skill x-integration
Clone the repo
git clone --depth 1 https://github.com/crypdick/pynchy

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for x-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/crypdick/pynchy/x-integration.svg)](https://agentmods.dev/skills/crypdick/pynchy/x-integration)
Your own site
<a href="https://agentmods.dev/skills/crypdick/pynchy/x-integration"><img src="https://agentmods.dev/badge/skills/crypdick/pynchy/x-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.00765
Opus 5 $0.00019 $0.00382
Sonnet 5 $0.00008 $0.00153
Haiku 4.5 $0.00004 $0.00076

Measured 3d ago against content hash 57aeb671b9f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

x-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/pynchy/plugins/integrations/x_integration/skills/x-integration/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

X (Twitter) Integration

Automate X/Twitter actions via Playwright browser automation, persistent Chromium profile.

System requirements

Need system Chrome/Chromium binary — CHROME_PATH must be set in .env (e.g. CHROME_PATH=/usr/bin/google-chrome-stable). Playwright bundled Chromium not used — X fingerprint as bot.

All X tools run headed mode (not headless) — X detect + block headless browsers. Headless servers need Xvfb (apt install xvfb).

Interactive login via setup_x_session also need VNC (apt install x11vnc novnc).

How it works

Playwright drive system Chrome binary (via CHROME_PATH) with persistent browser contexts. After one manual login (human do CAPTCHA / 2FA), next actions run auto from saved session. All tools use headed mode + anti-detection flags to dodge X bot fingerprinting.

First-time setup (requires human)

Human must log in once before any X action:

setup_x_session()

Opens visible Chromium window at X login page. Human do login flow. Session saved for future auto use.

On headless server (no X display), tool auto-starts Xvfb + noVNC on port 6080. Before call setup_x_session, tell human open http://<server>:6080/vnc.html?autoconnect=true in browser.

Hardware security keys (YubiKey, FIDO2): noVNC cannot forward WebAuthn challenges — key must physically connect to machine running browser. If X login need hardware key, run setup_x_session on local machine with key attached, then rsync profile to server:

rsync -az data/playwright-profiles/x/ server:path/to/pynchy/data/playwright-profiles/x/

Tools

setup_x_session(timeout_seconds=120)

Launch headed browser for manual X login. Saves session to persistent profile for future use.

  • timeout_seconds — wait time for login completion (default: 120s)

x_post(content)

Post tweet. Content 1–280 chars.

x_like(tweet_url)

Like tweet. Accepts full URL (https://x.com/user/status/123) or bare tweet ID.

x_reply(tweet_url, content)

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 78 lines · 38 tokens per session scan A 57aeb671b9f9

Subscribe to this mod's changes

x-integration is a skill published in the GitHub repository crypdick/pynchy (10 stars, last pushed 9d ago), licensed MIT. It adds 38 tokens to every session and 765 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-browser

Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data, and test web pages. Use whenever a browser would be useful, not just when the user explicitly asks.

nanocoai/nanoclaw · 51 tokens

p5js

Production pipeline for interactive and generative visual art using p5.js. Creates browser-based sketches, generative art, data visualizations, interactive experiences, 3D scenes, audio-reactive visuals, and motion graphics — exported as HTML, PNG, GIF, MP4, or SVG. Covers: 2D/3D rendering, noise and particle systems…

moltis-org/moltis · 152 tokens

data-sync

Sync and archive data from messaging platforms (WhatsApp, Discord, Slack, Twitter/X, Google) into Moltis memory as daily digest summaries. Orchestrates crawl tools and writes structured markdown to the memory system.

moltis-org/moltis · 46 tokens

tmux

Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

moltis-org/moltis · 22 tokens

add-dial-tool

Give chosen NanoClaw agents a real phone number as a container tool — the dial CLI baked into the agent image plus OneCLI credential injection for api.getdial.ai, scoped per agent, so the agents you pick can send SMS, place AI voice calls, and receive verification codes from inside the sandbox. Independent of the Dial…

nanocoai/nanoclaw · 117 tokens

slack-agent-flow

Let an existing Slack agent create new agents that arrive as their own Slack bots — provisioned app, operator DM, and a shared three-way room, hot-started without a host restart.

nanocoai/nanoclaw · 43 tokens