Sign inSign up

gettorrixai/torrix

By gettorrixai

•Updated 6 days ago

Self-hosted LLM observability. Traces, cost, evals and a proxy for any provider.

Image
Integration & delivery
Developer tools
Monitoring & observability
1

1.1K

gettorrixai/torrix repository overview

⁠Torrix

Self-hosted observability for LLM apps and AI agents. Torrix records every model call your app makes: prompt, response, tokens, cost, latency, tool calls and errors. Calls are grouped into traces and sessions so you can follow what an agent did, step by step. Your data stays on your server.

Works with OpenAI, Anthropic, Gemini and any OpenAI-compatible API, through a drop-in HTTP proxy, the Python and TypeScript SDKs, OpenTelemetry, or the Claude Code and opencode plugins.

⁠Run it

docker run -d --name torrix -p 8088:8088 -v torrix_data:/data gettorrixai/torrix:latest

Open http://localhost:8088⁠ and create your account. The Integrations page gives you an API key and a ready-to-copy setup command for each integration.

The same image is published to ghcr.io/torrixai/torrix.

⁠Docker Compose

services:
  torrix:
    image: gettorrixai/torrix:latest
    restart: unless-stopped
    ports:
      - "8088:8088"
    volumes:
      - torrix_data:/data
volumes:
  torrix_data:

⁠Settings

VariableDefaultWhat it does
PORT8088port the server listens on
DB_PATH/data/torrix.sqliteSQLite file location
TORRIX_DATABASE_URLnonePostgres connection URL, used instead of SQLite when set
TORRIX_SECRET_KEYcreated for youencrypts saved credentials. Torrix creates a key file (torrix.secret.key) in /data on first start, so back it up with your data. With Postgres, set this yourself
TORRIX_SECRET_KEY_PREVIOUSnonethe old key while rotating TORRIX_SECRET_KEY. Stored credentials written with it are re-encrypted with the new key automatically, then you can remove it
TORRIX_PRICING_SYNCtrueset to false to stop the daily download of public model prices
TORRIX_LOCAL_HOSTnonelets Torrix reach a server on your network, for example host.docker.internal:11434 for Ollama. Covers MCP servers, directory sync, OIDC, alert webhooks, S3 or GCS exports and embeddings
TORRIX_ALLOW_PRIVATE_HOSTSfalselets Torrix call any private address, such as MCP servers and systems inside your network. Covers the same integrations as TORRIX_LOCAL_HOST. Cloud metadata addresses are never reachable
TORRIX_ALLOW_SIGNUPfalsethe first account is the administrator, then an administrator adds people. Set to true for open sign-up
TORRIX_LICENSE_KEYnonea Pro or Enterprise license key
TORRIX_LICENSE_REVOCATIONSnoneopt-in URL or file path to a signed revocation list; listed license serials return to Community. The list is verified and cached
TORRIX_OIDC_ISSUER, TORRIX_OIDC_CLIENT_ID, TORRIX_OIDC_CLIENT_SECRETnoneEnterprise: single sign-on. Also settable in the console, which takes priority. Optional: TORRIX_OIDC_REDIRECT_URI, TORRIX_OIDC_SCOPES (default openid email profile), TORRIX_OIDC_AUTO_PROVISION (default true)
TORRIX_EMBEDDINGS_URLnonePro and Enterprise: an OpenAI compatible embeddings endpoint for grouping similar prompts. Optional: TORRIX_EMBEDDINGS_KEY, TORRIX_EMBEDDINGS_MODEL
TORRIX_ATTESTATION_ISSUERtorrixEnterprise: the iss of the signed token added to calls Torrix forwards to your own MCP servers
TORRIX_RETENTION_DAYSkeep everythingdeletes runs older than this many days, once a day. Golden runs are kept

Telemetry is off in this image. Data lives in /data, so keep that volume when you upgrade.

⁠Tags

  • latest: the newest release
  • 1.4.0, 1.4: a specific release

Images are built for linux/amd64 and linux/arm64, run as a non-root user and include a health check on /health.

Tag summary

Content type

Image

Digest

sha256:4220eb1c8…

Size

60.7 MB

Last updated

6 days ago

docker pull gettorrixai/torrix