[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Greenhouse offices](https://spiral.ai/integrations/opencode/greenhouse-offices)

# How to Use Greenhouse offices in opencode

Returns the employer’s office structure. Use it to understand geographic hiring categories and find office labels for a focused job search.

|  |  |
| --- | --- |
| Model | Greenhouse offices |
| Available through | Alexandria |
| Category | Lead Gen |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Greenhouse offices in opencode

- Use Greenhouse offices for Discord and save its returned office structure as a readable reference in our research directory.
- Use Greenhouse offices to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Greenhouse offices and tell me what changed since last week.
- Check Greenhouse offices and summarize what you find in three bullet points.
- Pull the newest data from Greenhouse offices and give me the result as a table.

## How to set up Greenhouse offices 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 Greenhouse offices**: 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": "greenhouse-io/jobs/offices",
    "input": {
      "board_token": "<board_token>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Greenhouse offices on Spiral, shows the price and runs it.

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

## Greenhouse offices tools and prices

- [Greenhouse job boards · Offices](https://spiral.ai/tools/alexandria/greenhouse-io/jobs/offices) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A pasted Greenhouse board URL on job-boards.greenhouse.io, boards.greenhouse.io (including /embed/job_board?for=<token>) or boards-api.greenhouse.io/v1/boards/<token>; the .eu.greenhouse.io variants of those hosts (EU-hosted boards) are accepted too. Exactly one of board_token or url. Pattern: ^https?://. |
| board_token |  | — | The employer's Greenhouse board token: the slug in https://job-boards.greenhouse.io/<board_token> or boards.greenhouse.io/embed/job_board?for=<board_token> (e.g. discord, gitlab). Case-insensitive. Pattern: ^[A-Za-z0-9][A-Za-z0-9_-]{0,99}$. |

## What can you do with Greenhouse offices in opencode?

Build an employer hiring report from Greenhouse’s board information, organizational categories, and published posts. A coding agent can turn the returned data into project files for comparison and review.

### Employer hiring brief

Identify the employer, map its departments and offices, inventory advertised posts, and search for priority roles. Read selected descriptions to produce a brief with requirements and public links.

### Competitor recruiting comparison

Build comparable employer summaries from board introductions, team structures, office categories, and advertised roles. Search matching disciplines and inspect descriptions before comparing recruiting priorities.

### Campus recruiting shortlist

Introduce each employer, review its teams and locations, then search advertised posts for internships and entry-level roles. Check individual descriptions for eligibility requirements before recommending employers to students.

### Business opportunity research

Create company briefs for a recruiting agency or training business. Combine employer context, team and office maps, a posting inventory, focused searches, and role requirements to identify relevant service needs.

### Team and location taxonomy

Map employer-defined departments and offices before building reporting categories. Keep nested teams and regional office structures visible when normalizing labels across companies.

## Overview

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

## Greenhouse offices in other agents

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

## More opencode guides

- [Greenhouse job search](https://spiral.ai/integrations/opencode/greenhouse-job-search)
- [HLR Lookup mobile number status](https://spiral.ai/integrations/opencode/hlr-lookup-mobile-number-status)
- [Greenhouse job listings](https://spiral.ai/integrations/opencode/greenhouse-job-listings)
- [HLR Lookup phone carrier](https://spiral.ai/integrations/opencode/hlr-lookup-phone-carrier)
- [Greenhouse job details](https://spiral.ai/integrations/opencode/greenhouse-job-details)
- [Hunter company email search](https://spiral.ai/integrations/opencode/hunter-company-email-search)

## Questions about Greenhouse offices in opencode

**Can opencode use Greenhouse offices?**

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

**How much does Greenhouse offices 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 Greenhouse offices in opencode?**

No. Spiral runs Greenhouse offices on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Greenhouse offices in opencode?**

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

**Does opencode wait while Greenhouse offices runs?**

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

**Can I search every Greenhouse employer at once?**

These lookups work within one employer’s board. The source provides no directory of boards, so a cross-company comparison starts with known employer boards.

**Does the number of posts equal the number of jobs?**

No. A single Greenhouse job can have multiple posts, so label a board total as advertised posts rather than distinct jobs.

**Are departments and offices always a flat list?**

Greenhouse supports departments within departments and offices within offices. Preserve that hierarchy when comparing teams or regions.

**Why do employers expose different custom fields?**

Each employer chooses which custom job fields to expose through the Job Board API. Those exposed fields are publicly visible.

**What does the public job data cover?**

Greenhouse’s Job Board API covers published jobs together with employer offices and departments. It describes what an employer advertises on that board.

