Post to X (Twitter) using the official API with OAuth 1.0a. An agent skill from sundial-org/awesome-openclaw-skills.

No licenceAuto-check passedBackend & APIs

Install X API

skills CLI
$ npx skills add sundial-org/awesome-openclaw-skills --skill x-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sundial-org/awesome-openclaw-skills x-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sundial-org/awesome-openclaw-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/x-api .claude/skills/x-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
x-api
GitHub stars
663
Token cost
~598 tokens
SKILL.md length
187 words
Files
4 (incl. scripts)
Skills in repo
362
Repo updated
First seen
Licence
None found

At a glance

Post to X (Twitter) using the official API with OAuth 1.0a. An agent skill from sundial-org/awesome-openclaw-skills.

  • Works in 3 steps: Get API Credentials → Configure Credentials → Install Dependency
  • You need to tweet
  • SKILL.md covers When to Use, Setup, Post a Tweet and Limits, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls npm and node; needs X_API_KEY and X_API_SECRET

What it does

X API is an agent skill from sundial-org/awesome-openclaw-skills. Post to X (Twitter) using the official API with OAuth 1.0a. Use when you need to tweet, post updates, or publish content. Bypasses rate limits and bot detection that affect cookie-based approaches like bird CLI.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `README.md` and `scripts/package.json`).

It sits in Backend & APIs, covering Social media posts, Social publishing and cross-posting and Rate limiting. It works with X (Twitter). The repository describes itself as: Top OpenClaw skills, with the most popular and useful ones.

When your agent uses it

  • You need to tweet
  • Publish content

Example prompts

  • “/x-api”

Requirements

  • Node.js
  • A credential in X_API_KEY
  • A credential in X_API_SECRET

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Get API Credentials
  2. Configure Credentials
  3. Install Dependency

What it can do on your machine

Read from SKILL.md and the folder at commit b80cde2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npm
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developer.x.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • X_API_KEY
    • X_API_SECRET
    • X_ACCESS_TOKEN
    • X_ACCESS_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

X API loads about 598 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 187 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~598

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 187 words (~598 tokens).

“Post to X using the official API (OAuth 1.0a).”

— opening of SKILL.md by sundial-org
name
x-api

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (scripts) in skills/x-api of sundial-org/awesome-openclaw-skills.

  • SKILL.md
  • README.md
  • scripts/package.json
  • scripts/x-post.mjs

Open the folder on GitHubat commit b80cde2

Compare with similar skills

X API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

X API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
X API this skillsundial-org/awesome-openclaw-skills663—~598Automated safety check: PassNone
X APIaffaan-m/ECC274k5 repos~1.9kAutomated safety check: WarnMIT
X Bookmarkssharbelxyz/x-bookmarks289—~2kAutomated safety check: NotesNone
Twitterapi IokaitoInfra/twitterapi-io449—~3.1kAutomated safety check: PassMIT
Xquik MCPXquik-dev/x-twitter-scraper209—~997Automated safety check: PassMIT
Olore Twikit Latestolorehq/olore103—~1.3kAutomated safety check: PassMIT

