Performance Notice: Models below 30 billion parameters have shown significantly lower performance on agentic coding tasks. While smaller models can be useful for experimentation and learning, they are generally not recommended for production coding work or complex software engineering tasks.
Configuration
Add to~/.factory/settings.json:
model with the exact model identifier shown by your LM Studio local server.
Setup
- Install LM Studio from lmstudio.ai
- Download a coding model, such as Qwen Coder or another OpenAI-compatible chat model
- Open the Developer tab in LM Studio
- Load your model and start the local server
- Confirm the server is running at
http://localhost:1234/v1 - Add the configuration above to Factory config
Finding Your Model ID
LM Studio exposes loaded models through its OpenAI-compatible API:id value as the model in your Factory configuration.
Troubleshooting
Local server not connecting
- Ensure the LM Studio local server is running from the Developer tab
- Check that the server port matches your
baseUrl, usually1234 - Try
curl http://localhost:1234/v1/modelsto test connectivity
Model not found
- Load the model in LM Studio before using it from Factory
- Confirm the exact model ID with
curl http://localhost:1234/v1/models
Notes
- LM Studio’s local API does not require authentication, so use any placeholder value for
apiKey - Base URL format:
http://localhost:1234/v1 - Use the
openaiprovider with LM Studio’s OpenAI-compatible endpoints
