[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [EUR-Lex Official Journal publications](https://spiral.ai/integrations/opencode/eur-lex-official-journal-publications)

# How to Use EUR-Lex Official Journal publications in opencode

Returns acts published in the Official Journal on a selected date, with titles and publication references. Use it to review a day's legislation or information notices and identify documents for further reading.

|  |  |
| --- | --- |
| Model | EUR-Lex Official Journal publications |
| 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 EUR-Lex Official Journal publications in opencode

- Use EUR-Lex Official Journal publications for May 4, 2016, and build a table in this project showing the returned titles and publication references.
- Use EUR-Lex Official Journal publications to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from EUR-Lex Official Journal publications and tell me what changed since last week.
- Check EUR-Lex Official Journal publications and summarize what you find in three bullet points.
- Pull the newest data from EUR-Lex Official Journal publications and give me the result as a table.

## How to set up EUR-Lex Official Journal publications 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 EUR-Lex Official Journal publications**: 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": "eu-institutions-law-eur-lex-official/law/official_journal",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: opencode finds EUR-Lex Official Journal publications on Spiral, shows the price and runs it.

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

## EUR-Lex Official Journal publications tools and prices

- [EU law and public tenders · Official journal](https://spiral.ai/tools/alexandria/eu-institutions-law-eur-lex-official/law/official_journal) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| date |  | — | Publication date YYYY-MM-DD (default today, UTC). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| limit | 1 to 500 | 100 | limit |
| offset | 0 to 10000 | 0 | offset |
| series | L, C, all | all | L = legislation, C = information and notices. |
| language |  | en | ISO 639-1 code of an official EU language for titles. |

## What can you do with EUR-Lex Official Journal publications in opencode?

Build a research view that connects EU publications, act records, provisions, and national implementation references. Use CELEX to keep documents aligned across language versions.

### Build a regulatory research workspace

Collect title matches, act details, relevant provisions, publication references, and notified national measures into a research view organized by CELEX.

### Reconstruct a directive's publication and implementation history

Find the directive, inspect its dates, read the relevant articles, review its publication-day entries, and assemble the national measures reported for it.

### Maintain a directive watchlist

Review new publication entries and title matches, revisit tracked act records and text, and compare reported national measures with previous results.

### Prepare an EU policy newsletter

Select relevant Official Journal entries, find related legislation, confirm document details, and read the provisions behind each proposed newsletter item.

### Create a publication reference archive

Organize selected Official Journal dates and subject searches into an archive containing act references, detailed records, and readable document text.

## Overview

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

## EUR-Lex Official Journal publications in other agents

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

## More opencode guides

- [Data.gov.au table records](https://spiral.ai/integrations/opencode/data-gov-au-table-records)
- [EUR-Lex legal act details](https://spiral.ai/integrations/opencode/eur-lex-legal-act-details)
- [Data.gov.au resource details](https://spiral.ai/integrations/opencode/data-gov-au-resource-details)
- [EUR-Lex legal act full text](https://spiral.ai/integrations/opencode/eur-lex-legal-act-full-text)
- [Data.gov.au publisher directory](https://spiral.ai/integrations/opencode/data-gov-au-publisher-directory)
- [EUR-Lex legislation title search](https://spiral.ai/integrations/opencode/eur-lex-legislation-title-search)

## Questions about EUR-Lex Official Journal publications in opencode

**Can opencode use EUR-Lex Official Journal publications?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run EUR-Lex Official Journal publications like any built-in tool.

**How much does EUR-Lex Official Journal publications 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 EUR-Lex Official Journal publications in opencode?**

No. Spiral runs EUR-Lex Official Journal publications on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up EUR-Lex Official Journal publications in opencode?**

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

**Does opencode wait while EUR-Lex Official Journal publications runs?**

EUR-Lex Official Journal publications runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How far back does EUR-Lex's Official Journal archive go?**

EUR-Lex holds electronic versions of all Official Journals back to December 30, 1952. That is the archive's starting point, rather than a guarantee that every historical document exists in every current EU language.

**How quickly does newly published legislation appear?**

EUR-Lex updates daily, but full legal and bibliographic information for a newly published act can take up to two working days. A publication can therefore appear before its detailed metadata is complete.

**Does the same act have a different identifier in each language?**

CELEX identifies the document regardless of language. Use that identifier to keep references to the same act together when working across EUR-Lex's 24 official EU languages.

**Does EUR-Lex include the text of every national implementing measure?**

No. Its national transposition collection includes measure titles, but the corresponding national texts are available only where provided.

**Is the readable web text the authentic Official Journal?**

The HTML presentation is informational and is not authentic. Since October 1, 2023, each act is published individually as an authentic Official Journal PDF.

