Skip to content
atharhivePublic

About

A local-first sales workflow for thoughtful, reviewable outreach. Discover businesses, verify contacts, and draft emails with human approval.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Huntly — local intelligence and controlled outreach

A local-first sales workflow for thoughtful, reviewable outreach.
Discover the right businesses, understand their context, write a useful message,
and keep a human in control before anything leaves the outbox.

Python 3.11 or newer FastAPI SQLite Playwright pytest YAML

Quick start · How it works · Configuration · Safety model

The idea

Huntly is a local sales-workflow engine for independent operators and small teams. It turns a defined offer and audience into a visible pipeline: business discovery, website research, qualification, contact verification, message drafting, approval, delivery, and reply handling.

The important part is not “send more emails.” The important part is keeping the whole process understandable. Huntly stores its state locally, shows its work in a browser dashboard, estimates paid discovery before it runs, and stops outbound messages at a human approval gate.

What makes Huntly different?
  • Local-first: configuration, prompts, observations, prospects, and outbox state live in the project directory.
  • Inspectable: every stage leaves durable records in SQLite and appears in the dashboard or activity log.
  • Human-gated: approval is required before native email delivery.
  • Provider-explicit: Huntly does not silently switch to another AI or delivery provider when the selected one fails.
  • Operationally bounded: quiet hours, daily send limits, budget checks, bounce protection, and a manual sending kill switch are enforced before delivery.

Quick start

The fastest path is to run Huntly locally in a Python virtual environment, complete the setup wizard, and open the dashboard.

1. Install Huntly

git clone https://github.com/atharhive/Huntly.git
cd Huntly

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
Windows activation
py -3 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e .

2. Create local environment variables

cp .env.example .env

Keep .env private. It is for credentials only and should never be committed. The committed huntly.yaml describes the operator, offer, audience, channels, limits, and AI provider.

Minimum useful setup

For an AI-assisted workflow, configure:

  1. GEMINI_API_KEY if using Gemini, or the selected Claude/Codex login.
  2. One email provider: Gmail, SMTP, or an existing Instantly setup.
  3. One discovery provider such as Serper or SerpApi.
  4. One verifier such as Reoon if you want contacts to become deliverable.

The exact provider names must match brain.provider and channels.email.provider in huntly.yaml.

3. Run the setup wizard

huntly setup

The browser setup flow is the recommended experience. If you need a terminal flow instead:

huntly setup --terminal

For Gmail OAuth, configure a Google Cloud OAuth desktop application, enable the Gmail API, add the client values to .env, then run:

huntly gmail auth

4. Open the dashboard

huntly dashboard

Open http://127.0.0.1:5555. The dashboard is local to the machine running Huntly and is the main place to inspect companies, contacts, signals, campaigns, conversations, usage, logs, and the Outbox.

5. Start a controlled run

huntly status
huntly signals
huntly discover --estimate
huntly run

Discovery estimates are safe to run: they show the planned queries and estimated spend without calling the paid provider. Run the real discovery only after reviewing the estimate.

How Huntly works

Huntly runs a deterministic heartbeat. Each cycle checks the operating constraints first, then performs the smallest useful next action. AI helps with interpretation and composition; it does not get to bypass the safety boundary.

DISCOVER → PROFILE → QUALIFY → VERIFY → WRITE → REVIEW → SEND → RESPOND
1. Discover

Search providers find businesses that match the industries and geography in your ICP. Huntly records the source, query, rank, and estimated cost. Available providers depend on the credentials configured in .env.

huntly discover --providers
huntly discover --provider serpapi --estimate
huntly discover --provider serpapi --limit 10 --max-spend 1
2. Profile and qualify

Huntly reads company-owned pages, records observations, and applies the signals you confirm in the dashboard. It does not treat every search result as a qualified contact. Directories, aggregators, and unusable profile rows are filtered from the deliverable prospect pool.

huntly profile
3. Verify contacts

Huntly prefers publicly published business inboxes and verified addresses. A pattern guess is never treated as deliverable. When a verifier reports a catch-all or risky result, it stays subject to your configuration and approval rules.

4. Write drafts

The writer uses your product knowledge, offer, audience, and recorded company observations to create a campaign. It refuses to create a real deliverable draft for an unverified or otherwise ineligible address.

With native Gmail or SMTP, Huntly continues prospecting and drafting until its configured real-draft target is reached, then returns to its normal heartbeat schedule.

5. Review and send

Every native outbound message enters the Outbox. With require_approval: true, nothing sends until you approve it in the dashboard or CLI. Approved messages are still checked against quiet hours, daily limits, reply state, bounce rate, and the sending kill switch.

