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

opencode · Health

How to Use Open Targets drugs in opencode

Open Targets drugs lists approved and investigational drugs linked to a target, a disease, or both. Use it to map a target's drug landscape or identify drugs connecting a target to a specific indication.

Prompts to try with Open Targets drugs in opencode

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

Use Open Targets drugs to retrieve the drug landscape for PCSK9 and save a CSV in this project with the returned drug names, indications, and development stages.

Open Targets drugsopencode
Try asking
  • Use Open Targets drugs to retrieve asthma drugs and build a table in this project's research report showing the returned drugs and stages.

  • Use Open Targets drugs to find drugs linked to both BRAF and melanoma, then add the results to this project's target assessment.

  • Use Open Targets drugs to compare EGFR and KRAS drug results and generate a report of shared drugs and represented indications.

  • Use Open Targets drugs to retrieve rheumatoid arthritis drugs and compare the returned results with the previous snapshot in this repository.

How to set up Open Targets drugs 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 Open Targets drugs

    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": "platform-opentargets-org/drugs/list_drugs",
        "input": {
          "limit": 25
        }
      }'

Then paste one of the prompts above: opencode finds Open Targets drugs on Spiral, shows the price and runs it.

Open Targets drugs providers and prices

Spiral runs Open Targets drugs through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
Open Targets Platform · List drugs
platform-opentargets-org/drugs/list_drugs

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10025

Rows per page, 1 to 100.

Min stagePHASE_1, PHASE_2, PHASE_3, or APPROVAL

Only drugs at this stage or later; PHASE_3 includes PREAPPROVAL, PHASE_2 includes PHASE_2_3, PHASE_1 includes PHASE_1_2.

Every API field of Open Targets Platform · List drugs is on its tool page: open its card above.

What can you do with Open Targets drugs in opencode?

Build a drug landscape table for the targets or diseases in your research project. A coding agent can turn Open Targets results into comparison files and reports of changes between releases.

Map a target's drug landscape

List drugs linked to PCSK9 and organize the returned indications and development stages into a research briefing.

Review a disease pipeline

Build an asthma drug landscape from the returned drugs and stages to guide a literature review.

Check a target within an indication

Find drugs linking IL6R to rheumatoid arthritis for a focused target assessment.

Compare targets for portfolio research

Compare the returned drug landscapes for BRAF, EGFR, and KRAS, highlighting shared drugs and differences in represented indications.

Prepare a late-stage research shortlist

Collect melanoma drugs that have reached late development or approval for closer review of their supporting evidence.

Explore indication overlap

Compare psoriasis and psoriatic arthritis results to identify drugs appearing in both indication landscapes.

Track changes between releases

Compare successive Open Targets results for a target or disease to identify added drugs, newly represented indications, and changed stages.

Questions about Open Targets drugs in opencode

Can opencode use Open Targets drugs?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Open Targets drugs like any built-in tool.

How much does Open Targets drugs 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 Open Targets drugs in opencode?

No. Spiral runs Open Targets drugs on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Open Targets drugs in opencode?

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

Does opencode wait while Open Targets drugs runs?

Open Targets drugs runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Where does Open Targets get its drug indication evidence?

It combines six sources, including ClinicalTrials.gov through AACT, two ChEMBL datasets, Therapeutic Target Database, EMA Human Medicines, and Japan's PMDA approvals. Its coverage therefore includes trial evidence and regulatory records from Europe and Japan.

How fresh is the drug data?

Open Targets publishes quarterly Platform updates. Use that cadence when planning drug landscape reviews or comparing results across releases.

Does Open Targets cover every kind of drug?

Its drug set excludes some biologic therapies, including vaccines, blood products, and cell therapies. A search cannot provide a complete treatment landscape for those categories.

Does one drug indication represent one clinical trial?

No. Open Targets consolidates clinical reports sharing the same drug and disease into one indication record, so an indication can summarize evidence from multiple reports.

Does an Approval stage establish current approval?

The maximum-stage rule can assign Approval when a supporting report describes Phase IV or Withdrawal. That makes the stage evidence that approval was reached, without establishing current authorization.

Get started

Start using Open Targets drugs 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