[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [New Jersey municipal permit activity](https://spiral.ai/integrations/opencode/new-jersey-municipal-permit-activity)

# How to Use New Jersey municipal permit activity in opencode

Returns municipality codes and construction activity totals, including permits, demolitions, valuation, and housing units. Use it to identify the right town or compare reported activity across municipalities.

|  |  |
| --- | --- |
| Model | New Jersey municipal permit activity |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with New Jersey municipal permit activity in opencode

- Use New Jersey municipal permit activity to compare Hoboken and Jersey City for calendar year 2025, then add a table of permit counts, construction valuation, and housing units to this project's report.
- Use New Jersey municipal permit activity to find Washington municipalities in Morris County, then add their names and municipality codes to this project's town selector.
- Use New Jersey municipal permit activity to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from New Jersey municipal permit activity and tell me what changed since last week.
- Check New Jersey municipal permit activity and summarize what you find in three bullet points.

## How to set up New Jersey municipal permit activity 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 New Jersey municipal permit activity**: 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-nj-gov/building-permits/municipalities",
    "input": {
      "comu": "<comu>"
    }
  }'
```

Then paste one of the prompts above: opencode finds New Jersey municipal permit activity on Spiral, shows the price and runs it.

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

## New Jersey municipal permit activity tools and prices

- [NJ Construction Permit Data (data.nj.gov) · Municipalities](https://spiral.ai/tools/alexandria/data-nj-gov/building-permits/municipalities) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| comu |  | — | DCA municipality code (0905 is Hoboken), from municipalities or a record's jurisdiction.comu. Pattern: ^[0-9]{4}$. |
| name |  | — | Case-insensitive substring of the municipality name (hoboken, washington). |
| sort | permits_desc, valuation_desc, housing_units_desc, name | permits_desc | Order of municipalities. |
| limit | 1 to 100 | 25 | Rows per page. |
| county |  | — | One of the 21 NJ counties, with or without County (Hudson, Cape May County). |
| cursor |  | — | next_cursor from the previous page; repeat the same filters with it. Pattern: ^[0-9]+$. |

## What can you do with New Jersey municipal permit activity in opencode?

Build a New Jersey construction report that connects municipal totals to individual permit records. Add the state's monthly reporting cycle and two-month review gap to the project's charts and explanations.

### Prepare a municipal construction brief

Compare reported permit activity across Hudson County towns, find the projects behind the busiest municipalities, and inspect selected permit records to explain the totals.

### Assess the housing construction pipeline

Compare municipal housing-unit totals, find residential permits in the towns of interest, and examine individual records before describing the pipeline as authorized housing.

### Research demolition activity

Identify municipalities reporting demolition activity, collect the relevant permits, and inspect the underlying records for a redevelopment research brief.

### Compare construction scale across towns

Rank municipalities by reported construction valuation, find the permits contributing to that activity, and inspect the largest records. Describe valuation as an applicant estimate.

### Build a monthly development newsletter

Use municipal totals to choose towns to cover, search their reported permits, and open selected records for project examples. Explain the monthly reporting cycle and recent review gap.

### Compare new construction with existing-building work

Choose municipalities with reported activity, collect permits for those towns, and inspect examples to distinguish new buildings from additions and alterations.

## Overview

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

## New Jersey municipal permit activity in other agents

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

## More opencode guides

- [New Jersey construction permit search](https://spiral.ai/integrations/opencode/new-jersey-construction-permit-search)
- [New Orleans code enforcement case details](https://spiral.ai/integrations/opencode/new-orleans-code-enforcement-case-details)
- [New Jersey construction permit details](https://spiral.ai/integrations/opencode/new-jersey-construction-permit-details)
- [New Orleans code enforcement case search](https://spiral.ai/integrations/opencode/new-orleans-code-enforcement-case-search)
- [NYC contractor permit activity](https://spiral.ai/integrations/opencode/nyc-contractor-permit-activity)
- [New Orleans contractor activity](https://spiral.ai/integrations/opencode/new-orleans-contractor-activity)

## Questions about New Jersey municipal permit activity in opencode

**Can opencode use New Jersey municipal permit activity?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run New Jersey municipal permit activity like any built-in tool.

**How much does New Jersey municipal permit activity 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 New Jersey municipal permit activity in opencode?**

No. Spiral runs New Jersey municipal permit activity on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up New Jersey municipal permit activity in opencode?**

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

**Does opencode wait while New Jersey municipal permit activity runs?**

New Jersey municipal permit activity runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How fresh is New Jersey's construction permit data?**

The dataset is processed and updated monthly. Municipalities must report by the seventh of each month, but that deadline does not guarantee publication that day.

**Does the data cover every New Jersey municipality?**

Coverage is incomplete. DCA's reporting series includes only towns that submitted monthly reports, so an absent town or missing activity should not be read as proof that no permits were issued.

**How much permit history is retained?**

The publisher says records are purged 60 months after the data was received. That retention clock uses receipt of the data, rather than the permit's issue date.

**Have the newest permits been checked?**

The publisher says permits issued in the immediately preceding two months have not been reviewed. Comparisons involving those months therefore include unreviewed records.

**Does this source include street addresses or contractor contacts?**

DCA says it does not receive property addresses, geocoding, owner names, or descriptions of the type of work. The provider also documents that DCA supplies no contractor data, so this source cannot produce a contractor contact list.

