happenstance
Command-line interface for Happenstance — search your network with AI. Find warm intros for sales, source referral candidates for hiring, discover investors for fundraising, and research anyone in your network.
Install
# Homebrew (macOS / Linux)
brew tap happenstance-ai/tap
brew install happenstance
# uv
uv tool install happenstance
# pipx
pipx install happenstance
# pip
pip install happenstance
Quick start
# Configure your API key (get one at https://happenstance.ai/integrations/keys)
hpn config set --api-key YOUR_API_KEY
# Search your network
hpn search "CISOs interested in AI in the SF Bay Area"
# Research a specific person
hpn research "https://www.linkedin.com/in/garrytan/"
# Check your credit balance
hpn usage
Commands
| Command | Description |
|---|---|
hpn config set --api-key KEY |
Save your API key |
hpn config show |
Show saved API key (masked) |
hpn search "query" |
Search your network |
hpn search get ID |
Get search results |
hpn search find-more ID |
Find additional results |
hpn research "description" |
Research a person |
hpn research get ID |
Get research results |
hpn friends |
List your friends |
hpn groups |
List your groups |
hpn groups get ID |
Get group details |
hpn usage |
Show credit balance |
Configuration
The API key can be provided in three ways (in priority order):
--api-keyflag on any commandHPN_API_KEYenvironment variable- Config file at
~/.hpn/config.json(set viahpn config set)
All output is JSON and can be piped to jq for processing.
Documentation
Full API docs: https://developer.happenstance.ai
Release files for happenstance 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| happenstance-0.2.3.tar.gz | 49.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| happenstance-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.7 kB
Release files / happenstance-0.2.3.tar.gz
| Download URL | happenstance-0.2.3.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5dc5ba955d4e194874db6921f2dcf25146120d756cd9a5a856d80db853e4f47
|
|
BLAKE2b-256 checksum How to use checksums |
a4afdea7153cb378ab1ec33d649cb9dd6c18b3b0ad658bb660544511568ab4d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency logRelease files / happenstance-0.2.3-py3-none-any.whl
| Download URL | happenstance-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd6310147d37b59aa3c05b4db0758685266a4b065ca3a64e2b60459148d203c0
|
|
BLAKE2b-256 checksum How to use checksums |
467159787f959be23b999e601c4968af8f8815264c4b8bde90bb0edc5ad355fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.
Transparency log