Skip to main content

Financial identity infrastructure for AI agents — Python SDK

Project description

RunVault Python SDK

Financial identity infrastructure for AI agents. The RunVault SDK is the standard integration layer between AI agents and the RunVault platform — it handles agent registration, JWT exchange, LLM client routing through the RunVault proxy, and run-level context propagation.

Install

The base package is small. LLM provider support is opt-in via extras:

pip install runvault[openai]                          # OpenAI raw client
pip install runvault[anthropic]                       # Anthropic raw client
pip install runvault[langgraph,langchain-openai]      # LangGraph + LangChain OpenAI
pip install runvault[all]                             # everything

Quick start

from runvault import RunVault, ChatOpenAI

rv = RunVault(
    api_key="rv_live_...",
    be_url="https://your-runvault-backend",
)

llm = ChatOpenAI(model="gpt-4o-mini")
graph = build_graph(llm)

agent = rv.init(
    framework="langgraph",
    app=graph,
    agent_id="research-v1",
    name="Research Agent",
    budget=1.0,
)

result = agent.invoke({"input": "What is..."})

rv.init() registers the agent with the backend (idempotent on agent_id), exchanges the API key for a short-lived JWT, and wraps your compiled LangGraph app so every LLM call inside it is routed through the RunVault proxy with the correct authentication and budget context.

Supported frameworks

  • LangGraph — pass a compiled graph to rv.init(framework="langgraph", app=graph, …).

Supported LLM clients

Drop-in factories that return real upstream instances configured to route through the RunVault proxy:

  • ChatOpenAI, OpenAI, AsyncOpenAI
  • ChatAnthropic, Anthropic, AsyncAnthropic
  • ChatGoogleGenerativeAI

Python version

Requires Python 3.10 or newer.

License

Apache 2.0. See LICENSE.

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

runvault-0.2.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

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

runvault-0.2.0-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file runvault-0.2.0.tar.gz.

File metadata

  • Download URL: runvault-0.2.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for runvault-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4301326986de5722c0ea74fd58007820c665c1876e0ac3dffcb6f8f2cd142dd4
MD5 ad111fc1ff5800200e59ac1698dd3b03
BLAKE2b-256 8fb338fbb52889c53fdfcd169d997ba087f6c041c7d1fd2cb32f5f147dcb5d2a

See more details on using hashes here.

File details

Details for the file runvault-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: runvault-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for runvault-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 973c89ff28f36594ea00094c9ccf59b9bd355ecb5fe365cf3e501204a18e79fa
MD5 3dec2c9f81afb1d3fea16ef324a88a8c
BLAKE2b-256 d0a561de76291c9bf4b79c649413e84f72d04876accc9ce7471ead4b82190ed8

See more details on using hashes here.

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