Skip to main content

GigaFlow CLI — connect LLM/agent traces (Arize Phoenix, Logfire, Braintrust, MLflow, W&B Weave, or OTLP) to GigaFlow and run Flow analysis

Project description

gigaflow CLI

Command-line client for GigaFlow — connect your LLM/agent traces to a GigaFlow backend and run Flow analysis on them (atomize each step, attribute information flow between atoms, score groundedness/relevance/fulfilment, diagnose failures).

The CLI is a thin client: your traces live in an observability platform (Arize Phoenix, Logfire, Braintrust, MLflow, W&B Weave) or are sent via OTLP; the backend does the compute; this CLI drives ingest → compute → inspection.

📖 Documentation: https://docs.gigaflow.io/


Install

pip install gigaflow

The CLI is standard-library only — nothing else to pull in.

Sign in

Run gigaflow login — it signs you in with your waitlist email and stores your credentials in ~/.gigaflow/config.json, so you only do it once:

gigaflow login

gigaflow setup also signs you in automatically, so a fresh user can go straight to setup — no API key or backend URL needed; the hosted service (https://api.gigaflow.io/api/v1) is the default.

Flow compute additionally needs an OpenAI key (sent only by the compute command):

export OPENAI_API_KEY=sk-...

On the hosted service, Flow LLM calls currently run on GigaFlow's platform key; per-customer key billing is on the roadmap.

For repeatable or CI setups, see the gigaflow.env reference.

Developer / self-hosted overrides (hosted users don't need these):

Env var Purpose
GIGAFLOW_BACKEND_URL Point the CLI at a non-default backend. Same as --backend.
GIGAFLOW_API_KEY Static bearer key, bypassing interactive login. Same as --api-key.

Resolution order (first set wins):

  • Backend URL: --backend <url> > $GIGAFLOW_BACKEND_URL > saved config > the hosted service (https://api.gigaflow.io/api/v1)
  • API key: --api-key <key> > $GIGAFLOW_API_KEY > saved config > none

The end-to-end flow

# 1. Connect a trace source (creates a project + registers a datasource).
#    All five vendors are wizard-driven; → see docs/sources/<vendor>.md
gigaflow setup                  # interactive vendor wizard

# 2. Pull traces into GigaFlow.
gigaflow sync

# 3. Compute Flow for every trace that doesn't have results yet.
gigaflow compute "SELECT trace_id FROM trace_metrics WHERE run_id IS NULL"

# 4. Open a trace in the browser viewer (Trace / Orchestration / Atomic / Metrics).
gigaflow inspect <trace_id>

Supported tracing backends

gigaflow setup walks you through connecting one of:

  • Arize Phoenix — PostgreSQL connection to the Phoenix spans DB
  • Braintrust — API base URL + project name + API key
  • Logfire — API base URL + read token
  • MLflow — tracking server URL (+ optional token)
  • W&B Weave — trace server URL + <entity>/<project> + W&B API key

Each gets a built-in transform; Braintrust/MLflow/Arize work out of the box; Logfire works out of the box for pydantic-ai projects; W&B Weave ships a template you tailor to your op names. The wizard previews how your spans classified so you can spot a mismatch immediately.

Connect your trace source

Pick your platform — each guide covers the exact datasource config + whether a custom transform is needed:

Source Setup Bundled transform? Guide
Arize Phoenix gigaflow setup wizard ✅ yes docs/sources/arize-phoenix.md
Logfire gigaflow setup wizard ✅ yes docs/sources/logfire.md
Braintrust gigaflow setup wizard ✅ yes docs/sources/braintrust.md
MLflow gigaflow setup wizard ✅ yes docs/sources/mlflow.md
W&B Weave gigaflow setup wizard ⚠️ template (see note) docs/sources/wb-weave.md
Direct OTLP project token + exporter n/a (per-project transform) docs/sources/otlp.md

gigaflow setup supports all five vendors. W&B Weave ships a template transform (wb_weave.yml) rather than a fully generic one — Weave has no structural span-type field, so you may need to tailor filter rules to your op names. The setup wizard previews classification so you can spot a mismatch immediately.

Commands

Command What it does
gigaflow setup First-run wizard (all five vendors): pick vendor, enter connection, name project, upload transform, sync, preview
gigaflow sync Pull traces from the configured datasource (append-only)
gigaflow traces List traces (auto-syncs first)
gigaflow spans <trace_id> List spans for a trace
gigaflow compute "<SQL>" Batch-compute Flow for matching traces
gigaflow inspect <trace_id> Open the browser viewer
gigaflow query "<SQL>" Run SQL against the trace_metrics view (read-only) — see QUERYING.md
gigaflow config show / clear Show / reset saved config

Transform configs

A transform config (YAML) maps a source's raw spans to GigaFlow primitives (llm_call, tool_invocation, user_input, transform) via filter (classify) and mapping (extract fields). Bundled configs ship for all five vendors (gigaflow/transforms/); W&B Weave's is a template you may need to tailor to your op names. Leave the transform prompt blank in gigaflow setup to use the bundled one. Re-upload to an existing project without re-running setup:

curl -X PUT "$GIGAFLOW_BACKEND_URL/projects/<project_id>/transform" \
  -H "Authorization: Bearer $GIGAFLOW_API_KEY" \
  -H "Content-Type: text/plain" --data-binary @my_transform.yml

Re-sync after changing a transform to reclassify spans.

Full grammar + the per-project upload flow: docs/transforms.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigaflow-0.4.2.tar.gz (66.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigaflow-0.4.2-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file gigaflow-0.4.2.tar.gz.

File metadata

  • Download URL: gigaflow-0.4.2.tar.gz
  • Upload date:
  • Size: 66.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gigaflow-0.4.2.tar.gz
Algorithm Hash digest
SHA256 9d82071408c9b58e27ffb46f64f250c180afb3491ff4574333a692bcaad206bb
MD5 a53bc774d91265696550eeee543c2299
BLAKE2b-256 6fb499aa81036437f3854a0d543060ed3cf50f31c1cdfcf873abbde2c71aebc3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gigaflow-0.4.2.tar.gz:

Publisher: publish.yml on GigaFlow-AI-Incorporated/gigaflow-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gigaflow-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: gigaflow-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 51.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gigaflow-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 78797134251e67ef79d636b3937b81d412ea93290ac7848ded7eac741d818e66
MD5 fefac833f40edf67f2100d396ec7bbf6
BLAKE2b-256 dc5d6b86a58e599e9095e22d98ca2b0a78f314cc5a561bbec97aa092c6f22cfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for gigaflow-0.4.2-py3-none-any.whl:

Publisher: publish.yml on GigaFlow-AI-Incorporated/gigaflow-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page