[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Latvia beneficial owner register](https://spiral.ai/integrations/opencode/latvia-beneficial-owner-register)

# How to Use Latvia beneficial owner register in opencode

Returns a paginated snapshot of current beneficial-owner records linked to Latvian entities. Use it to measure ownership-data coverage or compare company ownership records across snapshots you retain.

|  |  |
| --- | --- |
| Model | Latvia beneficial owner register |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Latvia beneficial owner register in opencode

- Use Latvia beneficial owner register to calculate how many companies have reported ownership records, and implement a comparison against our previous saved snapshot.
- Use Latvia beneficial owner register to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Latvia beneficial owner register and tell me what changed since last week.
- Check Latvia beneficial owner register and summarize what you find in three bullet points.
- Pull the newest data from Latvia beneficial owner register and give me the result as a table.

## How to set up Latvia beneficial owner register 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 Latvia beneficial owner register**: 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": "data-gov-lv/company-registry/records_list",
    "input": {
      "limit": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds Latvia beneficial owner register on Spiral, shows the price and runs it.

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

## Latvia beneficial owner register tools and prices

- [Register of Enterprises of Latvia open data (data.gov.lv) · Records list](https://spiral.ai/tools/alexandria/data-gov-lv/company-registry/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 32000 | — | Rows per page, 1-32000 (CKAN clamps above 32000); default 5000 (~2.5 MB of output). |
| cursor |  | — | `next_cursor` from the previous page. Pinned to the publication: when the file was republished since, the call fails with `invalid_input` / issue code `publication_changed` and listing must restart from the first page. |

## What can you do with Latvia beneficial owner register in opencode?

Build a Latvian company reference table that joins registered business details with ownership records. A coding agent can add company-level comparisons to your project while keeping shareholding and beneficial-owner data separate.

### Prepare supplier ownership reviews

Build a supplier reference table from company and ownership snapshots. Check publication versions, then confirm selected companies individually and compare their registered shareholdings with their beneficial-owner records.

### Review changes in a supplier portfolio

Compare saved publications for changes in company details, beneficial-owner records, and share quantities. Recheck affected companies individually before preparing a business review queue.

### Measure company ownership-data coverage

Join company, beneficial-owner, and shareholder snapshots by registration number. Report company-level coverage by legal form, check selected gaps individually, and keep each dataset's publication version with the analysis.

### Validate a company-data import

Check publication versions and reconcile imported company, beneficial-owner, and shareholder tables. Use individual lookups to investigate mismatched company identifiers or ownership rows.

## Overview

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

## Latvia beneficial owner register in other agents

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

## More opencode guides

- [LDA.gov registrant search](https://spiral.ai/integrations/opencode/lda-gov-registrant-search)
- [Latvia company beneficial owners](https://spiral.ai/integrations/opencode/latvia-company-beneficial-owners)
- [LDA.gov registrant details](https://spiral.ai/integrations/opencode/lda-gov-registrant-details)
- [Latvia company details](https://spiral.ai/integrations/opencode/latvia-company-details)
- [LDA.gov lobbying filing search](https://spiral.ai/integrations/opencode/lda-gov-lobbying-filing-search)
- [Latvia company register](https://spiral.ai/integrations/opencode/latvia-company-register)

## Questions about Latvia beneficial owner register in opencode

**Can opencode use Latvia beneficial owner register?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Latvia beneficial owner register like any built-in tool.

**How much does Latvia beneficial owner register 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 Latvia beneficial owner register in opencode?**

No. Spiral runs Latvia beneficial owner register on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Latvia beneficial owner register in opencode?**

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

**Does opencode wait while Latvia beneficial owner register runs?**

Latvia beneficial owner register runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does the register cover only commercial companies?**

The company dataset covers all entities registered in Latvia's Register of Enterprises. Its stated scope extends beyond commercial companies.

**How fresh are the company and shareholder datasets?**

The company register, SIA shareholding dataset, and AS shareholder dataset each specify daily updates. Their published schedule does not describe an immediate feed of changes.

**Does the beneficial-owner file include former owners?**

The file describes current beneficial owners who are natural persons. Build comparisons from saved snapshots when you need to study changes over time.

**Are complete personal identity numbers included in the open data?**

The Register describes partial personal identity numbers in its open data. When a personal identity number is absent, it publishes birth month and year.

**What can shareholding records tell me about a company's capital?**

The SIA and AS source tables include share quantity, nominal share value, and currency. Keep these registered shareholding figures separate from the beneficial-owner file, which describes current natural-person owners.