Similar skills

  • X API

    affaan-m/ECC

    X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics.

    274k GitHub starsUsed in 5 repos~1.9k tokens
    Backend & APIsAuto-check: warnings
  • X Bookmarks

    sharbelxyz/x-bookmarks

    Fetch, summarize, and manage X/Twitter bookmarks via bird CLI or X API v2.

    289 GitHub stars~2k tokensUpdated 7 mo ago
    Backend & APIsAuto-check: notes
  • Twitterapi Io

    kaitoInfra/twitterapi-io

    Official skill for twitterapi.io — query Twitter/X data (tweets, profiles, followers, advanced search, trends, spaces, communities, lists) and perform authenticated actions (post, reply, like…

    449 GitHub stars~3.1k tokensUpdated 4 mo ago
    Backend & APIsAuto-check passed
  • Xquik MCP

    Xquik-dev/x-twitter-scraper

    Connect, verify, and troubleshoot Xquik's remote MCP server.

    209 GitHub stars~997 tokensUpdated today
    Backend & APIsAuto-check passed
  • Olore Twikit Latest

    olorehq/olore

    Local twikit documentation reference (latest). An agent skill from olorehq/olore.

    103 GitHub stars~1.3k tokensUpdated today
    Writing & ContentAuto-check passed
  • Platform Strategy Sms

    blacktwist/social-media-skills

    When the user wants platform-specific tactical guidance for LinkedIn, Twitter/X, Threads, or Bluesky.

    557 GitHub stars~3.8k tokensUpdated 5 mo ago
    Writing & ContentAuto-check passed

More from sundial-org/awesome-openclaw-skills

All 362 skills in this repo
  • UI UX Pro Max

    sundial-org/awesome-openclaw-skills

    UI/UX design intelligence and implementation guidance for building polished interfaces.

    663 GitHub starsUsed in 2 repos~657 tokens
    Auto-check passed
  • Web Deploy GitHub

    sundial-org/awesome-openclaw-skills

    Create and deploy single-page static websites to GitHub Pages with autonomous workflow.

    663 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Clawd Modifier

    sundial-org/awesome-openclaw-skills

    Modify Clawd, the Claude Code mascot. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~625 tokensUpdated 7 mo ago
    Auto-check passed
  • Figma

    sundial-org/awesome-openclaw-skills

    Professional Figma design analysis and asset export. An agent skill from sundial-org/awesome-openclaw-skills.

    663 GitHub stars~1.7k tokensUpdated 7 mo ago
    Auto-check: notes
  • Edge Tts

    sundial-org/awesome-openclaw-skills

    Text-to-speech conversion using node-edge-tts npm package for generating audio from text.

    663 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Habit Flow

    sundial-org/awesome-openclaw-skills

    AI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching.

    663 GitHub stars~3.1k tokensUpdated 7 mo ago
    Auto-check passed

Works with

Questions about X API

What does X API do?

Post to X (Twitter) using the official API with OAuth 1.0a. An agent skill from sundial-org/awesome-openclaw-skills. X API is an agent skill from sundial-org/awesome-openclaw-skills.0a.

When should I use X API?

X API fits situations like: you need to tweet; publish content.

How do I install X API in Claude Code?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill x-api -a claude-code`. Or copy the skill folder (skills/x-api in sundial-org/awesome-openclaw-skills) into .claude/skills/x-api in your project. Claude Code loads it when a task matches its description.

How do I install X API in Codex?

Run `npx skills add sundial-org/awesome-openclaw-skills --skill x-api -a codex`. Or copy the skill folder (skills/x-api in sundial-org/awesome-openclaw-skills) into .agents/skills/x-api in your project. Codex loads it when a task matches its description.

Can I use X API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sundial-org/awesome-openclaw-skills --skill x-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/x-api, .gemini/skills/x-api, .github/skills/x-api and .opencode/skills/x-api in your project.

What does X API need to run?

Going by SKILL.md and its folder, X API needs JavaScript for the scripts in its folder, the command-line tools its instructions call (npm and node) and credentials named X_API_KEY, X_API_SECRET, X_ACCESS_TOKEN and X_ACCESS_SECRET. Our summary lists: Node.js; A credential in X_API_KEY; A credential in X_API_SECRET.

Does X API access the network?

SKILL.md names 1 domain. As links in the text: developer.x.com. This is read from the text; nothing was executed.

Is X API safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does X API use?

No licence was found for X API or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does X API use?

About 598 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to X API?

Skills that share tags, products or a category with X API: X API (affaan-m/ECC, 274k stars), X Bookmarks (sharbelxyz/x-bookmarks, 289 stars), Twitterapi Io (kaitoInfra/twitterapi-io, 449 stars) and Xquik MCP (Xquik-dev/x-twitter-scraper, 209 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains X API?

sundial-org (a GitHub organization) maintains it in sundial-org/awesome-openclaw-skills, which has 663 GitHub stars. The repository holds 362 skills in this directory. The repository was last updated on March 7, 2026.

Source: sundial-org/awesome-openclaw-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.