Code assistant LSP for Helix editor
Top 53.9% on sourcepulse
This project provides a language server for the Helix text editor, integrating AI-powered code completion and actions from services like Copilot, OpenAI, and Codeium. It aims to enhance developer productivity by offering intelligent suggestions and code manipulation directly within the editor, supporting various AI backends and offering flexible configuration.
How It Works
The language server operates by intercepting trigger characters (defaulting to {
, (
,
) or manual triggers (ctrl+x
) to request code completions. It sends the entire current file as context to the selected AI backend. Code actions, such as resolving diagnostics, generating documentation, improving code, or writing tests, are triggered via space+a
and use only the selected code as context. This approach leverages existing AI models for intelligent code assistance within the Helix environment.
Quick Start & Requirements
wget ... && tar ... && mv ... && chmod +x ...
) or use Bun (wget ... -O /usr/bin/helix-gpt
).OPENAI_API_KEY
, COPILOT_API_KEY
, CODEIUM_API_KEY
environment variables or pass arguments like --handler openai --openaiKey 123
. Configure Helix's languages.toml
to include gpt
as a language server.tail -f /root/.cache/helix/helix.log
and tail -f /app/helix-gpt.log
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is in active development with several items listed as "Todo," including pending support from Helix for inline completions and workspace commands. There's a note that errors can sometimes leave the editor unusable, suggesting potential stability issues.
3 months ago
1 day