whatisgithub

What is litellm-relay?

litellm-labs/litellm-relay — explained in plain English

Analysis updated 2026-05-18

83RustAudience · ops devopsComplexity · 4/5Setup · hard

In one sentence

An IT proxy that auto-configures AI coding tools like Claude Code and Codex through a company gateway, while also catching unsanctioned AI app usage.

Mindmap

mindmap
  root((repo))
    What it does
      Auto-configure AI tools
      Route traffic to gateway
      Detect shadow AI
      Show usage per developer
    Tech stack
      Rust
      LiteLLM AI Gateway
      macOS menu bar app
    Use cases
      Onboard developers to AI gateway
      Track company AI spend
      Catch unsanctioned AI tools
    Audience
      IT admins
      Engineering leaders
    Deployment
      Jamf
      Microsoft Intune
      Kandji

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically connect every developer's Claude Code or Codex install to a company AI gateway with no manual setup.

USE CASE 2

Detect and route traffic from unsanctioned AI tools like Notion AI or Perplexity through central monitoring.

USE CASE 3

Give each developer a local view of their own AI spend without a separate dashboard login.

USE CASE 4

Roll out consistent AI tool configuration across a company through existing device management software.

What is it built with?

RustLiteLLMmacOS

How does it compare?

litellm-labs/litellm-relayanvia-hq/lexarun-llama/sandboxed-lit
Stars838383
LanguageRustRustRust
Setup difficultyhardeasymoderate
Complexity4/52/53/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

No tagged release yet, so it must be built from source with Rust, and full rollout needs an MDM system and a LiteLLM Gateway already running.

So what is it?

LiteLLM Relay is a company IT tool installed on employee laptops through a device management system. It gives a company two things at once: an easy way to set up AI coding tools for developers, and a way to catch AI usage that IT does not already know about. On the setup side, when Relay is installed it scans the machine for AI tools it recognizes, currently Claude Desktop, Claude Code, and Codex in its CLI, VS Code, and macOS app forms, and automatically points each one at the company's LiteLLM AI Gateway. Developers do not need their own provider API key or any manual configuration. They just open the tool and sign in with their normal company login. Relay also rechecks the machine on a schedule, so if a developer installs one of these tools later, it gets configured automatically without anyone running Relay again by hand. On the monitoring side, Relay also detects AI traffic from tools that were not officially sanctioned, such as Notion AI or Perplexity, sometimes called shadow AI, and routes that traffic through the same Gateway. That gives the company a single place to see every request, response, and usage event from AI tools across the organization, rather than a blind spot for tools nobody signed off on. There is also an optional menu bar app for macOS that lets individual developers see their own AI spending locally on their machine, broken down by tool, without needing to log into a separate dashboard. It shows things like monthly spend, daily spend, which models are being used, and how often responses are served from cache. Relay says it does not log cookies or authorization headers, and that captured payloads are truncated with sensitive headers removed. It currently supports macOS, works with common device management systems like Jamf, Microsoft Intune, and Kandji, and is installed by building it from source in Rust, since it has not yet published a tagged release.

Copy-paste prompts

Prompt 1
Walk me through installing LiteLLM Relay on a Mac and pointing it at our LiteLLM Gateway.
Prompt 2
Explain how Relay auto-detects Claude Code and Codex on a machine and what config files it writes.
Prompt 3
Help me set up Jamf or Microsoft Intune to deploy this relay tool across our company's laptops.
Prompt 4
Show me how the menu bar app breaks down AI spend per coding tool for a developer.

Frequently asked questions

What is litellm-relay?

An IT proxy that auto-configures AI coding tools like Claude Code and Codex through a company gateway, while also catching unsanctioned AI app usage.

What language is litellm-relay written in?

Mainly Rust. The stack also includes Rust, LiteLLM, macOS.

How hard is litellm-relay to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is litellm-relay for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.