SDK feature parity
All official Amlexia SDKs implement the same core feature set.
| Feature | Node | Python | Go | Ruby |
|---|---|---|---|---|
| Buffered client + auto flush | ✅ | ✅ | ✅ | ✅ |
from_env / env config | ✅ | ✅ | ✅ | ✅ |
| Optional timestamp (server default) | ✅ | ✅ | ✅ | ✅ |
| Auto cost estimation (ingest) | ✅ | ✅ | ✅ | ✅ |
Sampling (sample_rate 0–1) | ✅ | ✅ | ✅ | ✅ |
| Diagnostic mode | ✅ | ✅ | ✅ | ✅ |
| Health check | ✅ | ✅ | ✅ | ✅ |
CLI amlexia health | ✅ | ✅ | ✅ | ✅ |
| HTTP outbound wrapper | ✅ | ✅ | ✅ | ✅ |
| OpenAI helper | ✅ | ✅ | ✅ | ✅ |
| Anthropic helper | ✅ | ✅ | ✅ | ✅ |
| Tracing (trace/span context) | ✅ | ✅ | ✅ | ✅ |
| 402 monthly usage handling | ✅ | ✅ | ✅ | ✅ |
Packages
| Language | Install |
|---|---|
| Node.js | npm install @amlexiahq/node |
| Python | pip install amlexia |
| Go | go get github.com/amlexiahq/amlexia-go |
| Ruby | gem install amlexia |
Environment variables
| Variable | Required |
|---|---|
AMLEXIA_SDK_KEY | Yes |
AMLEXIA_INGEST_URL | No (default https://ingest.amlexia.com) |
AMLEXIA_ENVIRONMENT | No (production, staging, …) |
AMLEXIA_RELEASE | No |
Runtimes
Node SDK also runs on Bun, Deno, and Cloudflare Workers — see Bun, Deno & Edge.
