[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Canada Gazette issues](https://spiral.ai/integrations/opencode/canada-gazette-issues)

# How to Use Canada Gazette issues in opencode

Find Canada Gazette editions by publication date, including regular and extra editions. Use the publication list to locate an issue; Part II listings also identify the registration numbers it contains.

|  |  |
| --- | --- |
| Model | Canada Gazette issues |
| 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 Canada Gazette issues in opencode

- Use Canada Gazette issues to find the available 2026 Part II editions and add their publication references to this project's research index.
- Use Canada Gazette issues to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Canada Gazette issues and tell me what changed since last week.
- Check Canada Gazette issues and summarize what you find in three bullet points.
- Pull the newest data from Canada Gazette issues and give me the result as a table.

## How to set up Canada Gazette issues 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 Canada Gazette issues**: 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": "gazette-gc-ca/legislation/list_issues",
    "input": {
      "part": "I",
      "year": 1998
    }
  }'
```

Then paste one of the prompts above: opencode finds Canada Gazette issues on Spiral, shows the price and runs it.

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

## Canada Gazette issues tools and prices

- [Canada Gazette · List issues](https://spiral.ai/tools/alexandria/gazette-gc-ca/legislation/list_issues) (Alexandria): $0.00873 per call.

## What can you do with Canada Gazette issues in opencode?

Build a searchable index of Canadian federal proposals and published instruments in your project. A coding agent can organize Gazette references by issue date and registration number, then attach document summaries for review.

### Prepare a federal regulatory briefing

Locate recent editions, review their contents, identify related consultations, and read the selected documents. Build a briefing that separates proposed changes from enacted instruments.

### Research a consultation response

Find a proposal in the consultation list, locate its publication issue, and read its proposed wording. Prepare questions and a response outline with links to the relevant Gazette documents.

### Build a sector reading list

Collect Gazette publications and consultations concerning Canadian aviation, banking, energy, or another defined sector. Review issue contents and document text to explain why each selection belongs.

### Assemble a proposal publication history

Start with an open or closed consultation, identify the original issue, and read the proposal. Search subsequent editions for related instruments and document the connections supported by their text.

### Index registered instruments

Locate Part II editions and collect their instrument titles, enabling statutes, registration numbers, and dates. Read selected documents to add a short description to a research index.

### Find historical publication references

Locate older Gazette editions and record their publication references for an archive bibliography. Identify PDF-only editions before planning document extraction.

## Overview

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

## Canada Gazette issues in other agents

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

## More opencode guides

- [Canada Gazette issue contents](https://spiral.ai/integrations/opencode/canada-gazette-issue-contents)
- [CelesTrak satellite catalog record](https://spiral.ai/integrations/opencode/celestrak-satellite-catalog-record)
- [Canada Gazette document](https://spiral.ai/integrations/opencode/canada-gazette-document)
- [CelesTrak satellite catalog search](https://spiral.ai/integrations/opencode/celestrak-satellite-catalog-search)
- [Canada Gazette consultations](https://spiral.ai/integrations/opencode/canada-gazette-consultations)
- [CelesTrak satellite group orbits](https://spiral.ai/integrations/opencode/celestrak-satellite-group-orbits)

## Questions about Canada Gazette issues in opencode

**Can opencode use Canada Gazette issues?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Canada Gazette issues like any built-in tool.

**How much does Canada Gazette issues 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 Canada Gazette issues in opencode?**

No. Spiral runs Canada Gazette issues on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Canada Gazette issues in opencode?**

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

**Does opencode wait while Canada Gazette issues runs?**

Canada Gazette issues runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What is the difference between Part I and Part II?**

Part I publishes federal notices, appointments, and proposed regulations. Part II publishes enacted regulations and other statutory instruments, including orders and proclamations.

**When does new Gazette material appear?**

Regular Part I editions become available on Fridays at 2 pm Eastern time with a Saturday publication date. Regular Part II editions appear every second Wednesday at 9 am Eastern time.

**How far back can I research Gazette publications?**

The Gazette website lists publications from 1998 onward and directs readers to Library and Archives Canada for 1841 through 1997. Its stated HTML availability is the last five years, with older editions available only as PDFs.

**Is the HTML text the official edition?**

The Gazette labels HTML editions unofficial. The official edition is the bilingual PDF, so use that edition when checking the published wording.

**What can a Part II issue index tell me?**

It lists regulations, the associated statutes, registration numbers, dates, and comments. That makes it useful for locating a particular instrument before reading its text.

