Self-hosted AI observability backend
Project description
Logmera
Self-hosted AI observability platform for logging, monitoring, and debugging LLM applications.
Logmera helps developers capture prompts, responses, latency, and model performance — stored securely in your own database.
No cloud lock-in. No vendor-managed service required. Full control.
Why Logmera?
When building AI applications, you need visibility into what your models are doing.
Logmera provides:
- Prompt and response logging
- Latency and performance tracking
- Self-hosted storage (PostgreSQL)
- Simple SDK integration
- FastAPI backend with CLI
- Privacy-safe observability
Use Logmera to debug failures, monitor production systems, and understand AI behavior.
Quick Start (30 seconds)
1. Install
pip install logmera
2. Start PostgreSQL (Docker)
docker run --name logmera-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=logmera \
-p 5432:5432 -d postgres:16
3. Start Logmera
logmera --db-url "postgresql://postgres:postgres@localhost:5432/logmera"
Server starts at:
http://127.0.0.1:8000
Health check:
curl http://127.0.0.1:8000/health
Dashboard:
http://127.0.0.1:8000/
The root route serves the web dashboard for viewing and filtering logs.
Log Your First AI Event
Using Python SDK
import logmera
logmera.log(
project_id="demo",
prompt="Hello",
response="Hi there",
model="gpt-4",
latency_ms=120,
status="success"
)
That's it. Logmera stores it in PostgreSQL.
API Usage
Create Log
curl -X POST http://127.0.0.1:8000/logs \
-H "Content-Type: application/json" \
-d '{
"project_id": "demo",
"prompt": "Hello",
"response": "Hi",
"model": "gpt-4",
"latency_ms": 95,
"status": "success"
}'
View Logs
curl http://127.0.0.1:8000/logs
Architecture
Your AI App
│
▼
Logmera SDK
│
▼
Logmera Backend (FastAPI)
│ ▼ PostgreSQL Database
Your data stays in your infrastructure.
CLI Usage
Start server:
logmera --host 127.0.0.1 --port 8000
Provide database URL:
logmera --db-url "postgresql://user:pass@localhost:5432/logmera"
Disable prompt mode:
logmera --no-prompt --db-url "postgresql://..."
Configuration
Environment variables:
DATABASE_URL
DB_POOL_SIZE
DB_MAX_OVERFLOW
DB_POOL_TIMEOUT
LOGMERA_URL
LOGMERA_TIMEOUT_SECONDS
LOGMERA_RETRIES
Config file location:
~/.logmera/config.env
Production Deployment
Run with PostgreSQL on any server:
- Local machine
- VPS
- Docker
- Kubernetes
- Cloud VM
Logmera is fully self-hosted.
Use Cases
Logmera is ideal for:
- AI SaaS applications
- LLM agents
- Chatbots
- RAG systems
- AI automation pipelines
- Production AI monitoring
Roadmap
Planned features:
- Chrome extension
- VS Code extension
- Hosted cloud version
- Advanced analytics
- Multi-project management
Philosophy
Logmera is designed to be:
- Simple
- Self-hosted
- Fast
- Developer-friendly
- Privacy-focused
No vendor lock-in.
License
MIT License
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 logmera-0.1.2.tar.gz.
File metadata
- Download URL: logmera-0.1.2.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea28ab62c901b1fa6a94982b1b27a5c0a9d577f244dd3943492460e8967dc98a
|
|
| MD5 |
6fa9f8778f243091bb07c24f6eeb5dfb
|
|
| BLAKE2b-256 |
e7df4a3764d41b0743950087344edc8c0fc69af00d7241e562b7b0386e4cc3bb
|
File details
Details for the file logmera-0.1.2-py3-none-any.whl.
File metadata
- Download URL: logmera-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed3b15a7d6295cce6d4dd473900c40ffc7592dc88a9f7af0440c0a0f25f8a4f
|
|
| MD5 |
4105a60f5fce437089b7bbe1b6f722d0
|
|
| BLAKE2b-256 |
14d632aecfa02cb8e14c48d0c9390179ceed0bdbc06be72f58c0cd7d695c6a0d
|