Spiral gives your agent every tool with one account. Browse the tools →

opencode · Social Media

How to Use X community posts in opencode

Returns posts from a specified X community. Use it to review the community's discussion rather than its description or account roster.

Prompts to try with X community posts in opencode

Copy an example into opencode, or ask in your own words.

Use X community posts for community 1493290339532222469 and build a topic summary from the returned posts.

X community postsopencode
Try asking
  • Use X community posts to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from X community posts and tell me what changed since last week.

  • Check X community posts and summarize what you find in three bullet points.

  • Pull the newest data from X community posts and give me the result as a table.

How to set up X community posts in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run X community posts

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "tikhub",
        "model": "tikhub/twitter-web-fetch-community-timeline",
        "input": {
          "community_id": "1493290339532222469"
        }
      }'

Then paste one of the prompts above: opencode finds X community posts on Spiral, shows the price and runs it.

X community posts providers and prices

Spiral runs X community posts through TikHub. Open a card for today's price, with every fee included.

TikHubSocial Media
X (Twitter) Web · Get community timeline
tikhub/twitter-web-fetch-community-timeline

What can you do with X community posts in opencode?

Build an internal X research panel for a brand or publication. Your coding agent can add returned posts, community context, or organization checks to the project and compare them with saved observations.

Prepare an event recap

Combine public organization relationship checks, community context and rosters, list coverage and rosters, and announcement replies into an internal event report.

Assess a public community

Review its stated purpose, rules, represented organizations, discussion topics, and replies to selected posts before planning editorial participation.

Assemble sponsorship evidence

Document public partner reposts and follows alongside community context, organization representation in lists and communities, related posts, and announcement feedback.

Compare competitor publishing

Compare public business connections, repost distribution, community positioning, list representation, published discussion, and reply themes across competing brands.

Questions about X community posts in opencode

Can opencode use X community posts?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run X community posts like any built-in tool.

How much does X community posts cost in opencode?

$0.0013 per request. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a TikHub account to use X community posts in opencode?

No. Spiral runs X community posts on its own TikHub account. You sign in to Spiral once and never paste a key.

How long does it take to set up X community posts in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while X community posts runs?

X community posts runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Can TikHub retrieve private X content?

TikHub describes its X coverage as publicly available data. Protected posts and accounts fall outside that coverage and can return empty results or errors.

Can it recover deleted X posts?

Deleted posts can return empty results or errors. TikHub does not describe these endpoints as a recovery service for deleted content.

Are X handles reliable identifiers over time?

Handles can change, while numeric account and post IDs remain stable. Use numeric IDs when comparing observations over time.

Are these X endpoints read-only?

Yes. TikHub describes its X access as read-only public data access.

Does a missing result always mean the content never existed?

No. TikHub says deleted, suspended, or protected posts and accounts can produce empty results or errors.

Get started

Start using X community posts in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options