Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,15 +294,15 @@ tracer = Tracer(
)
```

| | Free | Pro ($39/mo) | Team ($79/mo) |
| | Trial (14d free) | Pro ($39/mo) | Team ($79/mo) |
|---|---|---|---|
| SDK + local guards | Unlimited | Unlimited | Unlimited |
| Dashboard traces | - | 100K/mo | 500K/mo |
| Budget alerts (email/webhook) | - | Yes | Yes |
| Remote kill switch | - | Yes | Yes |
| Team members | - | 1 | 10 |
| Dashboard events | 500K/mo | 500K/mo | 5M/mo |
| Budget alerts (email/webhook) | Yes | Yes | Yes |
| Remote kill switch | Yes | Yes | Yes |
| Team members | 1 | 1 | 10 |

[Start free](https://app.agentguard47.com) | [View pricing](https://agentguard47.com/#pricing)
[Start free trial](https://app.agentguard47.com) | [View pricing](https://agentguard47.com/#pricing)

## Architecture

Expand Down
59 changes: 59 additions & 0 deletions examples/dashboard_quickstart.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
"""
Dashboard quickstart — connect your agent to the AgentGuard dashboard.

Sign up at https://app.agentguard47.com and grab an API key from Settings.
Then run: AG_API_KEY=ag_... python examples/dashboard_quickstart.py
"""

import os

from agentguard import Tracer, BudgetGuard, BudgetExceeded
from agentguard.sinks.http import HttpSink
from agentguard.cost import estimate_cost

api_key = os.environ.get("AG_API_KEY")
if not api_key:
print("Set AG_API_KEY to your AgentGuard API key.")
print(" Sign up free: https://app.agentguard47.com")
print(" Create a key in Settings > API Keys")
raise SystemExit(1)

# Budget guard — halts at $5, warns at 80%
budget = BudgetGuard(
max_cost_usd=5.00,
warn_at_pct=0.8,
on_warning=lambda msg: print(f" WARNING: {msg}"),
)

# Connect to the dashboard — traces, costs, and kill signals all flow here
tracer = Tracer(
sink=HttpSink(
url="https://app.agentguard47.com/api/ingest",
api_key=api_key,
),
service="my-agent",
guards=[budget],
)

print("Connected to AgentGuard dashboard.")
print("Simulating agent calls with a $5.00 budget...\n")

with tracer.trace("agent.run") as span:
for i in range(1, 50):
try:
with span.span("llm.completion", data={"model": "gpt-4o", "call": i}):
# Your real LLM call goes here — we simulate cost
cost = estimate_cost("gpt-4o", input_tokens=1000, output_tokens=500)
budget.consume(cost_usd=cost)
print(f" Call {i}: ${budget.state.cost_used:.2f} spent")
except BudgetExceeded as e:
print(f"\n STOPPED at call {i}: {e}")
break

print(f"\nOpen your dashboard to see the trace:")
print(f" https://app.agentguard47.com")
print(f"\nThe dashboard shows:")
print(f" - Full trace timeline with every span")
print(f" - Cost breakdown by model")
print(f" - Budget guard events")
print(f" - Kill switch (stop agents remotely)")
16 changes: 8 additions & 8 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,16 @@ <h2>What builders say</h2>
<h2 id="pricing">Pricing</h2>
<div class="pricing-grid">
<div class="pricing-card">
<h3>Free</h3>
<p class="muted" style="margin:0 0 4px;font-size:14px">For solo builders</p>
<h3>Trial</h3>
<p class="muted" style="margin:0 0 4px;font-size:14px">14-day free trial</p>
<div class="price">$0</div>
<ul>
<li>10,000 events/month</li>
<li>7-day history</li>
<li>See your spend, set basic caps</li>
<li>2 API keys &middot; 1 user</li>
<li>500,000 events/month</li>
<li>30-day history</li>
<li>Full features, no credit card</li>
<li>5 API keys &middot; 1 user</li>
</ul>
<a class="btn btn-sm secondary" href="https://app.agentguard47.com/sign-up">Start Free</a>
<a class="btn btn-sm secondary" href="https://app.agentguard47.com/sign-up">Start Free Trial</a>
</div>
<div class="pricing-card highlight">
<h3>Pro</h3>
Expand Down Expand Up @@ -380,7 +380,7 @@ <h2>FAQ</h2>
</details>
<details>
<summary>Do I need a credit card?</summary>
<div>No. The free tier gives you 10,000 events/month with no credit card required.</div>
<div>No. The 14-day free trial gives you 500,000 events/month with no credit card required.</div>
</details>
</div>

Expand Down