voice-ai

inference: Swap Any LLM with a Single Code Change

Run open‑source, speech or multimodal models on cloud, on‑prem, or laptop through one production‑ready API—ideal for founders seeking flexible AI deployment. 9.6k+ GitHub stars

From the repo · “Swap GPT for any LLM by changing a single line of code. Xinference lets you run open-source, speech, and multimodal models on cloud, on-prem, or your laptop — all through one unified, production-ready inference API.”

intermediate⏱ 30 minutes💵 Free (self-hosted)
9,625 stars+13★ this week887 forksPythonGuide quality 9/10 · reviewed Oct 8Updated 10/23/2026100% free · open source
What it is

Run different AI models by changing a single line of code.

Real use case example

"A founder wants to use the latest version of a chatbot model with their customer support app. They can switch out the model by updating a line of code, then test and deploy the changes without affecting their users. With Xinference, they can run the new model on their cloud server instantly."

Best insideClaude DesktopClaude CodeCursor
When to use it
  • •When you need to compare the performance of different LLMs for your application
  • •When you want to deploy a single API that can handle multiple speech, open-source, and multimodal models
  • •When you need to test and integrate LLMs in different environments, such as cloud, on-prem, or local laptops
Ready-to-paste prompt
Modify the example code to run a specific LLM, such as swapping GPT for another model, and test the API with a prompt like 'What is the capital of France?'
Heads up: Make sure you have the necessary dependencies and runtime environment set up, as the inference API requires specific versions of Python and other libraries to function correctly
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🛠️ Technical setup

Expect 20–40 minutes in a terminal — or let your AI agent drive it.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/inference && curl -fsSL https://workflowstacks.com/api/skills/inference/claude-skill -o ~/.claude/skills/inference/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How inference: Swap Any LLM with a Single Code Change works
Codeflow
Free to inspect

Inference: Swap Any LLM with a Single Code Change is a very large Python project (~154k lines across 588 code files, plus 260 test files). It is a full software project: use it through its install path rather than reading it end to end. Last commit this month, Apache-2.0 license, has a test suite.

Size
Very large codebase
~154k lines · 588 code files · days to read — use, don't read
Setup
Developer setup
A real software project. Use it via its install path; don't expect to read it all.
Runs on
Python
No API keys detected
Python 82%TypeScript 17%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    pyproject.toml
    Dependencies and the commands it exposes
What's in each folder
frontend/Frontend / UI214 files
doc/Documentation1810 files
xinference/Folder663 files
monitor/Folder56 files
READMES/Folder9 files
benchmark/Evaluations & benchmarks8 files
.github/CI / automation (GitHub Actions)12 files
assets/Images & static assets6 files
READMEHas testsDocumentedCI checksApache-2.0 licenseUpdated this month
Quick Actions
Details
Creator
xorbitsai
Language
Python
Category
voice-ai
Published
6/14/2023

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/inference.svg)](https://workflowstacks.com/skills/inference?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.