Skip to main content

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 (traz tudo, inclusive o terminal remoto):

pkg install -y python
pip install aihub-code
# ou, sem PyPI, a partir de um arquivo .whl que você baixou/copiou:
pip install aihub_code-0.2.1-py3-none-any.whl
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) e https://*.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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aihub-code 0.2.1
File Size Uploaded Provenance Actions
aihub_code-0.2.1.tar.gz 18.7 kB Without provenance Details for aihub_code-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aihub-code 0.2.1
File Interpreter ABI Platform Actions
aihub_code-0.2.1-py3-none-any.whl Python 3 none any Details for aihub_code-0.2.1-py3-none-any.whl

Total release size: 36.6 kB

Release files / aihub_code-0.2.1.tar.gz

Download URL aihub_code-0.2.1.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4bccc861eccf9d61ae2eb0fdb4512038d4ac849ca4d5e9a162abe047d9454145
BLAKE2b-256 checksum
How to use checksums
aef8fbafd795e00dc028b8de508035e0994d64a861677925c69b6f72c4d19f39
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.1-py3-none-any.whl

Download URL aihub_code-0.2.1-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
308a5a00400a00fde6735729be3c55bcaf86feeaaa1e7ae94595cc292b587040
BLAKE2b-256 checksum
How to use checksums
bca49ef7f1b9b8a5e8ebfd4f0991fd1725cc15852085ee764033c3d54227dbcb
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.1

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.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page