Local-first observability SDK for AI agents
Project description
beacon-agent
Local-first observability SDK for AI agents.
Instrument your agent with one decorator and get a live dashboard with traces, costs, and alerts — all running locally.
Install
pip install beacon-trace
Usage
from beacon import trace
@trace(agent_id="my-agent", api_url="http://localhost:8000")
def run_agent(prompt: str) -> str:
# your agent logic
return result
Full control:
from beacon import BeaconTracer
tracer = BeaconTracer(agent_id="my-agent", api_url="http://localhost:8000")
tracer.start_trace(metadata={"user_id": "123"})
tracer.log_step(
step_type="llm_call",
model="gpt-4",
input_tokens=1200,
output_tokens=400,
cost_usd=0.012,
latency_ms=1200
)
tracer.end_trace(status="success")
Dashboard
Start the Beacon server to see your traces:
curl -fsSL https://raw.githubusercontent.com/pisigmac/beacon/main/install.sh | bash
beacon start
Then open http://localhost:3000.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beacon_trace-1.0.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beacon_trace-1.0.0.tar.gz.
File metadata
- Download URL: beacon_trace-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ea77454e0896d5de6db739bf2d20c79f7f84f925747ea8e30cc9124f47490d2
|
|
| MD5 |
542e9020f6cc7d4f2d01711e3f39b93a
|
|
| BLAKE2b-256 |
30a0e62132cf9c04a28f50b23d5dc9474563fe561c67cc0036b1ec52d811a453
|
File details
Details for the file beacon_trace-1.0.0-py3-none-any.whl.
File metadata
- Download URL: beacon_trace-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d862082746e0efd4ada328ca073d6c8acd8ed281add31f1ba18e559d523960
|
|
| MD5 |
fb18e0ea420d4483e50e6fa33d742a5f
|
|
| BLAKE2b-256 |
a7cfe4efa5609c09dff5c18666fd5cbe7cb6c1b0393d7199bb888cadb38e7fb6
|