{"id":22506671,"url":"https://github.com/denysvitali/gopilot-cli","last_synced_at":"2026-02-19T14:06:25.720Z","repository":{"id":264180759,"uuid":"892600469","full_name":"denysvitali/gopilot-cli","owner":"denysvitali","description":"A GitHub Copilot CLI, written in Go","archived":false,"fork":false,"pushed_at":"2025-01-31T08:05:33.000Z","size":666,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-10T18:46:07.654Z","etag":null,"topics":["cli","copilot","github","llm"],"latest_commit_sha":null,"homepage":"","language":"Go","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/denysvitali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-11-22T12:25:05.000Z","updated_at":"2025-02-27T01:00:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a429d01-09f5-4681-b064-d8574f7ea245","html_url":"https://github.com/denysvitali/gopilot-cli","commit_stats":null,"previous_names":["denysvitali/gopilot-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/denysvitali/gopilot-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysvitali%2Fgopilot-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysvitali%2Fgopilot-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysvitali%2Fgopilot-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysvitali%2Fgopilot-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denysvitali","download_url":"https://codeload.github.com/denysvitali/gopilot-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denysvitali%2Fgopilot-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29616961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"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":["cli","copilot","github","llm"],"created_at":"2024-12-07T00:47:40.176Z","updated_at":"2026-02-19T14:06:25.683Z","avatar_url":"https://github.com/denysvitali.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gopilot-cli\n\nA GitHub Copilot CLI, written in Go.\n\nInspired by [B00TK1D/copilot-api](https://github.com/B00TK1D/copilot-api).\n\n![Example](./docs/example-glow.png)\n\n[![Build Status](https://github.com/denysvitali/gopilot-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/denysvitali/gopilot-cli/actions)\n\n## Disclaimer\n\n\u003e [!IMPORTANT]\n\u003e This tool is not affiliated with GitHub, Microsoft or OpenAI.\n\u003e It might violate the GitHub Copilot terms of service - use at your own risk.\n\u003e\n\u003e This tool requires an active [GitHub Copilot](https://github.com/features/copilot) subscription\n\u003e (10$/month for individuals).\n\n\n## Example\n\n### `query`\n\n```bash\ngopilot-cli query \"How do I get the number of CPUs?\"\n```\n\n```plain\nnproc\n```\n\n### `code`\n\n```bash\ngopilot-cli -l Rust -m 500 -p 0.9 code \"Print the first 100 primes in the most efficient way possible\"\n```\n\n\u003e ```rust\n\u003e fn is_prime(n: u64) -\u003e bool {\n\u003e     if n == 2 {\n\u003e         return true;\n\u003e     }\n\u003e\n\u003e     if n \u003c 2 || n % 2 == 0 {\n\u003e         return false;\n\u003e     }\n\u003e\n\u003e     let mut i = 3;\n\u003e     while i * i \u003c= n {\n\u003e         if n % i == 0 {\n\u003e             return false;\n\u003e         }\n\u003e         i += 2;\n\u003e     }\n\u003e\n\u003e     return true;\n\u003e }\n\u003e\n\u003e fn main() {\n\u003e     let mut count = 0;\n\u003e     let mut i = 0;\n\u003e     while count \u003c 100 {\n\u003e         if is_prime(i) {\n\u003e             println!(\"{}\", i);\n\u003e             count += 1;\n\u003e         }\n\u003e         i += 1;\n\u003e     }\n\u003e }\n\u003e ```\n\u003e\n\u003e This code defines a function to check if a number is prime and prints the first 100 prime numbers.\n\u003e The `is_prime` function checks if a number is prime by dividing it by all odd numbers up to the square root of the number.\n\u003e The `main` function iterates through numbers, checks if they are prime using `is_prime`, and prints them until 100 primes are found.\n\n## Installation\n\n```\ngo install github.com/denysvitali/gopilot-cli@latest\n```\n\n## Usage\n\nCheck `gopilot-cli -h` for more information or refer to the examples above.\n\n\u003e [!TIP]\n\u003e You can pipe the output of the `gopilot-cli code` subcommand to [`glow`](https://github.com/charmbracelet/glow)\n\u003e to render the markdown code blocks in your terminal.\n\n\n## Suggested shell integrations\n\n### `ktip`\n\nProvides answers to your Kubernetes questions.\n\n![ktip example](./docs/ktip.png)\n\nAdd this to your `.zshrc` (or `.bashrc`):\n```zsh\nfunction ktip(){\n\tgopilot-cli -l Kubernetes -m 500 -p 0.9 code \"$1\" | glow\n}\n```\n\n### `gotip`\n\nProvides answers to your Go questions.\n\n![gotip example](./docs/gotip.png)\n\nAdd this to your `.zshrc` (or `.bashrc`):\n```zsh\nfunction gotip(){\n\tgopilot-cli -l Go -m 500 -p 0.9 code \"$1\" | glow\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenysvitali%2Fgopilot-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenysvitali%2Fgopilot-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenysvitali%2Fgopilot-cli/lists"}