SegmentStream CLI · Private beta

Run the Measurement Engine
in your own warehouse.

An open-source CLI for warehouse-native marketing attribution. Connect any warehouse, add any data source, and run cross-channel attribution locally — your data never leaves your infrastructure.

$ curl -fsSL https://segmentstream.com/cli/install.sh | sh
01 · Initialize

One command. Your whole project.

Run segmentstream init in any repository. It scaffolds a config.yaml and the folders where your sources, destinations, transformations, and attribution models live — version-controlled, reviewable, and entirely yours.

bash
$ segmentstream init

 Created config.yaml
 Created sources/ · destinations/
 Created transformations/ · attribution_models/
 Project ready connect a warehouse with segmentstream auth add
02 · Connect

Authenticate any warehouse.

One command connects BigQuery, Snowflake, or Databricks — each via its best-practice login. The credential is saved to your OS keychain or a gitignored .env; config.yaml only references it by name. Secrets never touch config.yaml, and your data never leaves your warehouse.

bash
$ segmentstream auth add bigquery

 Opening browser for Google sign-in…
 Authenticated as you@acme.com
 Wrote config.yaml no secret to store
yaml
# config.yaml — commit this
warehouse:
  type: bigquery
  project: acme-analytics
  dataset: segmentstream
  auth: bigquery     # the credential from 'auth add'; method lives there
03 · Add sources

Add any data source.

Every source is one of three types — events, costs, or conversions. Start with built-in connectors for the platforms you use, or describe a custom one and it's generated for you.

yaml
# config.yaml
sources:
  - name: ga4
    type: events
    connector: ga4_bigquery_export
    auth: bigquery
04 · Configure

Built-in models, or your own.

Pick a built-in attribution model — first-click, multi-touch, predictive — or drop a custom model in attribution_models/ and reference it by name. The engine handles identity stitching and maturation; your model just defines the credit rule.

yaml
# config.yaml
attribution:
  model: first_click   # or last_click · linear · position_based · predictive
05 · Run

Run it locally.

One command runs the full pipeline — identity stitching, attribution, and reporting — and writes the results straight back to your warehouse.

bash
$ segmentstream run

 Identity graph: 1.2M users stitched
 First-click attribution across 14 channels
 Report written to acme-analytics.segmentstream.reports
06 · Activate

Send conversions back out.

Forward the conversions you trust to ad platforms through their server-side APIs — Meta CAPI, Google Enhanced Conversions, and more. It reuses the connection you already authenticated, so there's nothing new to set up.

yaml
# config.yaml
destinations:
  - name: meta-capi
    connector: meta
    auth: meta          # reuses your Meta connection
    sends: [purchase]

Run it locally. Any warehouse, any source.

$ curl -fsSL https://segmentstream.com/cli/install.sh | sh

The full Measurement Engine, on your terminal.

Every model the platform runs is available from the CLI — explained in full, with no black boxes.

Bring measurement into your terminal.

The SegmentStream CLI is in private beta. Request access and run attribution where your data already lives.