chronos-gateway
The Python client for Chronos Gateway: AI agents change your Postgres only through checked, approved merges. Each agent task is a run for one tenant, working in its own copy of your data; its merge lands when your rules allow it, or waits for a person to approve it. Standard library only, Python 3.9+.
pip install chronos-gateway
from chronos_gateway import Gateway
gw = Gateway("https://gateway.example.com", key=os.environ["CHRONOS_GATEWAY_KEY"])
with gw.run(tenant=user.org_id, intent="clean up duplicate leads", end_user=user.id) as run:
agent.tools = run.openai_tools() # or run.mcp_server() for MCP clients
agent.invoke(task)
result = run.propose()
if result.held:
link = gw.approval(run.id, end_user=user.id) # show link.html (the <chronos-approve> widget) to the user
AsyncGatewayruns the same calls for asyncio code.chronos_gateway.adapters: the run's tools for LangChain and LangGraph, the Claude Agent SDK and the OpenAI Agents SDK (each needs its framework installed).- A pytest fixture,
chronos_run: a run discarded after the test (setCHRONOS_GATEWAY_URL,CHRONOS_GATEWAY_KEYandCHRONOS_GATEWAY_TENANT). verify_signaturechecks a webhook delivery'sChronos-Signature.
The gateway itself is chronos-gateway, which you run beside your Postgres (or link to Chronos Cloud).
Metadata
Release files for chronos-gateway 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chronos_gateway-0.1.0.tar.gz | 8.8 kB | Without provenance | Details for chronos_gateway-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chronos_gateway-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for chronos_gateway-0.1.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / chronos_gateway-0.1.0.tar.gz
| Download URL | chronos_gateway-0.1.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c08f43618ee6648d96f001967376f351ad80a3c418994f74cbfe780b35cfa664
|
|
BLAKE2b-256 checksum How to use checksums |
94be17f424aaf6954f234429ca4aecc8df0c4693f4dc445a871b3ea3442f22ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / chronos_gateway-0.1.0-py3-none-any.whl
| Download URL | chronos_gateway-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52aa3ba1d993a0dc02049243584e06181680232a7fe58478617273814de96102
|
|
BLAKE2b-256 checksum How to use checksums |
42d24ec1e014646b69a9ab12dc1a8b00d68b4684adc2f10900c44ba74f0e0691
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for chronos-gateway 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.