# Open Scouts

> Scheduled AI scouts that search the web for you and email you when they find something

- Category: AI Productivity & Writing / News & Trend Monitoring
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/firecrawl/open-scouts
- Website: https://openscouts.firecrawl.dev
- Canonical page: https://ai-tldr.dev/tools/open-scouts/

## In short

Open Scouts is an open-source, AI-powered monitoring platform from the Firecrawl team. It sits in the News & Trend Monitoring category of the AI Productivity & Writing tools and is open-source, written in TypeScript and licensed MIT. To get started: clone and install.

## Overview

Open Scouts is an open-source, AI-powered monitoring platform from the Firecrawl team. You create "scouts" — automated tasks written as a plain-language request such as "Scout for any AI news" or "Scout for any recent Indian restaurants near me" — and each one runs on a schedule, searches the web, and notifies you when it finds what you asked for.

Behind each scout is an AI agent. When you create one, the system configures the search queries and strategy for you; on every run an OpenAI model with function calling uses Firecrawl's search and scrape tools to gather results. Every successful run produces a one-sentence summary stored with a vector embedding, and when a scout finds new results you get an HTML email alert through Resend. A "Run Now" button triggers any scout immediately instead of waiting for its schedule.

The app is a Next.js 15 / React 19 project on Supabase. A SQL dispatcher driven by pg_cron runs every minute, finds the scouts that are due and fires one HTTP request per scout via pg_net, so each scout runs in its own isolated Supabase Edge Function invocation. Supabase Auth (email/password, optional Google OAuth) and Row Level Security keep each user's scouts, executions and messages private.

## What it does

- Scouts defined in plain language, with the AI agent setting up the search queries and strategy
- Schedules from hourly to every few days or weekly, plus a Run Now button for on-demand execution
- Web search and content extraction through Firecrawl, with per-user Firecrawl API keys set in the app's Settings page
- One-sentence AI summaries with pgvector embeddings for every successful execution
- HTML email alerts via Resend, sent only when a scout finds results
- Scalable dispatcher: pg_cron + pg_net fan out each due scout to its own isolated Edge Function run

## Getting started

Self-hosting needs Node.js 18+, bun (or npm/pnpm), a Supabase project and API keys for OpenAI, Firecrawl and Resend. In the Supabase dashboard, enable the `pg_cron`, `pg_net`, `vector` and `supabase_vault` extensions before running the database setup.

1. Clone and install

```bash
git clone https://github.com/firecrawl/open-scouts
cd open-scouts
bun install
```

2. Create your environment file

   `.env.example` lists every required variable with links to where each key comes from.

```bash
cp .env.example .env
```

3. Link Supabase and set up the database

   The setup script creates the tables, Row Level Security, realtime subscriptions, vector embeddings, the pg_cron dispatcher jobs, and syncs the OpenAI, Firecrawl and Resend keys to Edge Function secrets.

```bash
bunx supabase login
bunx supabase link --project-ref <your-project-ref>
bun run setup:db
```

4. Deploy the Edge Functions

   `scout-cron` is the scout execution agent; `send-test-email` backs the Send Test Email button in Settings.

```bash
bunx supabase functions deploy scout-cron
bunx supabase functions deploy send-test-email
```

5. Run the app

   Open http://localhost:3000, sign in, add your Firecrawl API key under Settings, and type your first scout into the search box. For production, use `bun run build` then `bun start`.

```bash
bun run dev
```

## When to use it

- Get an email whenever the web turns up news on a topic you track, without checking sources yourself
- Watch for local events or places — a new restaurant, a tour date in your city — described in one sentence
- Self-host a multi-user monitoring service where each user brings their own Firecrawl API key
- Study a reference architecture for scheduled AI agents built on Supabase pg_cron, pg_net and Edge Functions
