diff --git a/README.md b/README.md
index 4dda01e..f45b8b0 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,15 @@
Existing observability tools show you _what_ LLM calls were made. AgentLens shows you _why_ your agent made each decision along the way -- which tool it picked, what alternatives it rejected, and the reasoning behind every choice.
+## Getting Started
+
+1. **Register** at [agentlens.vectry.tech/register](https://agentlens.vectry.tech/register) with your email and password.
+2. **Log in** to the dashboard at [agentlens.vectry.tech](https://agentlens.vectry.tech).
+3. **Create an API key** in **Settings > API Keys**.
+4. **Install the SDK** and start tracing.
+
+> Self-hosting? You do not need to register with the hosted service. See [Self-Hosting](#self-hosting) below.
+
## Quick Start
```bash
@@ -27,6 +36,7 @@ pip install vectry-agentlens
```python
import agentlens
+# Use the API key you created in Settings > API Keys
agentlens.init(api_key="your-key", endpoint="https://agentlens.vectry.tech")
with agentlens.trace("my-agent-task", tags=["production"]):
@@ -41,7 +51,7 @@ with agentlens.trace("my-agent-task", tags=["production"]):
agentlens.shutdown()
```
-Open `https://agentlens.vectry.tech/dashboard` to see your traces.
+Open `https://agentlens.vectry.tech/dashboard` to see your traces (login required).
## Features
@@ -72,7 +82,7 @@ Add to your `opencode.json`:
}
```
-Set environment variables:
+Set environment variables (use the API key from your dashboard at **Settings > API Keys**):
```bash
export AGENTLENS_API_KEY="your-key"
@@ -90,6 +100,7 @@ npm install agentlens-sdk
```typescript
import { init, TraceBuilder, SpanType, SpanStatus } from "agentlens-sdk";
+// Use the API key from Settings > API Keys in your dashboard
init({ apiKey: "your-key", endpoint: "https://agentlens.vectry.tech" });
const trace = new TraceBuilder("my-agent-task", {
@@ -173,8 +184,24 @@ with agentlens.trace("planner"):
| `MEMORY_RETRIEVAL` | Agent chose what context to retrieve |
| `CUSTOM` | Any other decision type |
+## Pricing
+
+AgentLens cloud ([agentlens.vectry.tech](https://agentlens.vectry.tech)) offers three billing tiers. One trace equals one session for billing purposes.
+
+| Plan | Price | Sessions | Details |
+|------|-------|----------|---------|
+| **Free** | $0 | 20 sessions/day | No credit card required |
+| **Starter** | $5/month | 1,000 sessions/month | For individual developers |
+| **Pro** | $20/month | 100,000 sessions/month | For teams and production workloads |
+
+Manage your subscription in **Settings > Billing** in the dashboard.
+
+Self-hosted instances are not subject to these limits.
+
## Self-Hosting
+Self-hosted AgentLens instances do not require registration with the hosted SaaS service. You manage your own API keys and have no session limits.
+
```bash
git clone https://gitea.repi.fun/repi/agentlens.git
cd agentlens
diff --git a/apps/web/src/app/docs/api-reference/page.tsx b/apps/web/src/app/docs/api-reference/page.tsx
index e74e83e..4e99295 100644
--- a/apps/web/src/app/docs/api-reference/page.tsx
+++ b/apps/web/src/app/docs/api-reference/page.tsx
@@ -55,9 +55,37 @@ export default function ApiReferencePage() {
- All write endpoints require a Bearer token in the Authorization header:
+ All API endpoints require a Bearer token in the Authorization header.
+ To obtain an API key, register at{" "}
+
+ agentlens.vectry.tech/register
+
+ , log in, and create a key in{" "}
+ Settings → API Keys
+ .
+ Rate limits:{" "}
+ API usage is governed by your billing tier. The Free plan allows 20
+ sessions per day. Starter ($5/month) allows 1,000 sessions per
+ month. Pro ($20/month) allows 100,000 sessions per month. One trace
+ equals one session for billing purposes. Manage your plan in{" "}
+ Settings → Billing
+ . See{" "}
+
+ Authentication & Billing
+ {" "}
+ for details.
+ Authentication
+ AgentLens cloud requires an account to access the dashboard and ingest + traces. This page covers registration, API key management, billing + tiers, and session counting. +
+ ++ To use AgentLens cloud, create an account at{" "} + + agentlens.vectry.tech/register + + . You will need to provide an email address and password. Once + registered, log in at{" "} + + agentlens.vectry.tech + {" "} + to access the dashboard. +
++ The dashboard requires authentication -- there is no anonymous access. + All features including trace viewing, analytics, and settings are + available only after login. +
++ API keys authenticate your SDKs and integrations when sending traces + to AgentLens. Keys are generated per-user in the dashboard. +
+
+ Pass the key to the SDK during initialization, or set it as the{" "}
+
+ AGENTLENS_API_KEY
+ {" "}
+ environment variable. The SDKs will pick it up automatically.
+
+ Security note:{" "} + Treat API keys like passwords. Do not commit them to version control. + Use environment variables or a secrets manager in production. +
++ AgentLens cloud offers three billing tiers. One trace equals one + session for billing purposes. +
+| + Plan + | ++ Price + | ++ Sessions + | ++ Details + | +
|---|---|---|---|
| Free | +$0 | +20 sessions/day | ++ No credit card required. Ideal for experimentation and + personal projects. + | +
| Starter | +$5/month | +1,000 sessions/month | ++ For individual developers with moderate tracing needs. + | +
| Pro | +$20/month | +100,000 sessions/month | ++ For teams and production workloads with high trace volume. + | +
+ A session is equivalent to a single trace sent to the AgentLens API.
+ Each call to{" "}
+
+ POST /api/traces
+ {" "}
+ that includes one trace counts as one session, regardless of how many
+ spans, decision points, or events are inside that trace.
+
+ If you batch multiple traces in a single API call, each trace in the + batch counts as a separate session. +
++ To view your current plan, upgrade, downgrade, or manage payment + methods, go to{" "} + + Settings → Billing + {" "} + in the dashboard. Changes take effect immediately. If you downgrade + mid-cycle, you retain access to the higher tier until the end of the + current billing period. +
++ If you are running a self-hosted AgentLens instance, registration with + the hosted SaaS service is not required. Self-hosted deployments + manage their own authentication and have no session limits or billing + tiers. See the{" "} + + Self-Hosting guide + {" "} + for setup instructions. +
++ Before you can send traces, you need an AgentLens account. Register + with your email and password at{" "} + + agentlens.vectry.tech/register + + . Once registered, log in to the dashboard and navigate to{" "} + Settings → API Keys{" "} + to generate your first API key. +
++ Self-hosting?{" "} + If you are running your own AgentLens instance, you do not need to + register with the hosted service. See the{" "} + + Self-Hosting guide + {" "} + instead. +
++ Each trace you send counts as one session for billing purposes. + AgentLens cloud offers three tiers: +
+| Plan | +Price | +Sessions | +
|---|---|---|
| Free | +$0 | +20 sessions/day | +
| Starter | +$5/month | +1,000 sessions/month | +
| Pro | +$20/month | +100,000 sessions/month | +
+ Manage your subscription in{" "} + Settings → Billing{" "} + in the dashboard. Self-hosted instances are not subject to these + limits. See{" "} + + Authentication & Billing + {" "} + for full details. +
+AgentLens is open source and designed to be self-hosted. You can deploy it with Docker in minutes, or run from source for development. + Self-hosted instances do not require registration with the AgentLens + cloud service and are not subject to any session limits or billing + tiers.