{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "simonw-llm--point-llm-at-any-openai-compatible-endpoint",
 "repo": "simonw/llm",
 "repo_url": "https://github.com/simonw/llm",
 "repo_slug": "simonw-llm",
 "title": "Point LLM at any OpenAI-compatible endpoint",
 "page_title": "How to point LLM at any OpenAI-compatible endpoint with LLM",
 "summary": "Use uvx to run prompts or chats against LM Studio or another compatible server with no setup.",
 "who": "A developer trying out models served by LM Studio or a similar local server.",
 "problem": "Configuring each server as a model takes time.",
 "outcome": "A prompt or chat answered by your endpoint without installing LLM first.",
 "steps": [
  "Start your OpenAI-compatible server, for example LM Studio",
  "Run `uvx llm openai endpoint http://localhost:1234/v1` with `-m` and your model name followed by your prompt",
  "Add `--chat` for an interactive session",
  "Add `--key your-api-key` if the endpoint needs authentication"
 ],
 "agent_prompt": "Using simonw/llm via uvx, run a prompt against my endpoint <url> and model <name> with `uvx llm openai endpoint`, then start a `--chat` session.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Exact multi-line command is in the README quick start.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip, or Homebrew, pipx or uv",
  "An API key for a hosted model, or a local model server such as Ollama or LM Studio",
  "Plugins for providers such as Gemini"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/simonw-llm/point-llm-at-any-openai-compatible-endpoint/",
 "md": "https://dedupedai.com/use-cases/simonw-llm/point-llm-at-any-openai-compatible-endpoint/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/simonw-llm--point-llm-at-any-openai-compatible-endpoint.json",
 "api_version": "v1"
}
