[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Legistar government bodies](https://spiral.ai/integrations/opencode/legistar-government-bodies)

# How to Use Legistar government bodies in opencode

Returns the councils, committees, boards, and departments a jurisdiction tracks, with body types and active status. Use it to identify the right government body before researching its legislation or meetings.

|  |  |
| --- | --- |
| Model | Legistar government bodies |
| 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 Legistar government bodies in opencode

- Use Legistar government bodies to retrieve Seattle's active bodies and add a searchable council and committee directory to this project.
- Use Legistar government bodies to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Legistar government bodies and tell me what changed since last week.
- Check Legistar government bodies and summarize what you find in three bullet points.
- Pull the newest data from Legistar government bodies and give me the result as a table.

## How to set up Legistar government bodies 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 Legistar government bodies**: 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": "legistar-com/legislation/bodies",
    "input": {
      "client": "<client>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Legistar government bodies on Spiral, shows the price and runs it.

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

## Legistar government bodies tools and prices

- [Legistar council legislation and meetings · Bodies](https://spiral.ai/tools/alexandria/legistar-com/legislation/bodies) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 200 | 1 | 1-based page; has_more says whether the next page exists. |
| type |  | — | Substring of the body type name (City Council, Council Committee, Department, Board). |
| query |  | — | Substring of the body name (Planning, Land Use, Zoning, Committee). |
| page_size | 1 to 100 | 20 | Records per page, 1 to 100. |
| active_only |  | — | Only bodies flagged active. |

## What can you do with Legistar government bodies in opencode?

Build a city hall reference page that connects legislative decisions to government bodies, official roles, and meetings. A coding agent can turn Legistar's structured public records into project data and linked views.

### Prepare a public hearing briefing

Identify the responsible body and its office holders, find the proposal and supporting documents, then connect the hearing date to the relevant agenda items.

### Research a zoning proposal

Assemble a briefing that connects a rezoning file, its action history, the reviewing boards, official roles, and the meetings where it was considered.

### Explain a municipal budget decision

Find budget legislation and attachments, identify the council or finance committee and its office holders, and link the proposal's progress to meeting actions.

### Write a weekly city hall digest

Combine legislative developments and meeting records with a short explanation of which government bodies and official roles are involved.

### Build a public committee directory

List government bodies, their published office holders and term dates, and the meetings associated with each body.

## Overview

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

## Legistar government bodies in other agents

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

## More opencode guides

- [Justice Laws section text](https://spiral.ai/integrations/opencode/justice-laws-section-text)
- [Legistar legislation details](https://spiral.ai/integrations/opencode/legistar-legislation-details)
- [Justice Laws legislation versions](https://spiral.ai/integrations/opencode/justice-laws-legislation-versions)
- [Legistar legislation search](https://spiral.ai/integrations/opencode/legistar-legislation-search)
- [Justice Laws legislation search](https://spiral.ai/integrations/opencode/justice-laws-legislation-search)
- [Legistar meeting agenda](https://spiral.ai/integrations/opencode/legistar-meeting-agenda)

## Questions about Legistar government bodies in opencode

**Can opencode use Legistar government bodies?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Legistar government bodies like any built-in tool.

**How much does Legistar government bodies 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 Legistar government bodies in opencode?**

No. Spiral runs Legistar government bodies on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Legistar government bodies in opencode?**

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

**Does opencode wait while Legistar government bodies runs?**

Legistar government bodies runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Legistar cover every US local government?**

The source covers hundreds of US city and county Legistar portals. Its coverage is tied to those jurisdictional portals, rather than a single nationwide legislative register.

**Can I retrieve unpublished government records?**

Public read responses are limited to records marked public and available through Legistar's InSite website. Internal records outside that publication boundary are excluded.

**How many records can the underlying source return?**

Legistar documents a limit of 1,000 responses per query reply, with pagination for additional results. That is the underlying source's limit.

**What identifies a record's original jurisdiction?**

The provider includes public-record attribution naming the client jurisdiction and the record's original source URL.

**Are a proposal's introduction and passage dates the same thing?**

Legistar stores introduction, agenda, and passage dates separately. A dated legislative record therefore needs to be interpreted according to the particular milestone it describes.

