[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Latvia company details](https://spiral.ai/integrations/opencode/latvia-company-details)

# How to Use Latvia company details in opencode

Returns one Latvian company's registered name, legal form, address, and registration details. Use it to identify the business behind an ownership record or check a supplier's registered details.

|  |  |
| --- | --- |
| Model | Latvia company details |
| 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 company details in opencode

- Use Latvia company details for registration number 40003229495 and map its registered name, legal form, and address into this project's supplier schema.
- Use Latvia company details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Latvia company details and tell me what changed since last week.
- Check Latvia company details and summarize what you find in three bullet points.
- Pull the newest data from Latvia company details and give me the result as a table.

## How to set up Latvia company details 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 company details**: 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/companies_get",
    "input": {
      "company_registration_number": "<company_registration_number>"
    }
  }'
```

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

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

## Latvia company details tools and prices

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

## What can you do with Latvia company details 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.

### Compare regional business populations

Group registered entities by legal form and registered address in Riga, Liepaja, or other Latvian locations. Confirm selected company records and compare results across saved publications.

### Compare registered share quantities

Review share quantities, nominal values, and currencies for selected Latvian companies. Attach registered company details and compare saved shareholder snapshots to identify changes requiring review.

## Overview

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

## Latvia company details in other agents

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

## More opencode guides

- [Latvia company beneficial owners](https://spiral.ai/integrations/opencode/latvia-company-beneficial-owners)
- [Latvia company register](https://spiral.ai/integrations/opencode/latvia-company-register)
- [Latvia beneficial owner register](https://spiral.ai/integrations/opencode/latvia-beneficial-owner-register)
- [Latvia company shareholders](https://spiral.ai/integrations/opencode/latvia-company-shareholders)
- [LDA.gov registrant search](https://spiral.ai/integrations/opencode/lda-gov-registrant-search)
- [Latvia registry publication status](https://spiral.ai/integrations/opencode/latvia-registry-publication-status)

## Questions about Latvia company details in opencode

**Can opencode use Latvia company details?**

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

**How much does Latvia company details 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 company details in opencode?**

No. Spiral runs Latvia company details 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 company details in opencode?**

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

**Does opencode wait while Latvia company details runs?**

Latvia company details 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.

