Rank
65
LangChain/LangGraph tools for AI agent x402 payments on X1
Traction
No public download signal
Freshness
Updated 4mo ago
Crawler Summary
Budget limits and cost guardrails for AI agent frameworks (CrewAI, AutoGen, LangGraph) agent-cost-guardrails $1 $1 $1 Budget limits and cost guardrails for AI agent frameworks. Prevents runaway API spend with hard budget enforcement, circuit breakers, and per-agent cost tracking. **Zero infrastructure required** -- no gateway, no proxy, no external service. Pure Python middleware that hooks into your framework at the process level. Features - Hard budget limits with BudgetExceededError on overspend - P Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.
Freshness
Last checked 5/31/2026
Best For
agent-cost-guardrails is best for crewai, multi-agent workflows where OpenClaw compatibility matters.
Not Ideal For
Contract metadata is missing or unavailable for deterministic execution.
Evidence Sources Checked
editorial-content, GITHUB OPENCLEW, runtime-metrics, public facts pack
Budget limits and cost guardrails for AI agent frameworks (CrewAI, AutoGen, LangGraph) agent-cost-guardrails $1 $1 $1 Budget limits and cost guardrails for AI agent frameworks. Prevents runaway API spend with hard budget enforcement, circuit breakers, and per-agent cost tracking. **Zero infrastructure required** -- no gateway, no proxy, no external service. Pure Python middleware that hooks into your framework at the process level. Features - Hard budget limits with BudgetExceededError on overspend - P
Public facts
3
Change events
0
Artifacts
0
Freshness
May 31, 2026
Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.
Trust score
Unknown
Compatibility
OpenClaw
Freshness
May 31, 2026
Vendor
Sapph1re
Artifacts
0
Benchmarks
0
Last release
Unpublished
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.
Setup snapshot
git clone https://github.com/sapph1re/agent-cost-guardrails.gitSetup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Sapph1re
Protocol compatibility
OpenClaw
Handshake status
UNKNOWN
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
python
bash
pip install agent-cost-guardrails
bash
pip install agent-cost-guardrails[crewai] # CrewAI integration pip install agent-cost-guardrails[autogen] # AutoGen/AG2 integration pip install agent-cost-guardrails[langgraph] # LangGraph/LangChain integration pip install agent-cost-guardrails[all] # All frameworks
python
from agent_cost_guardrails import BudgetGuard
with BudgetGuard(max_usd=5.00) as guard:
# Before each LLM call
guard.pre_call_check(estimated_tokens=2000)
# After each LLM call - record actual usage
guard.post_call_record("gpt-4o", input_tokens=1500, output_tokens=800)
print(guard.cost_report())python
from agent_cost_guardrails import budget_limit
@budget_limit(max_usd=5.00)
def run_my_agents(guard=None):
guard.pre_call_check()
guard.post_call_record("gpt-4o", input_tokens=1000, output_tokens=500)
return guard.cost_report()
result = run_my_agents()python
from agent_cost_guardrails.integrations import CrewAIGuardrails guards = CrewAIGuardrails(max_usd=5.00, max_tokens_per_call=4096) guards.install() # Registers hooks globally crew.kickoff() print(guards.cost_report())
python
from autogen import AssistantAgent, UserProxyAgent
from agent_cost_guardrails.integrations import AutoGenGuardrails
def on_budget_alert(threshold, spent, budget):
if threshold >= 0.8:
print(f"WARNING: {threshold*100:.0f}% of ${budget:.2f} budget used")
guards = AutoGenGuardrails(
max_usd=5.00,
max_tokens_per_call=10000,
circuit_breaker_max_violations=3,
on_alert=on_budget_alert,
default_model="gpt-4o",
)
assistant = AssistantAgent(
name="coder",
llm_config={"model": "gpt-4o"},
system_message="You are a coding assistant.",
)
user_proxy = UserProxyAgent(
name="executor",
human_input_mode="NEVER",
code_execution_config={"work_dir": "workspace"},
)
guards.wrap_agent(assistant)
guards.wrap_agent(user_proxy)
try:
user_proxy.initiate_chat(
assistant,
message="Debug this failing test: test_user_auth.py::test_session_refresh",
max_turns=30,
)
except Exception as e:
print(f"Conversation stopped: {e}")
finally:
report = guards.cost_report()
print(f"Total cost: ${report['total_cost_usd']:.4f}")
print(f"Turns completed: {report['total_calls']}")Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB OPENCLEW
Editorial quality
ready
Budget limits and cost guardrails for AI agent frameworks (CrewAI, AutoGen, LangGraph) agent-cost-guardrails $1 $1 $1 Budget limits and cost guardrails for AI agent frameworks. Prevents runaway API spend with hard budget enforcement, circuit breakers, and per-agent cost tracking. **Zero infrastructure required** -- no gateway, no proxy, no external service. Pure Python middleware that hooks into your framework at the process level. Features - Hard budget limits with BudgetExceededError on overspend - P
Budget limits and cost guardrails for AI agent frameworks. Prevents runaway API spend with hard budget enforcement, circuit breakers, and per-agent cost tracking.
Zero infrastructure required -- no gateway, no proxy, no external service. Pure Python middleware that hooks into your framework at the process level.
BudgetExceededError on overspend| Framework | Integration | Hook Mechanism |
|-----------|------------|----------------|
| CrewAI | CrewAIGuardrails | @before_llm_call / @after_llm_call |
| AutoGen/AG2 | AutoGenGuardrails | safeguard_llm_inputs / safeguard_llm_outputs |
| LangGraph | LangGraphGuardrails | BaseCallbackHandler |
pip install agent-cost-guardrails
Install with framework-specific extras:
pip install agent-cost-guardrails[crewai] # CrewAI integration
pip install agent-cost-guardrails[autogen] # AutoGen/AG2 integration
pip install agent-cost-guardrails[langgraph] # LangGraph/LangChain integration
pip install agent-cost-guardrails[all] # All frameworks
from agent_cost_guardrails import BudgetGuard
with BudgetGuard(max_usd=5.00) as guard:
# Before each LLM call
guard.pre_call_check(estimated_tokens=2000)
# After each LLM call - record actual usage
guard.post_call_record("gpt-4o", input_tokens=1500, output_tokens=800)
print(guard.cost_report())
from agent_cost_guardrails import budget_limit
@budget_limit(max_usd=5.00)
def run_my_agents(guard=None):
guard.pre_call_check()
guard.post_call_record("gpt-4o", input_tokens=1000, output_tokens=500)
return guard.cost_report()
result = run_my_agents()
from agent_cost_guardrails.integrations import CrewAIGuardrails
guards = CrewAIGuardrails(max_usd=5.00, max_tokens_per_call=4096)
guards.install() # Registers hooks globally
crew.kickoff()
print(guards.cost_report())
AutoGen agents chat back and forth to solve problems. Without limits, a debugging loop across 20+ turns can cost $20+ before the conversation naturally ends. AutoGenGuardrails wraps each agent with budget hooks — every LLM call is checked before it executes, and the conversation stops cleanly when the budget runs out.
from autogen import AssistantAgent, UserProxyAgent
from agent_cost_guardrails.integrations import AutoGenGuardrails
def on_budget_alert(threshold, spent, budget):
if threshold >= 0.8:
print(f"WARNING: {threshold*100:.0f}% of ${budget:.2f} budget used")
guards = AutoGenGuardrails(
max_usd=5.00,
max_tokens_per_call=10000,
circuit_breaker_max_violations=3,
on_alert=on_budget_alert,
default_model="gpt-4o",
)
assistant = AssistantAgent(
name="coder",
llm_config={"model": "gpt-4o"},
system_message="You are a coding assistant.",
)
user_proxy = UserProxyAgent(
name="executor",
human_input_mode="NEVER",
code_execution_config={"work_dir": "workspace"},
)
guards.wrap_agent(assistant)
guards.wrap_agent(user_proxy)
try:
user_proxy.initiate_chat(
assistant,
message="Debug this failing test: test_user_auth.py::test_session_refresh",
max_turns=30,
)
except Exception as e:
print(f"Conversation stopped: {e}")
finally:
report = guards.cost_report()
print(f"Total cost: ${report['total_cost_usd']:.4f}")
print(f"Turns completed: {report['total_calls']}")
See integrations/autogen_example.py for a runnable before/after demo showing a $5.82 unguarded conversation stopped at $0.82 with a $1.00 budget.
from agent_cost_guardrails.integrations import LangGraphGuardrails
guards = LangGraphGuardrails(max_usd=2.00)
result = graph.invoke(
state,
config={"callbacks": [guards.callback_handler]}
)
print(guards.cost_report())
def my_alert(threshold, current_cost, max_budget):
print(f"ALERT: {threshold*100}% budget used (${current_cost:.2f}/${max_budget:.2f})")
guard = BudgetGuard(
max_usd=10.00,
alert_thresholds=[0.5, 0.8, 1.0],
on_alert=my_alert,
)
from agent_cost_guardrails import set_custom_pricing
set_custom_pricing({
"my-fine-tuned-model": {
"input_per_mtok": 5.0, # $5.00 per 1M input tokens
"output_per_mtok": 15.0, # $15.00 per 1M output tokens
}
})
report = guard.cost_report()
# {
# "total_cost_usd": 0.0325,
# "total_input_tokens": 5000,
# "total_output_tokens": 2000,
# "total_calls": 3,
# "budget_usd": 10.0,
# "remaining_usd": 9.9675,
# "cost_by_model": {"gpt-4o": 0.0325},
# "cost_by_agent": {"researcher": 0.02, "writer": 0.0125},
# "tokens_by_model": {"gpt-4o": {"input": 5000, "output": 2000}}
# }
MIT -- see LICENSE for details.
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
missing
Auth
None
Streaming
No
Data region
Unspecified
Protocol support
Requires: none
Forbidden: none
Guardrails
Operational confidence: low
curl -s "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/snapshot"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/contract"
curl -s "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Do not use if
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
Rank
65
LangChain/LangGraph tools for AI agent x402 payments on X1
Traction
No public download signal
Freshness
Updated 4mo ago
Rank
65
An implementation of a multi-agent swarm using LangGraph
Traction
No public download signal
Freshness
Updated 4mo ago
Rank
65
LangGraph Multi-Agent Supervisor
Traction
No public download signal
Freshness
Updated 4mo ago
Rank
65
LangChain tools for OceanBus — give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.
Traction
No public download signal
Freshness
Updated 4mo ago
Contract JSON
{
"contractStatus": "missing",
"authModes": [],
"requires": [],
"forbidden": [],
"supportsMcp": false,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": null,
"outputSchemaRef": null,
"dataRegion": null,
"contractUpdatedAt": null,
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/snapshot",
"contractUrl": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/contract",
"trustUrl": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/trust"
},
"curlExamples": [
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/snapshot\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/contract\"",
"curl -s \"https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"OPENCLEW"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_OPENCLEW",
"generatedAt": "2026-10-08T22:21:01.942Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "OPENCLEW",
"type": "protocol",
"support": "unknown",
"confidenceSource": "profile",
"notes": "Listed on profile"
},
{
"key": "crewai",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "multi-agent",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
}
],
"flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"
}Facts JSON
[
{
"factKey": "vendor",
"label": "Vendor",
"value": "Sapph1re",
"category": "vendor",
"href": "https://github.com/sapph1re/agent-cost-guardrails",
"sourceUrl": "https://github.com/sapph1re/agent-cost-guardrails",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:12.391Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "protocols",
"label": "Protocol compatibility",
"value": "OpenClaw",
"category": "compatibility",
"href": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:12.391Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "handshake_status",
"label": "Handshake status",
"value": "UNKNOWN",
"category": "security",
"href": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-sapph1re-agent-cost-guardrails/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true,
"metadata": {}
}
]Change Events JSON
[]
Sponsored
Ads related to agent-cost-guardrails and adjacent AI workflows.