{"id":13479057,"url":"https://github.com/leona/helix-gpt","last_synced_at":"2026-01-17T03:00:58.439Z","repository":{"id":218828933,"uuid":"747459446","full_name":"leona/helix-gpt","owner":"leona","description":"Code assistant language server for Helix with support for Copilot/OpenAI/Codeium/Ollama","archived":false,"fork":false,"pushed_at":"2025-04-16T16:00:33.000Z","size":53126,"stargazers_count":544,"open_issues_count":34,"forks_count":35,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-16T23:43:11.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leona.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-24T00:57:58.000Z","updated_at":"2025-04-16T23:31:46.000Z","dependencies_parsed_at":"2024-02-06T09:29:01.266Z","dependency_job_id":"ee90ffa5-9d36-441f-ac4f-1b9ba8391cc3","html_url":"https://github.com/leona/helix-gpt","commit_stats":null,"previous_names":["leona/helix-gpt"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/leona/helix-gpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leona%2Fhelix-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leona%2Fhelix-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leona%2Fhelix-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leona%2Fhelix-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leona","download_url":"https://codeload.github.com/leona/helix-gpt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leona%2Fhelix-gpt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:02:08.488Z","updated_at":"2026-01-17T03:00:58.398Z","avatar_url":"https://github.com/leona.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Misc"],"sub_categories":["Luke Pighetti Videos"],"readme":"# helix-gpt\n\n![Build Status](https://github.com/leona/helix-gpt/actions/workflows/release.yml/badge.svg)\n![Github Release](https://img.shields.io/badge/release-v0.34-blue)\n\nCode assistant language server for [Helix](https://github.com/helix-editor/helix) with support for Copilot/OpenAI/Codeium.\n\nCompletion example\n\n![helix-gpt example](https://github.com/leona/helix-gpt/raw/master/assets/example.gif)\n\nCode actions example (space + a)\n\n![helix-gpt example](https://github.com/leona/helix-gpt/raw/master/assets/example2.gif)\n\nAvailable code actions: `resolveDiagnostics` `generateDocs` `improveCode` `refactorFromComment` `writeTest`\n\n### How?\n\nWhen a trigger character is pressed it will request a completion and use the entire file as context.\nDefault triggers characters: `[\"{\", \"(\", \" \"]` can be overwritten with `--triggerCharacters \"{||(|| \"`\n\nUse `ctrl+x` to manually trigger completions, and `space+a` to trigger code actions that only use the selected code as context.\n\n### Install\n\nThis was made to run with [Bun](https://bun.sh/), but you can also use a precompiled binary.\n\n#### Without Bun\n\n```bash\nwget https://github.com/leona/helix-gpt/releases/download/0.34/helix-gpt-0.34-x86_64-linux.tar.gz \\\n-O /tmp/helix-gpt.tar.gz \\\n\u0026\u0026 tar -zxvf /tmp/helix-gpt.tar.gz \\\n\u0026\u0026 mv helix-gpt-0.34-x86_64-linux /usr/bin/helix-gpt \\\n\u0026\u0026 chmod +x /usr/bin/helix-gpt\n```\n\n#### With Bun (tested with 1.0.25)\n\n```bash\nwget https://github.com/leona/helix-gpt/releases/download/0.34/helix-gpt-0.34.js -O /usr/bin/helix-gpt\n```\n\n### Configuration\n\nYou can configure helix-gpt by exposing either the environment variables below, or by passing the command line options directly to helix-gpt in the Helix configuration step.\n\n[All configuration options](https://github.com/leona/helix-gpt/blob/master/src/config.ts)\n\nNOTE: Copilot is the best choice due to the model and implementation.\n\n#### Environment Variables\n\n```bash\nOPENAI_API_KEY=123 # Required if using openai handler\nCOPILOT_API_KEY=123 # Required if using copilot handler\nCODEIUM_API_KEY=123 # Not required, will use public API key otherwise.\nHANDLER=openai # openai/copilot/codeium\n```\n\n#### Command Line Arguments\n\n(Add to `command = \"helix-gpt\"` in Helix configuration)\n\n```bash\n--handler openai --openaiKey 123\n```\n\nYou can also use:\n\n```bash\nhelix-gpt --authCopilot\n```\n\nTo fetch your Copilot token.\n\n### Helix Configuration\n\nExample for TypeScript `.helix/languages.toml` tested with Helix 23.10 (older versions may not support multiple LSPs)\n\n```toml\n[language-server.gpt]\ncommand = \"helix-gpt\"\n\n[language-server.ts]\ncommand = \"typescript-language-server\"\nargs = [\"--stdio\"]\nlanguage-id = \"javascript\"\n\n[[language]]\nname = \"typescript\"\nlanguage-servers = [\n    \"ts\",\n    \"gpt\"\n]\n```\n\nIn case you opt out of the precompiled binary, modify as follows:\n\n```toml\n[language-server.gpt]\ncommand = \"bun\"\nargs = [\"run\", \"/app/helix-gpt.js\"]\n```\n\n### All Done\n\nIf there are any issues, refer to the helix-gpt and Helix log files:\n\n```bash\ntail -f /root/.cache/helix/helix.log\ntail -f /app/helix-gpt.log # Or wherever you set --logFile to\n```\n\n### Special Thanks\n\n- [rsc1975](https://github.com/rsc1975/bun-docker) for their Bun Dockerfile.\n\n### Todo\n\n- [x] Copilot support\n- [x] Resolve diagnostics code action\n- Self-hosted model support (partial support if they are openai compliant)\n- Inline completion provider (pending support from Helix)\n- Single config for all languages (pending [#9318](https://github.com/helix-editor/helix/pull/9318))\n- Support workspace commands to toggle functionality (pending Helix support for merging workspace commands)\n- Increase test coverage\n- Async load completions to show other language server results immediately (pending Helix support)\n- Improve recovery from errors as it can leave the editor unusable sometimes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleona%2Fhelix-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleona%2Fhelix-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleona%2Fhelix-gpt/lists"}