AI Hub Code no Termux
Cliente de linha de comando (Python, só biblioteca padrão) do backend AI Hub Code.
Instalar sem GitHub (pip)
Pacote aihub-code (só biblioteca padrão; [term] acrescenta o terminal remoto):
pkg install -y python
pip install "aihub-code[term]" # quando publicado no PyPI
# ou, sem PyPI, a partir de um arquivo .whl que você baixou/copiou:
pip install "aihub_code-0.2.0-py3-none-any.whl[term]"
aihub setup && aihub login
Gerar o .whl (no repositório): cd termux && python3 -m pip install build && python3 -m build --wheel.
Instalar pelo GitHub
pkg install -y git python
git clone https://github.com/creelyzinho/ai-hub && cd ai-hub && git checkout claude/ai-hub-remove-ccr
sh termux/install.sh
aihub setup # busca os dados públicos de login no backend
aihub login # e-mail e senha (a senha não é salva)
Se aihub setup disser que o backend não publicou os dados de login, use:
aihub setup --supabase-url https://<projeto>.supabase.co --supabase-key <chave PUBLICÁVEL> (nunca a chave secreta).
Comandos
| Comando | O que faz |
|---|---|
aihub (sem argumentos) |
abre a interface interativa estilo Claude Code: avatar, resposta em streaming, /help lista os /comandos (/avatar mostra a logo grande) |
aihub chat [texto] |
conversa (sem texto abre o modo interativo; --model, --project, --no-save) |
aihub tasks new <meta> / list / show / run / watch / cancel / pause / resume <id> |
tarefas dos agentes (id aceita prefixo) |
aihub notify |
avisa pelo Termux:API quando uma tarefa termina |
aihub memory list/add/search/rm |
memória persistente (--kind, --project) |
aihub projects list/add/rm |
projetos |
aihub term |
terminal remoto no Codespace (sair: Ctrl+]) |
aihub status, models, history, whoami, logout |
utilitários |
Segurança
- Só fala com
https://*.vyntrica.com(backend) ehttps://*.supabase.co(login). - Tokens em
~/.config/aihub-code/session.json(modo 0600); a senha nunca é gravada. - Só modelos gratuitos aprovados no backend; o cliente não escolhe provedores pagos.
- Testes:
python3 -m unittest tests.test_termux_client -v
Metadata
Release files for aihub-code 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aihub_code-0.2.0.tar.gz | 18.6 kB | Without provenance | Details for aihub_code-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aihub_code-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for aihub_code-0.2.0-py3-none-any.whl |
Total release size: 36.6 kB
Release files / aihub_code-0.2.0.tar.gz
| Download URL | aihub_code-0.2.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee4ac25899cad40444c2ac2032a80908372bd536aeb2368845ea10ba775b8279
|
|
BLAKE2b-256 checksum How to use checksums |
c489c79dba523f16413b17b91fe7bae480a414ccd865849105d01714762eddd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / aihub_code-0.2.0-py3-none-any.whl
| Download URL | aihub_code-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebc33de058bb348829c021e3ca8667ea47c225e142f1d3fa768654cde68e054b
|
|
BLAKE2b-256 checksum How to use checksums |
cf4929496eb3368d50a2e1cb01d1539dc4f859fdb1756510ef18f7d9eaaa8252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for aihub-code 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.