Who it is forA developer trying out models served by LM Studio or a similar local server.
The problemConfiguring each server as a model takes time.
The outcomeA prompt or chat answered by your endpoint without installing LLM first.
What you need first
- 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
Steps
- Start your OpenAI-compatible server, for example LM Studio
- Run
uvx llm openai endpoint http://localhost:1234/v1with-mand your model name followed by your prompt - Add
--chatfor an interactive session - Add
--key your-api-keyif the endpoint needs authentication
Prompt for your agent
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.
Caveat. Exact multi-line command is in the README quick start.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for simonw/llm and "Point LLM at any OpenAI-compatible endpoint"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer