[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [V-Dem indicator search](https://spiral.ai/integrations/opencode/v-dem-indicator-search)

# How to Use V-Dem indicator search in opencode

Finds codebook indicators and indices by topic, name, or tag. Use it to choose measures for a research question before reading their definitions and retrieving observations.

|  |  |
| --- | --- |
| Model | V-Dem indicator search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with V-Dem indicator search in opencode

- Use V-Dem indicator search to find judicial independence measures and save a shortlist of their tags and names in the project's research notes.
- Use V-Dem indicator search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from V-Dem indicator search and tell me what changed since last week.
- Check V-Dem indicator search and summarize what you find in three bullet points.
- Pull the newest data from V-Dem indicator search and give me the result as a table.

## How to set up V-Dem indicator search 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.

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

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

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

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run V-Dem indicator search**: 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": "v-dem-net/democracy/variables",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: opencode finds V-Dem indicator search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## V-Dem indicator search tools and prices

- [V-Dem · Variables](https://spiral.ai/tools/alexandria/v-dem-net/democracy/variables) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Case-insensitive match on tag, name or question text. Omit to list. |
| cursor |  | — | Opaque cursor from a previous page's next_cursor (format o<offset>). null or omitted starts at the first page. |
| section |  | — | Thematic section substring, e.g. Elections, Civil Liberties, Judiciary, Liberal Democracy Index. |
| version |  | v16 | Dataset release to pin, e.g. v16. Live observations are served for the current release only (v16, March 2026); variable metadata can be filtered for any release via the codebook's data-release line. Pattern: ^v?[0-9]{1,2}$. |
| page_size | 1 to 2000 | 50 | page_size |
| index_level | high, mid, indicator, other, null | — | index_level |

## What can you do with V-Dem indicator search in opencode?

Build a documented democracy research table with V-Dem country coverage, measure definitions, and observations. A coding agent can connect those results to the project's analysis files and produce charts whose labels explain the measures used.

### Write a country democracy brief

Build a brief for Brazil with country coverage, selected indicator definitions, annual scores, and regime transformation episodes. Include the dataset release and citation so readers can check the evidence.

### Prepare a comparative research panel

Assemble a country-year panel for Poland, Hungary, and Czechia. Check country coverage, select and document measures, attach transformation episodes, and identify the release used for the analysis.

### Create a comparative politics lesson

Prepare an exercise comparing Spain and Portugal. Give students country coverage, candidate measures, codebook definitions, score series, episode records, and source citations to support their conclusions.

### Refresh an annual governance report

Check the latest release, confirm the countries and measures used in the report, and rebuild its score tables and transformation timelines. Review definitions before describing differences from the previous edition.

### Choose measures for a media freedom study

Find media-related indicators, read their questions and scales, and retrieve observations for India and South Africa. Document why each selected measure fits the research question.

### Document a dataset choice

Compare the available V-Dem releases and reference links, find relevant indicators, and read their definitions before deciding which measures belong in a study.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## V-Dem indicator search in other agents

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

## More opencode guides

- [V-Dem indicator definition](https://spiral.ai/integrations/opencode/v-dem-indicator-definition)
- [V-Dem regime transformation episodes](https://spiral.ai/integrations/opencode/v-dem-regime-transformation-episodes)
- [V-Dem democracy scores](https://spiral.ai/integrations/opencode/v-dem-democracy-scores)
- [WHO health dimension codes](https://spiral.ai/integrations/opencode/who-health-dimension-codes)
- [V-Dem dataset releases](https://spiral.ai/integrations/opencode/v-dem-dataset-releases)
- [WHO health indicator catalog](https://spiral.ai/integrations/opencode/who-health-indicator-catalog)

## Questions about V-Dem indicator search in opencode

**Can opencode use V-Dem indicator search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run V-Dem indicator search like any built-in tool.

**How much does V-Dem indicator search 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 V-Dem indicator search in opencode?**

No. Spiral runs V-Dem indicator search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up V-Dem indicator search in opencode?**

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

**Does opencode wait while V-Dem indicator search runs?**

V-Dem indicator search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How recent is the V-Dem data?**

V-Dem updates annually. Dataset v16 was released in March 2026 and covers observations through the end of 2025, so it does not describe developments during 2026.

**Does every country have an uninterrupted historical series?**

No. Some countries are coded before independence, and some have gaps in their coding periods. Historical entities also appear in the coverage table, including Baden and Bavaria for 1789 through 1871.

**Can I compare scores from different releases?**

V-Dem warns that comparing absolute index values across releases can be misleading. Use observations from one release when comparing countries or years.

**What do the uncertainty bounds mean?**

For measurement-model estimates, the lower and upper bounds enclose 68 percent of the posterior probability mass. They express uncertainty around the estimated country-year score.

**What kinds of democracy does V-Dem measure?**

V-Dem distinguishes electoral, liberal, participatory, deliberative, and egalitarian democracy. Choose the principle that matches your question rather than treating every democracy index as interchangeable.

