RepositoryTypeScriptEGEgypt
BraaMohammed

BraaMohammed/bricks

Open source Clay.com alternative that runs on your laptop. Same table, same columns: AI agents, scraping, Puppeteer, email finder, with your own keys. No credits, no $200-400/mo.

76stars
16forks
1issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: sales

#1 Repository of the week

1
TINIX TRENDING·Topic: clay

#1 Repository of the week

1
TINIX TRENDING·Topic: cold-outreach

#1 Repository of the week

Bricks 🧱

Run data enrichment and outreach automation entirely on your own machine. No monthly subscriptions, no credit systems, no data leaving your computer.

https://github.com/user-attachments/assets/7995b9ee-ab2c-4d15-b38e-6171345ee409

Most data enrichment platforms charge $200–400/month in base fees, then charge again per enrichment run in their own credit system. You also hand over your entire lead list to a cloud server just to run what is essentially a web search and an AI call.

Bricks runs the same workflows — web scraping, AI agents, browser automation, data synthesis — entirely on your own machine, using your own API keys at wholesale prices. Or run local models via Ollama for $0.


What It Does

Autonomous Web Research Agent

Give a column an instruction: "Find this company's most recent funding round and who led it."

Bricks spins up a search agent that creates queries, hits the /api/search and /api/reader backend endpoints, reads the parsed markdown of the pages, and writes the answer directly into your cell. It keeps searching until it finds something concrete.

AI Email Finder

No third-party email tool needed. The agent takes the lead's data, systematically generates likely email patterns, then validates each one through a cascade of validation APIs (Hunter → MillionVerifier → QuickEmailVerification). It returns only confirmed, deliverable emails.

Using the free tiers of the validation stack, you can find and verify roughly 2,000–3,000 emails/month at $0.

Dual-Agent Outreach System

Standard AI outreach tools use a single prompt and return a draft. This is different.

Two agents run in a loop:

  1. Writer agent — receives the lead data and your prompt, writes a message
  2. Prospect agent — receives the lead data and role-plays as that specific lead, reads the message, and critiques it

They loop — writer revises, prospect reviews — until the prospect agent approves the message. The result is outreach that has been pressure-tested against the actual persona before it ever reaches your clipboard.

You can run the writer on OpenAI and the prospect on a free local Ollama model to keep costs down.

Built-in Puppeteer Stealth Engine

Sites that block standard APIs, require JavaScript rendering, or serve different content to known scraper IPs are handled by a local Puppeteer instance running from your own machine with your own IP.

The browser pool includes stealth plugins, smart queueing, connection pooling, and human-like delays. It blocks 30+ analytics/tracker domains at the network layer so networkidle2 doesn't hang on background requests. No scraping API subscription needed.

Unified Formula Editor

Every column is programmable. Click a column header to open the Formula Editor, which supports:

  • Raw JavaScript (data cleaning, formatting, transformation)
  • Direct AI prompts
  • Puppeteer script mapping
  • Autonomous web search agents
  • AI email finder
  • Firecrawl integrations

Ollama Compatible — Almost 100% Free

Plug in any local model (Qwen, DeepSeek, Llama) via Ollama and run AI columns for $0. For search and scraping fallbacks, Bricks stacks 6 free-tier services with automatic failover — when one runs out of credits, it moves to the next automatically.

Free AI Waterfall Gateway

The backend ships an OpenAI-compatible gateway at /api/ai/v1 that waterfalls every chat completion across 6 free-tier inference providers — Ollama → Nvidia NIM → Cloudflare → OpenRouter → Google AI Studio → Groq — until one succeeds.

Rate-limited or failing providers are automatically cooled down and skipped, and each provider's exact model IDs are mapped for you (llama-3.1-8b, gpt-oss-120b, kimi-k2.6, glm-5.2, deepseek-v4-pro, …). Point any OpenAI SDK at http://localhost:3000/api/ai/v1 and get inference at $0 — no code changes needed.


Bring Your Own Keys

Bricks doesn't mark up API costs. You connect directly:

  • Groq Cloud — fast, cheap inference on Llama models
  • OpenAI / Google Gemini — plug in your own key, pay provider prices directly
  • Local Ollama — run models like DeepSeek R1 or Qwen locally, no API cost, data stays on your machine
  • Free-tier gateway providers — Nvidia NIM, OpenRouter, Cloudflare AI Workers, and Google AI Studio all have usable free tiers; the backend's AI waterfall chains them together so one exhausted quota never stops a run

