Installation
As a Library
Section titled “As a Library”Add LLMG to your Cargo.toml:
[dependencies]llmg-core = "0.1.9"llmg-providers = { version = "0.1.9", features = ["openai", "anthropic"] }Enable only the provider features you need to keep compile times low.
As a Gateway
Section titled “As a Gateway”From Crates.io (Recommended)
Section titled “From Crates.io (Recommended)”cargo install llmg-gatewayFrom Source
Section titled “From Source”git clone https://github.com/modpotatodotdev/LLMG.gitcd LLMGcargo build --release --bin llmg-gatewayThe binary will be at target/release/llmg-gateway (or in your cargo bin path if installed).
Docker
Section titled “Docker”docker pull ghcr.io/modpotatodotdev/llmg:latestdocker run -p 8080:8080 -e OPENAI_API_KEY=sk-... ghcr.io/modpotatodotdev/llmg:latestSee the Docker guide for full configuration.