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 -q aihub-code     # -q: saída curta, sem o ruído do pip
# ou, sem PyPI, a partir de um arquivo .whl que você baixou/copiou:
pip install aihub_code-0.2.3-py3-none-any.whl
aihub setup && aihub login

Para atualizar use aihub update (verifica, instala em silêncio e mostra só as novidades). aihub update --check só confere a versão.

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); senha em branco = link por e-mail
aihub login --google   # entra pelo Google, sem senha

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 update · aihub update --check atualiza (ou só confere) com etapas curtas e novidades
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.3

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.3
File Size Uploaded Provenance Actions
aihub_code-0.2.3.tar.gz 26.5 kB Without provenance Details for aihub_code-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 51.9 kB

Release files / aihub_code-0.2.3.tar.gz

Download URL aihub_code-0.2.3.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ac7fe6b795592cd59800803591207703e3480f303302ae4e2c227121c13fc7e4
BLAKE2b-256 checksum
How to use checksums
1a045d74a10f6c7b82d7ca2a7aefb51228028a21c77ef5e77e3dd95af6a8aacd
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.3-py3-none-any.whl

Download URL aihub_code-0.2.3-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d5dcc7d9261c22c3a6d781689b12968397c7df8b08081be24d7eea5ee98025e
BLAKE2b-256 checksum
How to use checksums
bd043659f527bf5a5ee5f3586c24cc404aa65c8628344a64bb6489731819fbd6
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.3

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