Runfile SDK — tamper-evident audit capture for AI agents (LangGraph, OpenAI Agents, Claude Agent SDK, MCP).
Project description
runfile-ai
The Runfile SDK for Python. Tamper-evident audit capture for AI agents.
pip install runfile-ai
# framework extras:
pip install 'runfile-ai[langgraph]' # or [openai-agents], [anthropic], [mcp]
import os
import runfile_ai
from runfile_ai.integrations import langgraph as runfile_langgraph
runfile_ai.init(api_key=os.environ["RUNFILE_API_KEY"], environment="production")
graph = runfile_langgraph.instrument(
graph, agent_identity="did:web:bank.com:agents:loan-triage:v2"
)
Configuration
Explicit args take precedence over environment variables, which take precedence over defaults:
| Arg | Env var | Default |
|---|---|---|
api_key |
RUNFILE_API_KEY |
— (required) |
region |
RUNFILE_REGION |
eu-west-2 |
environment |
RUNFILE_ENVIRONMENT |
production |
disabled |
RUNFILE_DISABLED |
false |
base_url is derived as https://api.<region>.runfile.ai unless overridden.
RUNFILE_DISABLED=1 makes the SDK a silent no-op (handy for local dev). So
runfile_ai.init() with RUNFILE_API_KEY set is enough.
- Import name:
runfile_ai(distribution:runfile-ai). - Wire
sdk.name:runfile-ai. - Python: 3.11+.
- Schema dependency:
runfile-ai-schemas(PyPI), pinned>=0.5,<1.0.
🚧 Scaffold — module skeletons are in place; logic is being filled in. See the repo root
README.mdanddocs/STATUS.md.
Local development
pip install -e '.[dev]'
ruff check .
mypy runfile_ai
pytest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runfile_ai-0.3.0.tar.gz.
File metadata
- Download URL: runfile_ai-0.3.0.tar.gz
- Upload date:
- Size: 96.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af41a3162ad3b14ad39a4febdaa3e88631a3dd8f967e30f2501780c2de7f6611
|
|
| MD5 |
4c0109a6b84ffd81c7a299adb00331db
|
|
| BLAKE2b-256 |
390cf8392eb34e642d9d049ee937b3082d3e175b30285f71e8eaf74e70cf7b6d
|
Provenance
The following attestation bundles were made for runfile_ai-0.3.0.tar.gz:
Publisher:
release.yml on runfile-ai/sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runfile_ai-0.3.0.tar.gz -
Subject digest:
af41a3162ad3b14ad39a4febdaa3e88631a3dd8f967e30f2501780c2de7f6611 - Sigstore transparency entry: 1765417352
- Sigstore integration time:
-
Permalink:
runfile-ai/sdks@b81291d37e8eb9e01a383df411b69a82d9fc83c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/runfile-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b81291d37e8eb9e01a383df411b69a82d9fc83c2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file runfile_ai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: runfile_ai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 73.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53bdac20592a85da1868bb2fd5e7700e0e5379293d11145a8efc886018a399d6
|
|
| MD5 |
ffd159a39da43dfa942b0b78f33b60aa
|
|
| BLAKE2b-256 |
d031816b54e75a075c1b2f94376b49c55bf869be2505c21e27cdf439ce37e7ba
|
Provenance
The following attestation bundles were made for runfile_ai-0.3.0-py3-none-any.whl:
Publisher:
release.yml on runfile-ai/sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runfile_ai-0.3.0-py3-none-any.whl -
Subject digest:
53bdac20592a85da1868bb2fd5e7700e0e5379293d11145a8efc886018a399d6 - Sigstore transparency entry: 1765418619
- Sigstore integration time:
-
Permalink:
runfile-ai/sdks@b81291d37e8eb9e01a383df411b69a82d9fc83c2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/runfile-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b81291d37e8eb9e01a383df411b69a82d9fc83c2 -
Trigger Event:
push
-
Statement type: