Skip to main content

crewai-valta

Hard spending limits for CrewAI agents. Enforces budget policies before any paid operation fires.

Install

pip install crewai-valta

Quickstart

from crewai_valta import ValtaSpendTool
from crewai import Agent, Task, Crew

guard = ValtaSpendTool(
    api_key="vk_live_...",   # from valta.co/dashboard/api-keys
    agent_id="research-agent",
)

researcher = Agent(
    role="Research Analyst",
    goal="Find and summarise market data",
    backstory="...",
    tools=[guard, ...your_other_tools],
)

Add this to your task description:

"Before calling any paid API, use the check_spend tool with the estimated cost. Only proceed if the result is 'approved'."

How it works

Response Meaning
approved Within policy — proceed
denied: daily_limit_exceeded Would exceed daily budget
denied: insufficient_balance Wallet balance too low
denied: requires human approval Above approval threshold

Links

Metadata

Release files for crewai-valta 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-valta 0.1.1
File Size Uploaded
crewai_valta-0.1.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crewai-valta 0.1.1
File Interpreter ABI Platform
crewai_valta-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / crewai_valta-0.1.1.tar.gz

Download URL crewai_valta-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e068a1ec3a35f2796ea9d2b9e27bf6c7e9e905f3647c3cf1ab662b2bc85337
BLAKE2b-256 checksum
How to use checksums
f7efe549a5d475861414add0535a077a71a8ade6d5fd6ab5a154f7ec85f4aae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / crewai_valta-0.1.1-py3-none-any.whl

Download URL crewai_valta-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1f3558a5761ef59d337cc09dae938801b6d652ca96ce607f41f30d67107f859
BLAKE2b-256 checksum
How to use checksums
4be7736bdb8ea13dc054267b83894684320368461bc3c4b1dce50131e8f7305e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page