[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Open Targets drugs](https://spiral.ai/integrations/gemini-cli/open-targets-drugs)

# How to Use Open Targets drugs in Gemini CLI

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.

|  |  |
| --- | --- |
| Model | Open Targets drugs |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Open Targets drugs in Gemini CLI

- 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.
- 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 Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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.

```bash
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.

```bash
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: Gemini CLI finds Open Targets drugs on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## Open Targets drugs tools and prices

- [Open Targets Platform · List drugs](https://spiral.ai/tools/alexandria/platform-opentargets-org/drugs/list_drugs) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 100 | 25 | Rows per page, 1 to 100. |
| cursor |  | — | `next_cursor` from the previous page. Repeat the same inputs and `limit` with it. Pattern: ^[0-9]+$. |
| target |  | — | Target: an HGNC symbol (`BRAF`), Ensembl gene ID (`ENSG00000157764`), UniProt accession (`P15056`), previous symbol, synonym (`HER2`, `p53`), approved name, or a platform.opentargets.org target page URL. Ambiguous synonyms fail as invalid_input naming the candidates. |
| disease |  | — | Disease or phenotype: an ontology ID (`MONDO_0004979`, `EFO_0000270`, `EFO:0000270`, `HP_0002099`, `Orphanet_558`), an exact name or exact synonym (`asthma`, `T2DM`), or a platform.opentargets.org disease page URL. Retired EFO IDs follow to their replacement with a `disease_replaced` warning; other names fail as not_found listing the closest matches (use `search_diseases` to browse). |
| min_stage | PHASE_1, PHASE_2, PHASE_3, APPROVAL | — | Only drugs at this stage or later; PHASE_3 includes PREAPPROVAL, PHASE_2 includes PHASE_2_3, PHASE_1 includes PHASE_1_2. |

## What can you do with Open Targets drugs in Gemini CLI?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## Open Targets drugs in other agents

- [Amp](https://spiral.ai/integrations/amp/open-targets-drugs)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/open-targets-drugs)
- [Claude](https://spiral.ai/integrations/claude-desktop/open-targets-drugs)
- [Claude Code](https://spiral.ai/integrations/claude-code/open-targets-drugs)
- [Cline](https://spiral.ai/integrations/cline/open-targets-drugs)
- [Codex](https://spiral.ai/integrations/codex/open-targets-drugs)
- [Cursor](https://spiral.ai/integrations/cursor/open-targets-drugs)
- [Devin](https://spiral.ai/integrations/devin/open-targets-drugs)
- [dots](https://spiral.ai/integrations/dots/open-targets-drugs)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/open-targets-drugs)
- [Gemini](https://spiral.ai/integrations/gemini/open-targets-drugs)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/open-targets-drugs)
- [goose](https://spiral.ai/integrations/goose/open-targets-drugs)
- [Grok](https://spiral.ai/integrations/grok/open-targets-drugs)
- [Grok Build](https://spiral.ai/integrations/grok-build/open-targets-drugs)
- [Hermes](https://spiral.ai/integrations/hermes/open-targets-drugs)
- [Instinct](https://spiral.ai/integrations/instinct/open-targets-drugs)
- [Manus](https://spiral.ai/integrations/manus/open-targets-drugs)
- [Muse](https://spiral.ai/integrations/muse/open-targets-drugs)
- [Muse Code](https://spiral.ai/integrations/muse-code/open-targets-drugs)
- [n8n](https://spiral.ai/integrations/n8n/open-targets-drugs)
- [Notion](https://spiral.ai/integrations/notion/open-targets-drugs)
- [OpenClaw](https://spiral.ai/integrations/openclaw/open-targets-drugs)
- [opencode](https://spiral.ai/integrations/opencode/open-targets-drugs)
- [Perplexity](https://spiral.ai/integrations/perplexity/open-targets-drugs)
- [Raycast](https://spiral.ai/integrations/raycast/open-targets-drugs)
- [VS Code](https://spiral.ai/integrations/vscode/open-targets-drugs)
- [Windsurf](https://spiral.ai/integrations/windsurf/open-targets-drugs)
- [Zapier](https://spiral.ai/integrations/zapier/open-targets-drugs)

## More Gemini CLI guides

- [Open Targets disease search](https://spiral.ai/integrations/gemini-cli/open-targets-disease-search)
- [Open Targets target profile](https://spiral.ai/integrations/gemini-cli/open-targets-target-profile)
- [NIH RePORTER grant search](https://spiral.ai/integrations/gemini-cli/nih-reporter-grant-search)
- [Open Targets target-disease associations](https://spiral.ai/integrations/gemini-cli/open-targets-target-disease-associations)
- [NIH RePORTER grant publications](https://spiral.ai/integrations/gemini-cli/nih-reporter-grant-publications)
- [Open Targets target-disease evidence](https://spiral.ai/integrations/gemini-cli/open-targets-target-disease-evidence)

## Questions about Open Targets drugs in Gemini CLI

**Can Gemini CLI use Open Targets drugs?**

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

**How much does Open Targets drugs cost in Gemini CLI?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need an Alexandria account to use Open Targets drugs in Gemini CLI?**

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 Gemini CLI?**

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

**Does Gemini CLI wait while Open Targets drugs runs?**

Open Targets drugs runs in the background. Gemini CLI 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.

