SDKs

Acquire an Ingate source client explicitly, then verify a reported exchange was stored.

Choose an available route

Ingate SDKs are optional

You can route a compatible client through Ingate using your existing standard provider SDK. The qualified provider-SDK quickstart includes a hosted route that does not require private source access. The source prerequisite below applies to acquiring an Ingate sidecar SDK, not to connecting that hosted routed workload.

These sidecar clients submit exchanges your application reports after its own model call. They do not route that call or establish provider billing completeness. For compatible routed traffic, use the Quickstart. For reported events, the Ingestion API is the underlying contract.

Source access is required

Obtain authorized repository access and the approved revision before cloning. The application source is private; anonymous cloning is not an acquisition method. This page does not claim successful public package installation.

On 13 October 2026, official metadata for PyPI ingate, npm @ingate/sdk and Hex ingate returned HTTP 404. These names are not advertised here as install-ready. Check an approved artifact's identity and provenance before using it; a failed retrieval alone is not evidence of absence.

LanguageAcquisition and prerequisitesQualification
PythonAuthorized source; Python 3.9+; stdlib client via explicit source path. Packaging uses hatchling, a separate prerequisite.The source recipe below is checked locally; no pip installation or published wheel is qualified.
TypeScriptAuthorized source and a compatible Node/TypeScript build environment.npm acquisition and TypeScript client runtime are unqualified here.
GoAuthorized source; SDK module uses stdlib and requires Go 1.22+. The gateway source build requires Go 1.26.1+ separately.Public Go distribution and Go client runtime are unqualified here.
ElixirAuthorized source; Elixir 1.14+, req and jason, supervised Ingate.Worker.Hex acquisition and Elixir client runtime are unqualified here.

Python source-client proof

Use your approved source checkout and an owned running Ingate instance. The self-hosted quickstart describes gateway/PostgreSQL prerequisites. Select an application and its key. Set INGATE_URL to that instance's API origin, INGATE_API_KEY to its application-bound key and INGATE_PROOF_IDto a new unique identifier in the client shell. Retain that identifier for storage reads. Keep credentials out of source and browser code. Commands use a POSIX shell; adapt Windows paths/environment syntax.

bash
git clone https://github.com/Ingate-AI/ingate.git
cd ingate
git checkout 5cbcbd65569ba8360747180af81dad55ce547126
python --version

Save this synthetic reported exchange as sdk-example.py. It does not call a model provider.

pythonsdk-example.py
import json
import os
from ingate import Ingate, Exchange

ig = Ingate()
exchange = Exchange(
    provider="reported-source",
    model="synthetic-unpriced-model",
    input_tokens=10,
    output_tokens=2,
    token_count=12,
    request_id=os.environ["INGATE_PROOF_ID"],
    tags={"session_id": os.environ["INGATE_PROOF_ID"]},
)
result = ig.ingest(exchange)
print(json.dumps({"request_id": result.request_id, "status": result.status}))
ig.close()
bash
PYTHONPATH="$PWD/sdk/python/src" python sdk-example.py

This imports the approved source tree; it is not a package-manager installation. Synchronous acceptance is not independent proof of persistence. Read the stored record in the same organization/application and match request ID, session marker, reported provider, source api, time and token count. Unknown price means unknown cost, not zero. If storage is pending, retry only the read with the retained identifier. Do not resend to retry verification. Inspect a delivery error before deciding whether retry is safe.

Delivery and failure boundaries

ship() queues work in memory. flush does not prove persistence: it drains or attempts queued delivery, not a stored-success receipt. The Python worker makes up to three send attempts and logs terminal failure before dropping a failed batch. A normal flush return can coexist with missing records. Keep these diagnostics visible. Process exit, a full queue or failed delivery can lose reported events; this is not durable accounting.

Prefer ingest() when synchronous refusal must remain visible. Inspect every ingest_batch() item's accepted/rejected result; partial acceptance does not mean the whole batch succeeded. Lost responses can leave delivery uncertain. Retain identifiers and inspect stored state before replay; arbitrary replays are not promised to be deduplicated. These Python observations do not qualify another language's delivery contract.

Evidence boundary

Local qualification uses the pinned source client, a disposable real gateway/PostgreSQL 18, synthetic records and keys, and persisted attribution checks. It establishes neither public package availability nor production PostgreSQL 16, deployment, real provider traffic or other-language behavior.