Comparison
gptel vs LSP-AI
Both let you bring your own API key and both support OpenAI, Anthropic, Google Gemini. Differences below.
gptel Simple, provider-agnostic LLM client for Emacs. | LSP-AI Language server that adds LLM completion and chat to any LSP-capable editor. | |
|---|---|---|
| Editor score | 4.3 / 5 | 3.9 / 5 |
| Category | Coding Agents & IDEs | Coding Agents & IDEs |
| Pricing | Open source · Free & open source | Open source · Free & open source |
| Platforms | CLI | CLI |
| Providers | OpenAI, Anthropic, Google Gemini, OpenRouter, Mistral, Groq, DeepSeek, xAI, Ollama, Azure OpenAI, AWS Bedrock, Perplexity, Together AI, OpenAI-compatible | OpenAI, Anthropic, Google Gemini, Mistral, Ollama, OpenAI-compatible |
| Open source | Yes | Yes |
| Self-hostable | No | No |
| Local models | Yes | Yes |
| Key storage | On device | On device |
| Strengths |
|
|
| Drawbacks |
|
|
The verdict
gptel scores higher overall.
Choose gptel if you want fits Emacs workflows perfectly on CLI.
Choose LSP-AI if you want brings AI to Helix and others on CLI.
gptel vs LSP-AI: FAQ
- Is gptel or LSP-AI better?
- gptel has the higher editor score (4.3 vs 3.9). The better choice depends on platform, provider and pricing needs; see the table above.
- Which is cheaper, gptel or LSP-AI?
- gptel is open source (Free & open source). LSP-AI is open source (Free & open source). With both, model usage is billed separately by your API provider.
- Which handles API keys more safely?
- Both score 93/100 on the BYOK Tools Key Safety Score.
- Do gptel and LSP-AI support the same AI providers?
- Both support OpenAI, Anthropic, Google Gemini, Mistral, Ollama, OpenAI-compatible.
- Can gptel or LSP-AI run local models?
- Yes, both support local models such as Ollama.