mirror of
https://github.com/hanzoai/bot-hub.git
synced 2026-10-30 18:46:42 +00:00
Migration from Convex/Vercel to self-hosted infrastructure: API Backend (api/): - Hono server with PostgreSQL (Drizzle ORM) + pgvector - Skills CRUD, search (hybrid vector + lexical), auth (hanzo.id OAuth) - Upload (MinIO S3), stars, comments, API tokens - Rate limiting middleware, session management Frontend Adapter (src/lib/): - api.ts: REST API client replacing Convex SDK - hooks.ts: React hooks replacing convex/react useQuery/useMutation - AuthContext.tsx: Auth provider replacing ConvexAuthProvider Deployment: - Dockerfile (multi-stage: API build + web build + production) - K8s manifests for hub.hanzo.bot on hanzo-k8s - GitHub Actions CI/CD (build → GHCR → deploy) Rebrand: - clawhub/clawdhub/ClawHub → bothub/Bot Hub - Domain: clawhub.ai → hub.hanzo.bot - CLI: clawhub → bothub - Package: @hanzo/bot-hub-api
1.5 KiB
1.5 KiB
bothub
Bot Hub CLI — install, update, search, and publish agent skills as folders.
Install
# From this repo (shortcut script at repo root)
bun bothub --help
# Once published to npm
# npm i -g bothub
Auth (publish)
bothub login
# or
bothub auth login
# Headless / token paste
# or (token paste / headless)
bothub login --token clh_...
Notes:
- Browser login opens
https://hub.hanzo.bot/cli/authand completes via a loopback callback. - Token stored in
~/Library/Application Support/bothub/config.jsonon macOS (override viaBOTHUB_CONFIG_PATH, legacyCLAWDHUB_CONFIG_PATH).
Examples
bothub search "postgres backups"
bothub install my-skill-pack
bothub update --all
bothub update --all --no-input --force
bothub publish ./my-skill-pack --slug my-skill-pack --name "My Skill Pack" --version 1.2.0 --changelog "Fixes + docs"
Sync (upload local skills)
# Start anywhere; scans workdir first, then legacy Clawdis/Clawd/Hanzo Bot/Moltbot locations.
bothub sync
# Explicit roots + non-interactive dry-run
bothub sync --root ../clawdis/skills --all --dry-run
Defaults
- Site:
https://hub.hanzo.bot(override via--siteorBOTHUB_SITE, legacyCLAWDHUB_SITE) - Registry: discovered from
/.well-known/bothub.jsonon the site (legacy/.well-known/bothub.json; override via--registryorBOTHUB_REGISTRY) - Workdir: current directory (falls back to Clawdbot workspace if configured; override via
--workdirorBOTHUB_WORKDIR) - Install dir:
./skillsunder workdir (override via--dir)