langobs-server
FastAPI backend for LangObs — real-time observability for AI agents.
Install
pip install langobs-server
Run
langobs-server
# REST API: http://localhost:8766/api/v1
# WebSocket: ws://localhost:8766/ws
# Dashboard: http://localhost:5173 (start separately)
Run from source
git clone https://github.com/langobs/langobs
cd langobs
make install && make dev
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/sessions |
List all sessions |
| GET | /api/v1/traces/{session_id} |
Get all trace events for a session |
| POST | /api/v1/traces/{session_id} |
Ingest trace events |
| GET | /api/v1/costs/{session_id} |
Cost breakdown |
| GET | /api/v1/hallucinations/{session_id} |
Hallucination alerts |
| POST | /api/v1/hallucinations/{session_id}/detect |
Run detection |
| GET | /api/v1/memory/{session_id} |
Memory entries |
| PATCH | /api/v1/memory/entry/{id} |
Edit memory entry |
| DELETE | /api/v1/memory/entry/{id} |
Delete memory entry |
| GET | /api/v1/replay/{session_id} |
Replay event stream |
| GET | /health |
Health check |
WebSocket Protocol
Connect to ws://localhost:8766/ws and send a hello message:
{ "type": "hello", "role": "sdk" }
Roles: "sdk" (agent sending events) or "dashboard" (browser receiving events).
Configuration
Environment variables (all optional):
| Variable | Default | Description |
|---|---|---|
DATABASE_URL |
sqlite+aiosqlite:///langobs.db |
Database URL |
HOST |
0.0.0.0 |
Bind address |
PORT |
8766 |
Port |
CORS_ORIGINS |
["*"] |
Allowed CORS origins |
License
MIT
Metadata
Release files for langobs-server 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langobs_server-0.2.0.tar.gz | 394.9 kB | Without provenance | Details for langobs_server-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langobs_server-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for langobs_server-0.2.0-py3-none-any.whl |
Total release size: 788.5 kB
Release files / langobs_server-0.2.0.tar.gz
| Download URL | langobs_server-0.2.0.tar.gz |
|---|---|
| Size | 394.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d90681bbf1f26670349499d1584cee4087d08062a873b045eafaa54225dd163
|
|
BLAKE2b-256 checksum How to use checksums |
f64f6b7353439767c8abe1d42f91348ef20cada8de5570b2f6cc299d5b8ae607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Release files / langobs_server-0.2.0-py3-none-any.whl
| Download URL | langobs_server-0.2.0-py3-none-any.whl |
|---|---|
| Size | 393.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f453f079051b00555b1b13afb5950d80c1c56534552525fda624e76ef3876879
|
|
BLAKE2b-256 checksum How to use checksums |
58b93c50fe83f945be382728ff57eba2e4819745f45df9e8a7baed948c564fbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.5
|
Security for langobs-server 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.