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.2-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
/avatar think · /avatar run (dentro do aihub) mostra a animação do avatar por 5 s
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

Avatar animado

Enquanto a IA trabalha, um mini avatar aparece embaixo do texto e o anel gira:

  • laranja quando ela está respondendo ou pesquisando;
  • arco-íris quando ela está executando comandos (/tasks, /status, …). Precisa de terminal com pelo menos 14 linhas; em terminal menor, aparece só o spinner de uma linha.

Metadata

Release files for aihub-code 0.2.2

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.2
File Size Uploaded Provenance Actions
aihub_code-0.2.2.tar.gz 22.2 kB Without provenance Details for aihub_code-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 43.4 kB

Release files / aihub_code-0.2.2.tar.gz

Download URL aihub_code-0.2.2.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2972d2d28eab5f3be5218f3f4361d987e3c18e5a8d9faaa3ae215745984b5c4d
BLAKE2b-256 checksum
How to use checksums
54b21f09ce23071509f52e0ab1bb8f42ca30a2dd6b02e4ae8d304ed5061ad376
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.2-py3-none-any.whl

Download URL aihub_code-0.2.2-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf34565361ad77310eec26cae5ab11ef55087286e9995018a9528bf0f208e268
BLAKE2b-256 checksum
How to use checksums
c5c979ccae688587ec4fb43e90210a8b60bf06946a5f8bca7fec5f556ed710f2
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.2

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.2 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