Skip to main content

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.md and docs/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

runfile_ai-0.1.2.tar.gz (70.4 kB view details)

Uploaded Source

Built Distribution

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

runfile_ai-0.1.2-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file runfile_ai-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for runfile_ai-0.1.2.tar.gz
Algorithm Hash digest
SHA256 34d282da4eb403681cefce3a1823be02feb85f36b5b523c8838317b1b6166c45
MD5 bc7c84d85452328ce78c50e537bed2cb
BLAKE2b-256 1e82fc0c75989e177a885c286a3550a9cb9ddff8d4a349284595a6787271b51f

See more details on using hashes here.

Provenance

The following attestation bundles were made for runfile_ai-0.1.2.tar.gz:

Publisher: release.yml on runfile-ai/sdks

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

File details

Details for the file runfile_ai-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for runfile_ai-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1cd781b2223bde477ea9707e03fbfd8f71d0f482bfa4fbc37b5e23922f28d8be
MD5 004fb95262f54ec7e451d10c36930c54
BLAKE2b-256 9ac9b6ee192c81fac474766af025a62e8efb205e1e2a5c2383c6d2f4c44b9734

See more details on using hashes here.

Provenance

The following attestation bundles were made for runfile_ai-0.1.2-py3-none-any.whl:

Publisher: release.yml on runfile-ai/sdks

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