How to Use Cosmos collection details in opencode
Get a public Cosmos collection's name, description, cover, owner, post count, follower count, and public subcollections. Use it to catalog a moodboard or compare collection counts; fetching the saved posts requires a separate endpoint.
Prompts to try with Cosmos collection details in opencode
Copy an example into opencode, or ask in your own words.
Use Cosmos collection details for https://www.cosmos.so/design/the-best-band-posters and add its title, description, and post count to the project's reference index.
Use Cosmos collection details for https://www.cosmos.so/design/the-best-band-posters and create a TypeScript type from the returned collection data.
Use Cosmos collection details for https://www.cosmos.so/design/the-best-band-posters and compare its post and follower counts with the last saved response in this project.
Use Cosmos collection details for https://www.cosmos.so/design/the-best-band-posters and add its public subcollections to the project's research outline if any are returned.
Use Cosmos collection details for https://www.cosmos.so/design/the-best-band-posters and check whether the title and description in our reference directory need updating.
How to set up Cosmos collection details in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Cosmos collection details
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", "input": { "url": "https://www.cosmos.so/design/the-best-band-posters" } }'
Then paste one of the prompts above: opencode finds Cosmos collection details on Spiral, shows the price and runs it.
Cosmos collection details providers and prices
Spiral runs Cosmos collection details through ScrapeCreators. Open a card for today's price, with every fee included.
What can you do with Cosmos collection details in opencode?
Build a reference index from public Cosmos collection titles, descriptions, and counts. A coding agent can add those results to project data and compare them with earlier responses.
Build a moodboard reference index
Turn selected public collection links into an index of titles, descriptions, owners, and post counts for a design research project.
Prepare a creative research brief
Summarize a public collection's stated subject and size before deciding whether to review its saved posts for a poster, editorial, or branding project.
Map public subcollections
List the public subcollections returned for a moodboard to help a designer choose a narrower research direction.
Compare collection size over time
Compare post counts from successive responses to identify net growth or shrinkage in a selected public design collection.
Compare collection following
Compare follower counts across selected public design collections to prioritize which boards to review for an inspiration roundup.
Review reference directory entries
Compare returned collection titles and descriptions against an existing reference directory to identify entries that need editorial updates.
More on Cosmos collection details and opencode
Cosmos collection details in other agents
Questions about Cosmos collection details in opencode
Can opencode use Cosmos collection details?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Cosmos collection details like any built-in tool.
How much does Cosmos collection details 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 details in opencode?
No. Spiral runs Cosmos collection details 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 details in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Cosmos collection details runs?
Cosmos collection details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What does a Cosmos collection details response contain?
It contains collection metadata: name, description, cover image, owner, post count, follower count, and public subcollections.
Can it return private Cosmos collections?
The endpoint covers public collections. Cosmos supports private collections, so public collection data cannot represent everything an account has saved.
Does the response include every saved post?
Collection details provides the post count and collection metadata. Saved posts are retrieved through the separate Cosmos Collection Posts endpoint, which uses cursor pagination.
Does Cosmos cap collection size?
Cosmos says there is no cap on elements, saves, or collections. That is a platform storage policy, not a guarantee that an API call returns every saved element.
Can I reuse images from public Cosmos collections?
Public visibility does not grant reuse rights. Cosmos requires explicit permission from the creator or rights holder for use, reproduction, or distribution beyond personal inspiration.
Start using Cosmos collection details in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


