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

opencode · Social Media

How to Use Cosmos collection posts in opencode

Get public posts saved to a specific Cosmos collection, including captions, source links, media details, and save timestamps where available. Use it to review a curated reference board or compare its contents over time.

Prompts to try with Cosmos collection posts in opencode

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

Use Cosmos collection posts for https://www.cosmos.so/design/the-best-band-posters and create a reference index in this project with the returned post IDs, captions, post links, and source links.

Cosmos collection postsopencode
Try asking
  • Use Cosmos collection posts for https://www.cosmos.so/design/words-on-cakes and add a report to this project showing image widths, heights, and calculated aspect ratios.

  • Use Cosmos collection posts for https://www.cosmos.so/design/the-best-band-posters and compare the returned post IDs with the project's previous collection snapshot. Report newly observed IDs.

  • Use Cosmos collection posts for https://www.cosmos.so/design/words-on-cakes and create a CSV in this project with each returned post's caption, creation timestamp, save timestamp, and source link.

  • Use Cosmos collection posts for https://www.cosmos.so/design/the-best-band-posters and https://www.cosmos.so/design/words-on-cakes. Add a project report listing shared post IDs and the IDs unique to each collection.

How to set up Cosmos collection 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 Cosmos collection 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": "scrapecreators",
        "model": "scrapecreators/cosmos-cluster-posts",
        "input": {
          "url": "https://www.cosmos.so/design/the-best-band-posters"
        }
      }'

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

Cosmos collection posts providers and prices

Spiral runs Cosmos collection posts through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
Cosmos · Collection Posts
scrapecreators/cosmos-cluster-posts

What can you do with Cosmos collection posts in opencode?

Build a reference index from a public Cosmos collection using post IDs, captions, source links, and media dimensions. A coding agent can add collection comparisons and aspect-ratio summaries to a project, subject to Cosmos's restrictions on automated access.

Prepare a poster reference brief

Review posts in Design's the best band posters collection and organize the returned captions and source links into a reference list for a poster design discussion.

Compare collection snapshots

With permission for automated access, compare post IDs across repeated retrievals of a public design collection and report newly observed references.

Build a source-link checklist

Extract available source links from collection posts so a researcher can inspect the referenced pages before requesting permission to reuse an image.

Review image proportions

Calculate aspect ratios from returned media dimensions and separate portrait, landscape, and square references for a layout discussion.

Find overlap between reference boards

Compare returned post IDs from two public collections to identify shared references and posts unique to each board.

Prepare a lettering discussion

Turn the returned captions and post links from Design's words on cakes collection into a reading list for a lettering workshop.

Questions about Cosmos collection posts in opencode

Can opencode use Cosmos collection posts?

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

How much does Cosmos collection posts cost in opencode?

$0.0013 per run. 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 ScrapeCreators account to use Cosmos collection posts in opencode?

No. Spiral runs Cosmos collection posts on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

How long does it take to set up Cosmos collection posts in opencode?

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

Does opencode wait while Cosmos collection posts runs?

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

Can this retrieve private Cosmos collections?

The endpoint covers public collection posts. Cosmos says private collections are visible only to their owner and invited collaborators, and the all-elements collection is private too.

How fresh are the collection contents?

ScrapeCreators says it fetches the latest available Cosmos information when a request is made. That describes a request-time fetch, not a fixed daily or weekly update schedule.

Does one response contain the entire collection?

The endpoint supports pagination, and its documented example explicitly indicates that more results remain. The example total of 46 is a collection count, not a promised number of posts per call.

Does Cosmos limit how much a collection can contain?

Cosmos says there is no cap on elements, saves, or collections. That platform policy does not specify the endpoint's page size.

Can I reuse images from a public collection?

Public visibility does not grant reuse permission. Cosmos requires explicit permission from the creator or rights holder for use, reproduction, or distribution beyond personal inspiration.

Get started

Start using Cosmos collection 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