Getting Started

The frontend is already deployed at https://use-bricks.netlify.app/ — you still need to clone the repo and run the backend API locally, but you do not need to run the Vite dev server for the frontend.

Prerequisites: Node.js 18+ and npm

1. Clone the repo

git clone https://github.com/BraaMohammed/bricks.git
cd bricks

2. Start the Backend API

cd api/bricks-api
npm install

# Create your env file (full template with comments):
cp .env.example .env.local
# Minimum needed: SERPER_API_KEY or TAVILY_API_KEY for web search
# If neither is set, falls back to free DuckDuckGo scraping automatically

npm run dev
# API runs at http://localhost:3000

Optional — run the frontend locally: If you want to develop or self-host the UI, run npm install && npm run dev from the repo root. The UI will be at http://localhost:8080.

3. Configure AI

  1. Open https://use-bricks.netlify.app/ (or http://localhost:8080 if running locally)
  2. Click the Settings gear
  3. Add your API keys (OpenAI, Gemini, Groq) or set your local Ollama URL (http://localhost:11434)
  4. Upload a CSV and start enriching

Required Browser Setup

Because the UI is served from https://use-bricks.netlify.app/ (a public HTTPS page) and the backend API runs on your local machine, Chromium-based browsers (Chrome, Edge, Brave) will block those requests by default. This affects every feature — web search, the reader, Puppeteer, the email finder, and Ollama.

Step 1 — Bypass Chrome's Local Network Block (required for everything)

  1. Paste this URL into your browser's address bar:
    chrome://flags/#local-network-access-check
    
  2. Change the highlighted setting to Disabled.
  3. Click the Relaunch button at the bottom of the browser.

Step 2 — Allow Cross-Origin Requests in Ollama (only if using Ollama)

If you want to use a local Ollama model, you also need to tell Ollama it is allowed to accept requests from Bricks.

Windows — open CMD and run:

setx OLLAMA_ORIGINS "*"

Mac / Linux:

export OLLAMA_ORIGINS="*"

⚠️ Critical: You must completely quit Ollama from your system tray / menu bar and restart it for this change to take effect.

Once both steps are done, select Ollama in the Bricks settings and it will instantly connect.


Tech Stack

Frontend (/src)

  • React 18 + Vite
  • Zustand — column config and API key state
  • Tailwind CSS + shadcn/ui — data table and config panels

Backend API (/api/bricks-api)

  • Next.js 15 App Router
  • Custom Puppeteer browser pool with memory management and queue system
  • Vercel AI SDK Core — structured generation, tool calling, streaming across providers

⚠️ Disclaimer — Responsible Use

Bricks is provided as-is, for lawful and ethical purposes only.

You are solely responsible for how you use this software. The authors and contributors accept no legal or ethical accountability for your actions, and we do not endorse or recommend using Bricks for any activity that is unethical, unlawful, or in violation of agreements you have accepted — including, but not limited to:

  • Breaking the Terms of Service of websites, APIs, or data providers you agreed to
  • Scraping or collecting data you are not authorized to access
  • Sending unsolicited communications in violation of anti-spam laws (CAN-SPAM, GDPR, etc.)
  • Any form of harassment, deception, fraud, or privacy violation

By using Bricks, you accept full responsibility for complying with all applicable laws, regulations, and contractual obligations in your jurisdiction. If you are unsure whether a use case is permitted, don't do it.


Contributing

Open issues, pull requests, and forks are welcome. If you hit a site the Puppeteer engine can't handle, or find a case where the email finder breaks, open an issue with the details.


Bricks — your data, your machine, your keys.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
eracle/OpenOutreach

Open-source AI agent for B2B lead generation — describe your product, it finds the people who fit, explains why each one does, and emails them from your mailbox. Self-hosted CLI, one install.

3.8k
Nov 26, 2026
Repository
needle-ai/needle-mcp

Find perfect leads and run outreach campaigns on Linkedin, email, Instagram and more.

107
Nov 4, 2026
RepositoryTypeScript
deepseek-ai/deepseek-harness

DeepSeek Harness: Everything is a Plugin.

290.1k
Nov 28, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryPython
browser-use/browser-use

Browser Use: open source browser agent infrastructure

122.6k
Dec 2, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

315.1k
Dec 1, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

203.5k
Nov 22, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryJavaScript
Leonxlnx/taste-skill

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

124.6k
Nov 26, 2026