Metadata-Version: 2.5
Name: interlock-ai
Version: 0.1.1
Summary: Interlock SDK and CLI: capture OpenAI and Anthropic calls with one command.
License-Expression: Apache-2.0
License-File: src/interlock/LICENSE
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# interlock-ai

The Interlock SDK and command-line tool. It captures the OpenAI and Anthropic calls your Python
application makes and sends them to your Interlock workspace, where they are grouped into workflows
and benchmarked against alternatives.

- `interlock connect`, run in your service's repository, proposes the change that turns capture on:
  `interlock-ai` pinned in your dependencies and your start command wrapped as
  `interlock run -- <your command>`. You apply it or open a pull request; nothing changes until you
  do.
- `interlock run -- <command>` (or `interlock.init()` at start-up) captures the calls of the
  OpenAI and Anthropic Python SDKs, synchronous, asynchronous and streaming, at the HTTP layer they
  send through (`httpx` and `httpx2`). Your requests never wait on Interlock: calls are queued and
  sent in background batches, and at exit the flush takes one second at most.
- The capture runtime uses the standard library only and has no dependencies. It runs on CPython
  3.10 to 3.14; the other commands run on Python 3.12, which `uvx` provides:
  `uvx --python 3.12 --from interlock-ai interlock connect`.

What is captured, what never is, the delivery counters and the setups `interlock connect` knows are
described in the Interlock documentation (`docs/customer/` in the Interlock repository).
