[Integrations](https://spiral.ai/integrations) › [OpenClaw](https://spiral.ai/integrations/openclaw) › [GitHub repository search](https://spiral.ai/integrations/openclaw/github-repository-search)

# How to Use GitHub repository search in OpenClaw

Returns matching public repositories with descriptions, owners, languages, stars, forks, and activity timestamps. Use it to find projects and compare candidates before reading their security disclosures.

|  |  |
| --- | --- |
| Model | GitHub repository search |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GitHub repository search in OpenClaw

- Every Monday, use GitHub repository search for public repositories owned by rust-lang. Summarize changes in the returned projects' stars, forks, and activity timestamps.
- Every Monday at 9am: use GitHub repository search to look this up and give me the result as a table.
- Pull the latest numbers from GitHub repository search and tell me what changed since last week.
- Check GitHub repository search and summarize what you find in three bullet points.
- Pull the newest data from GitHub repository search and give me the result as a table.

## How to set up GitHub repository search in OpenClaw

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

### Use the Spiral skill

1. **Send OpenClaw 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 the server**: On the machine that runs OpenClaw's Gateway:

```bash
openclaw mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --transport streamable-http \
  --auth oauth
```

2. **Sign in**: In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

```bash
openclaw mcp login spiral
```

3. **Reload and check**: A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

```bash
openclaw mcp reload
openclaw mcp doctor spiral --probe
```

### 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 GitHub repository 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": "alexandria",
    "model": "github-com/repositories/search_repos",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: OpenClaw finds GitHub repository search on Spiral, shows the price and runs it.

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

## GitHub repository search tools and prices

- [GitHub · Search repos](https://spiral.ai/tools/alexandria/github-com/repositories/search_repos) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100 | 1 | page |
| sort | best_match, stars, forks, help_wanted_issues, updated | best_match | sort |
| order | asc, desc | desc | order |
| per_page | 1 to 100 | 10 | per_page |

## What can you do with GitHub repository search in OpenClaw?

Produce a recurring brief on selected GitHub projects or organizations. A scheduled agent can compare retrieved records over time and summarize changes in public project data or security disclosures.

### Build a dependency shortlist

Find candidate organizations, inspect their public profiles, compare repositories, and read both project disclosures and package advisories before choosing a dependency.

### Prepare a migration decision

Compare replacement projects, identify their publishing organizations, and summarize known vulnerabilities and available fixes alongside repository activity.

### Review a vendor's public software

Locate a vendor's GitHub organization, document its public profile and repositories, and examine disclosures for the projects and packages under consideration.

### Write a project research brief

Resolve an organization's GitHub account, describe its public projects, and explain relevant repository disclosures and package vulnerabilities with links to the records.

### Map an organization's public projects

Find organization accounts, inspect their public descriptions and websites, and collect matching repositories into a project directory.

### Compare public project activity

Compare repository descriptions, languages, stars, forks, and activity timestamps, with organization profiles providing context for ownership.

## Overview

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

## GitHub repository search in other agents

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

## More OpenClaw guides

- [GitHub repository labels](https://spiral.ai/integrations/openclaw/github-repository-labels)
- [GitHub repository security advisories](https://spiral.ai/integrations/openclaw/github-repository-security-advisories)
- [GitHub repository issues](https://spiral.ai/integrations/openclaw/github-repository-issues)
- [GitHub security advisory](https://spiral.ai/integrations/openclaw/github-security-advisory)
- [GitHub repository issue counts](https://spiral.ai/integrations/openclaw/github-repository-issue-counts)
- [GitHub security advisory search](https://spiral.ai/integrations/openclaw/github-security-advisory-search)

## Questions about GitHub repository search in OpenClaw

**Can OpenClaw use GitHub repository search?**

Yes. Add Spiral to OpenClaw as an MCP server, and OpenClaw can find and run GitHub repository search like any built-in tool.

**How much does GitHub repository search cost in OpenClaw?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your OpenClaw plan is separate.

**Do I need an Alexandria account to use GitHub repository search in OpenClaw?**

No. Spiral runs GitHub repository search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GitHub repository search in OpenClaw?**

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

**Does OpenClaw wait while GitHub repository search runs?**

GitHub repository search runs in the background. OpenClaw starts the run, checks on it and gives you the json when it's ready.

**Are forks included in GitHub repository searches?**

Forks are excluded by default. GitHub supports including forks alongside original repositories or searching only forks.

**Which security disclosures are public?**

Anyone can read a published advisory on a public repository. Unpublished advisory discussions require access to that disclosure.

**What does GitHub-reviewed mean?**

GitHub checks reviewed advisories for validity and maps them to packages in supported ecosystems. Unreviewed advisories are imported automatically from the National Vulnerability Database feed.

**How quickly do repository disclosures reach the Advisory Database?**

GitHub says the review and publication process can take up to 72 hours. A repository's published advisory can therefore appear before its reviewed database record.

**Can I reuse GitHub Advisory Database records?**

The Advisory Database uses CC BY 4.0. Reuse requires appropriate credit, a license link, and an indication of changes; GitHub's API terms also prohibit collecting data for spam or selling users' personal information.

