Support for Local LLM Endpoints (LM Studio, Ollama, etc.) #206
Replies: 2 comments
-
|
This is awesome @btcleet |
Beta Was this translation helpful? Give feedback.
-
|
The part that stands out to me is "Support for Local LLM Endpoints (LM Studio, Ollama, etc.)". That is usually where agent workflow routing starts to matter in practice, because the integration works at small scale but gets harder once real users, retries, and longer sessions show up. I would make provider/model choice explicit per agent step, then log usage and fallback reason for each tool loop. That makes it easier to move simple steps to cheaper routes while keeping stronger models for planning or final synthesis. I am testing an OpenAI-compatible multi-model API layer around official Chinese models, so this kind of agent workflow routing is directly relevant. For crystal, would routing be configured per agent role, per tool call, or dynamically from runtime signals? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add support for custom API endpoints to enable Crystal to work with local LLM servers like LM Studio, Ollama, and other OpenAI-compatible endpoints.
Motivation
Crystal is an excellent tool for managing multiple AI coding sessions in parallel. However, it currently only supports Claude Code (Anthropic) and Codex (OpenAI). Many developers prefer or need to use local LLMs for various reasons:
Proposed Solution
Configuration Options
Add a new assistant type (e.g., "Custom OpenAI-Compatible") with configurable settings:
Compatible Services
This would enable Crystal to work with popular local LLM servers:
UI Mockup
In the session creation flow, add an assistant type selector:
Implementation Considerations
Minimal Change Approach
Since LM Studio and similar tools provide OpenAI-compatible APIs, the implementation could leverage existing OpenAI integration with minimal changes:
Feature Parity
Some features might not be available with all local models:
Testing
Local models can be unpredictable, so consider:
Benefits
Alternative Approaches
Additional Context
Questions for Maintainers
Thank you for considering this feature request! Crystal is already an amazing tool, and local LLM support would make it accessible to an even wider community of developers.
Beta Was this translation helpful? Give feedback.
All reactions