[Integrations](https://spiral.ai/integrations) › [Zapier](https://spiral.ai/integrations/zapier) › [Relace Search](https://spiral.ai/integrations/zapier/relace-search)

# How to Use Relace Search in Zapier

Relace Search finds the code needed to investigate bugs or plan changes. It follows multiple search paths and returns relevant code sections for a coding agent to use.

|  |  |
| --- | --- |
| Model | Relace Search |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Relace Search in Zapier

- Each morning, use Relace Search to investigate each new login issue using its supplied code excerpts. Return the relevant sections, supporting evidence, and unanswered questions.
- For each incoming checkout incident, use Relace Search to identify relevant branches in the code excerpts included with the incident. Produce a short investigation brief without claiming a fix.
- Each weekday, use Relace Search to examine the code excerpts attached to new feature requests. Identify existing behavior that the implementing developer should understand.
- For each new failing-test report, use Relace Search to compare the stated expectation with the supplied implementation and test excerpts. Point to the sections that explain the mismatch.
- Every Friday, use Relace Search to review this week's edge-case reports and their supplied code excerpts. For each report, identify the relevant conditions and any missing evidence.

## How to set up Relace Search in Zapier

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send Zapier 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 Spiral's MCP server

1. **Add an MCP Client connection**: In Zapier open Apps, click Add connection and search for MCP Client. Fill in the form:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Zapier never sees it, and you can remove it under Settings › Connected apps in the console.

3. **Run a Spiral tool in a Zap**: Add an MCP Client step to a Zap and choose the Run Tool action with your Spiral connection. Pick a tool: `discover` finds the right model for a task, `estimate_cost` prices it and `run` runs it. For example, `run` with:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Relace Search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Relace Search, prices it and runs it each time the step fires.

### 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 Relace Search**: 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": "openrouter",
    "model": "relace/relace-search",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Zapier finds Relace Search on Spiral, shows the price and runs it.

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

## Relace Search tools and prices

- [Relace: Relace Search](https://spiral.ai/tools/openrouter/relace/relace-search) (OpenRouter): Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| max_tokens | 1 to 128000 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |

## What can you do with Relace Search in Zapier?

Prepare recurring investigation briefs from incoming issue descriptions and supplied code context. Use Relace Search to select supporting sections and flag gaps for a developer to resolve.

### Find a bug's likely entry points

Use Relace Search to locate the code associated with a reported symptom and collect the sections worth investigating first.

### Trace authentication behavior

Ask Relace Search to follow authentication checks and identify the code that accepts or rejects a request.

### Scope a feature change

Use Relace Search to identify existing behavior and the code a developer should understand before adding a feature.

### Investigate an edge case

Ask Relace Search to trace empty inputs, missing values, or boundary conditions and report the relevant branches.

### Prepare a refactor

Use Relace Search to follow related code paths and collect the context needed to assess a proposed refactor.

### Build an implementation handoff

Ask Relace Search for a focused collection of relevant code sections, with reasons for including each one, before assigning implementation.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Zapier guides](https://spiral.ai/integrations/zapier)

## Relace Search in other agents

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

## More Zapier guides

- [Relace Apply 3](https://spiral.ai/integrations/zapier/relace-apply-3)
- [Ripple 65B Preview](https://spiral.ai/integrations/zapier/ripple-65b-preview)
- [Reka Flash 3](https://spiral.ai/integrations/zapier/reka-flash-3)
- [Sakana Namazu](https://spiral.ai/integrations/zapier/sakana-namazu)
- [Reka Edge](https://spiral.ai/integrations/zapier/reka-edge)
- [Schematron V2 Small](https://spiral.ai/integrations/zapier/schematron-v2-small)

## Questions about Relace Search in Zapier

**Can Zapier use Relace Search?**

Yes. Add Spiral to Zapier as an MCP server, and Zapier can find and run Relace Search like any built-in tool.

**How much does Relace Search cost in Zapier?**

Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Zapier plan is separate.

**Do I need an OpenRouter account to use Relace Search in Zapier?**

No. Spiral runs Relace Search on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Relace Search in Zapier?**

About two minutes: add an MCP Client connection, then sign in to Spiral and approve, then run a Spiral tool in a Zap.

**Does Zapier wait while Relace Search runs?**

Relace Search runs in the background. Zapier starts the run, checks on it and gives you the text, json when it's ready.

**What is Relace Search best for?**

Finding the code relevant to a bug report, behavior question, or proposed change. It gathers context that a coding agent can use for implementation.

**Does Relace Search fix the code it finds?**

Its documented role is to investigate and report relevant code. Treat the report as the starting point for implementation and testing.

**What does a search result contain?**

The documented report identifies relevant files and line ranges. Ask for an explanation of why each section matters to your question.

**How much context can Relace Search handle?**

The context window is 256,000 tokens, with up to 128,000 completion tokens. For an investigation, ask for the relevant sections and a short explanation.

**How should I phrase a code investigation?**

Describe the behavior you want to understand, including expected results and edge cases. Ask the model to trace the control flow and explain the evidence behind its findings.

