How to Use Semantic Scholar paper references in opencode
Returns papers cited in a selected paper's bibliography, with citation context where available. Use it to trace earlier methods and background sources before following later citations.
Prompts to try with Semantic Scholar paper references in opencode
Copy an example into opencode, or ask in your own words.
Use Semantic Scholar paper references for ARXIV:2005.11401 and add its returned bibliography to docs/rag-reading.md, including citation passages where available.
Use Semantic Scholar paper references to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Semantic Scholar paper references and tell me what changed since last week.
Check Semantic Scholar paper references and summarize what you find in three bullet points.
Pull the newest data from Semantic Scholar paper references and give me the result as a table.
How to set up Semantic Scholar paper references 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 Semantic Scholar paper references
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": "alexandria", "model": "semanticscholar-org/papers/get_references", "input": { "paper_id": "<paper_id>" } }'
Then paste one of the prompts above: opencode finds Semantic Scholar paper references on Spiral, shows the price and runs it.
Semantic Scholar paper references providers and prices
Spiral runs Semantic Scholar paper references through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 100 | 25 | Items per page (1-100, default 25). |
Every API field of Semantic Scholar · Get references is on its tool page: open its card above.
What can you do with Semantic Scholar paper references in opencode?
Build a research bibliography beside the code that implements a method, with Semantic Scholar records supporting each reading candidate. A coding agent can turn paper metadata and research connections into project documentation and comparison tables.
Prepare a literature review
Start with a topic search, resolve cited titles, collect paper records, and expand through references, citations, and recommendations. Use author records and publication lists to check attribution and find additional work for screening.
Update a survey bibliography
Resolve the survey's existing citations, retrieve their records, and look for subsequent citations and related papers. Search the topic and cited authors' publications to propose additions, with author metrics providing corpus context.
Map a paper's research context
Resolve a starting title, collect its bibliography and citing papers, and add recommendations as separate reading candidates. Retrieve the resulting paper records to create a map with clear citation directions.
Maintain a research topic bulletin
Repeat a topic search and check citations, author publications, and recommendations for reading candidates. Inspect their records and references to explain why each addition belongs in the bulletin.
Compare methods before implementation
Find papers for competing approaches and assemble their bibliographic records and available abstracts. Follow references, subsequent citations, and recommendations to build a reading queue for evaluating the methods.
Build an annotated seminar reading list
Combine topic searches, known titles, citation trails, and recommendations into a reading shortlist. Add paper details and author publication context so participants can see the bibliography behind each selection.
More on Semantic Scholar paper references and opencode
Overview
Semantic Scholar paper references in other agents
Questions about Semantic Scholar paper references in opencode
Can opencode use Semantic Scholar paper references?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Semantic Scholar paper references like any built-in tool.
How much does Semantic Scholar paper references cost in opencode?
$0.00873 per call. 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 an Alexandria account to use Semantic Scholar paper references in opencode?
No. Spiral runs Semantic Scholar paper references on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Semantic Scholar paper references in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Semantic Scholar paper references runs?
Semantic Scholar paper references runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does Semantic Scholar cover every kind of research publication?
Its corpus spans all fields of science, with academic articles and preprints as the primary focus. Book coverage is limited, and patents are excluded from the scholarly corpus described in its citation-count documentation.
Where does Semantic Scholar get its papers?
It combines web indexing with partnerships involving scientific journals, indexes, and content providers. Its documented sources include PubMed, arXiv, and Springer Nature.
How fresh is Semantic Scholar's data?
Semantic Scholar says it adds content daily, which can change citation counts as additional papers enter the corpus. That describes corpus additions, rather than a guaranteed daily refresh of every record.
Why do Semantic Scholar's citation counts differ from other sources?
Counts depend on the citing papers discoverable in its own corpus. Its limited book coverage and exclusion of patents mean the counted material can differ from another scholarly index.
Does a publication date always mean the paper first appeared online?
Semantic Scholar may display either the print date or the online date, depending on the metadata supplied by its source.
Start using Semantic Scholar paper references 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


