[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [AER directive details](https://spiral.ai/integrations/opencode/aer-directive-details)

# How to Use AER directive details in opencode

Returns a directive’s release and effective dates, PDF link, purpose text, and announcing bulletin reference. Use it to identify the published edition and locate the requirements behind an announcement.

|  |  |
| --- | --- |
| Model | AER directive details |
| 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 AER directive details in opencode

- Use AER directive details for Directive 017 and update our reference record with its release date, effective date, purpose, and PDF link.
- Use AER directive details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from AER directive details and tell me what changed since last week.
- Check AER directive details and summarize what you find in three bullet points.
- Pull the newest data from AER directive details and give me the result as a table.

## How to set up AER directive 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 AER directive 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": "aer-ca/energy-regulator-decisions-directives-notices/get_directive",
    "input": {
      "number": "<number>"
    }
  }'
```

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

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

## AER directive details tools and prices

- [Alberta Energy Regulator (aer.ca) · Get directive](https://spiral.ai/tools/alexandria/aer-ca/energy-regulator-decisions-directives-notices/get_directive) (Alexandria): $0.00873 per call.

## What can you do with AER directive details in opencode?

Build a searchable register of Alberta application records and regulatory publications in your project. A coding agent can connect application numbers, directive references, dates, and source links to your existing review screens.

### Prepare a project review

Assemble an Alberta project's application notice and published decision, then find relevant directives and the bulletins announcing their revisions. Give reviewers a dated source list and distinguish the proposed activity from the recorded outcome.

### Build an acquisition diligence file

Review public application notices and decisions for an Alberta operator alongside relevant regulatory publications. Organize the evidence by application number and directive number for the transaction team's review.

### Prepare a municipal briefing

Explain proposed energy activity and recorded application outcomes near an Alberta municipality. Add the relevant directive descriptions and regulatory announcements so readers can follow both the project record and its regulatory context.

### Check a regulatory research report

Verify a report's cited application numbers, decision outcomes, directive editions, and bulletin announcements against the published records. Locate missing references through publication listings and website search.

### Review directive changes

Find recent bulletins on a regulatory topic, read their announcements, and retrieve the referenced directive editions and effective dates. Prepare a source-linked reading list for the operations team.

### Find consultation background

Search a directive number to locate draft consultation material and related publications. Read the directive's purpose and announcing bulletin alongside those results before drafting review questions.

## Overview

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

## AER directive details in other agents

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

## More opencode guides

- [AER bulletin](https://spiral.ai/integrations/opencode/aer-bulletin)
- [AER publication listings](https://spiral.ai/integrations/opencode/aer-publication-listings)
- [AER application notice](https://spiral.ai/integrations/opencode/aer-application-notice)
- [AER website search](https://spiral.ai/integrations/opencode/aer-website-search)
- [AER application decision](https://spiral.ai/integrations/opencode/aer-application-decision)
- [Alberta Gazette issue list](https://spiral.ai/integrations/opencode/alberta-gazette-issue-list)

## Questions about AER directive details in opencode

**Can opencode use AER directive details?**

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

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

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

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

**Does opencode wait while AER directive details runs?**

AER directive details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What area do these AER records cover?**

These records concern Alberta energy regulation. AER directives set requirements and processes for energy companies operating in Alberta.

**How much application history does the notice tool cover?**

The AER describes Public Notice of Application as covering applications filed in the last 30 days. It should not be treated as a complete historical application archive.

**Does an AER bulletin establish a new requirement?**

A bulletin may announce a requirement, but it does not establish one. Check the referenced directive for the published requirements and processes.

**Does a directive result include the full directive PDF text?**

The documented response includes landing-page purpose text and a PDF link. Use that link when you need the directive's detailed sections rather than its landing-page description.

**Can website search find consultation documents?**

Yes. The documented search results include a PDF titled “What We Heard” about draft Directive 056, so results can include consultation material as well as directive pages.

