Skip to content

Build AI Agents with LM Studio

Local models served via LM Studio

Available LM Studio Models

ModelID
Qwen 2.5 7B Instructqwen2.5-7b-instruct
Llama 3.2 3B Instructllama-3.2-3b-instruct

Quick start code

agent.py
from agno.agent import Agent
from agno.models.lmstudio import LMStudio

agent = Agent(
    name="My LM Studio Agent",
    model=LMStudio(id="qwen2.5-7b-instruct"),
    instructions=["You are a helpful assistant."],
    markdown=True,
)

agent.print_response("Hello! What can you help me with?")

Install: pip install agno Then set API_KEY

Contact Us

Press Ctrl+Enter to send