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.1.1.tar.gz (26.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.1.1-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runvault-0.1.1.tar.gz
  • Upload date:
  • Size: 26.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.1.1.tar.gz
Algorithm Hash digest
SHA256 c3a2e7bdd61cabc1879c2ef4814c6f71fe84017d5be3487e90b6242c1b979b47
MD5 56b691f933f59ccc3d4409ae70b4817d
BLAKE2b-256 eb2d7d2d92de005d6a54e8dfdc43b91f88a8649457b0958b5c1cf1a23789b0d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: runvault-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.0 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec97dc88e8109beced240dbc2212f72112b5cb617110279a40f9543f76bad49c
MD5 7c70eac6c5931f1e094a1ca64d8cab79
BLAKE2b-256 331227c318564ca6d0bdc494b0727fc1682ab170e625639b60c1baf941110b6f

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