github / github/copilot-cli

Please support installs on Android Termux, even just 1line requests.

未关闭
#488 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the feature or problem you'd like to solve

Android Termux: no Copilot CLI availability?, neither convo CCstyle -NOR- copilot "prompt"

### Proposed solution

I don't believe any of the possibilities below will help with inline terminal issues in Termux.

______________
I'd like to get just copilot "prompt" access on termux
Copilot said: Here’s what you need to know about
Here’s what you need to know about getting Copilot “prompt” access (codegen via CLI) on Termux:

1. No Official Standalone “Prompt”/API Mode
GitHub Copilot CLI (copilot suggest) is built to work via its packaged CLI, and it:

Relies on native modules (pty.node) for terminal/tty emulation,
Is NOT supported on Termux/Android (as you saw, native modules cannot be loaded),
There is no “prompt-only” copilot-cli mode or public HTTP API for personal use.
2. Workarounds / Alternatives
Here are practical options:

A. Use Copilot Web (easiest)
Go to https://github.com/skills/copilot-cli
Or use [GitHub Copilot Chat](https://github.com/features/copilot) on the web, Copilot in GitHub web editor, or the VS Code extension.
B. SSH into a Supported Linux/Mac/Windows Machine
Run Copilot CLI on a desktop/server and SSH from Termux to that server.
This way, your phone is just a terminal; Copilot CLI works on the server.
C. Use Unofficial APIs, Plugins, or Services
There is no official public Copilot prompt API or “copilot prompt” endpoint for non-CLI direct codegen.

Some open-source projects attempt to provide Copilot-style APIs using reverse proxies or browser automation, but these are risky and not recommended (violate GitHub TOS).
Avoid “Copilot API” Python packages—they are not official and may be unstable, illegal, or get your account banned.
D. Other AI models
You can use open source codegen models (like [Ollama](https://ollama.com/) or [Code Llama](https://github.com/facebookresearch/codellama)), some of which run on ARM.

These won’t be as powerful or context-aware as Copilot.
3. Summary
There is no supported way to get Copilot CLI “prompt”/suggest on Termux.
You can use Copilot via GitHub.com, VS Code, or by SSH-ing into a compatible server.
There’s no public Copilot prompt or REST API for direct codegen.
If you want, I can:

Help you set up a solution via SSH,
Suggest AI codegen tools that do run on Termux/Android,
Or assist with browser/desktop integration!
Let me know what workflow you want.

A. Use Copilot Web (easiest)
Go to https://github.com/skills/copilot-cli
Or use [GitHub Copilot Chat](https://github.com/features/copilot) on the web, Copilot in GitHub web editor, or the VS Code extension.
B. SSH into a Supported Linux/Mac/Windows Machine
Run Copilot CLI on a desktop/server and SSH from Termux to that server.
This way, your phone is just a terminal; Copilot CLI works on the server.
C. Use Unofficial APIs, Plugins, or Services
There is no official public Copilot prompt API or “copilot prompt” endpoint for non-CLI direct codegen.

Some open-source projects attempt to provide Copilot-style APIs using reverse proxies or browser automation, but these are risky and not recommended (violate GitHub TOS).
Avoid “Copilot API” Python packages—they are not official and may be unstable, illegal, or get your account banned.
D. Other AI models
You can use open source codegen models (like [Ollama](https://ollama.com/) or [Code Llama](https://github.com/facebookresearch/codellama)), some of which run on ARM.

These won’t be as powerful or context-aware as Copilot.
3. Summary
There is no supported way to get Copilot CLI “prompt”/suggest on Termux.
You can use Copilot via GitHub.com, VS Code, or by SSH-ing into a compatible server.
There’s no public Copilot prompt or REST API for direct codegen.
If you want, I can:

Help you set up a solution via SSH,
Suggest AI codegen tools that do run on Termux/Android,
Or assist with browser/desktop integration!
Let me know what workflow you want.

### Example prompts or workflows

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。