huntly outbox
huntly outbox --approve <id>
huntly outbox --approve-all
huntly outbox --reject <id>
6. Handle replies

The handler classifies incoming replies and records conversation state. Replies, bounces, objections, and positive intent remain visible in the dashboard so the operator can decide what happens next.

Configuration

Huntly keeps product decisions in YAML and secrets in environment variables. This separation makes the project portable, reviewable, and safer to share.

huntly.yaml

The main configuration describes:

brain:
  provider: gemini
  model: gemini-3.8-flash

channels:
  email:
    provider: gmail
    max_daily_sends: 5
    require_approval: true
    send_to_risky: false

usage:
  heartbeat_interval_minutes: 15
  quiet_hours:
    start: "22:00"
    end: "10:00"
    timezone: Asia/Kolkata
Configuration files and precedence
  • huntly.yaml — committed product and workflow defaults.
  • huntly.local.yaml — optional local override; keep it private and remove stale overrides when behavior looks unexpected.
  • .env — credentials and provider keys; never commit it.
  • data/huntly.db — runtime state; generated locally.
  • skills/ — product and sales knowledge used during drafting.
  • prompts/ — agent prompt templates.

Provider notes

Huntly supports explicit AI, discovery, email, and verification providers. The provider is chosen in configuration and its credentials are loaded from .env.

AI providers
  • Claude: uses the local Claude Code login and your existing subscription.
  • Codex: opt-in, with the verified CLI version and login required.
  • Gemini: uses GEMINI_API_KEY and a text-only REST request.

Huntly does not silently fall back from one selected provider to another.

Email providers
  • Gmail: recommended for a small, dedicated sending mailbox with OAuth.
  • SMTP/IMAP: useful with a compatible mailbox provider.
  • Instantly: supported for installations that already use it.

Use a dedicated sending identity and configure SPF, DKIM, and DMARC for your domain before real outreach.

Discovery and verification
  • Serper / SerpApi: Google-result discovery and search-backed research.
  • DataForSEO: structured search and local-business data.
  • OpenStreetMap: free mapped-business discovery where its categories fit.
  • Reoon / ZeroBounce / Hunter: contact verification and pattern lookup.

Provider pricing and free allowances change over time. Use Huntly’s estimate commands before paid discovery.

Safety model

Huntly is designed for controlled outreach, not blind automation. The safety boundary is deterministic and remains in place even when an AI provider is used.

Before collection
  • Estimate paid discovery spend.
  • Confirm signals and cohort criteria.
  • Keep provider credentials local.
  • Review the target geography, industries, and company size.
Before delivery
  • Require verified contacts by default.
  • Review every message in the Outbox.
  • Enforce daily limits and quiet hours.
  • Keep risky/catch-all delivery disabled unless explicitly justified.
  • Pause sending immediately with huntly sending pause.
Demo data is never deliverable

huntly demo-drafts creates transparent dashboard-only records using example.invalid recipients. They are clearly marked as demos and are blocked by the sender even if someone attempts to approve them.

huntly demo-drafts --count 10
huntly outbox --clear-demos

These controls reduce operational risk; they do not replace applicable anti-spam, privacy, or marketing law. Only contact people and businesses when you have a lawful, appropriate basis to do so.

Useful commands

Daily operations
huntly setup
huntly dashboard
huntly status
huntly usage
huntly run
huntly outbox
huntly sending pause
huntly sending resume
Research and exports
huntly train <url>
huntly signals
huntly discover --providers
huntly discover --estimate
huntly profile
huntly export
Local troubleshooting
huntly status --check
huntly sending status
python -m pytest -q

If the dashboard port is busy, either open the existing process at http://127.0.0.1:5555 or choose another port:

huntly dashboard --port 5556

Repository map

Path Responsibility
huntly/ Application code and integrations
huntly/agents/ Scout, writer, sender, handler, and analyst workers
huntly/collectors/ Discovery and company profiling
huntly/integrations/ Email, search, and provider adapters
huntly/web/ Local dashboard HTML, CSS, and JavaScript
prompts/ Runtime prompt templates
skills/ Product and sales knowledge
tests/ Automated behavior tests
data/ Local SQLite database and logs

Development

Install the development extras and run the test suite:

python -m pip install -e ".[dev]"
python -m pytest -q

The unit tests do not require external provider credentials. Provider credentials and browser binaries are only needed for workflows that use those integrations.

License

Huntly is currently distributed without a published open-source license. Contact the repository owner before redistributing or using it as a hosted service.


Built with ❤️ by Athar

About

A local-first sales workflow for thoughtful, reviewable outreach. Discover businesses, verify contacts, and draft emails with human approval.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages