🐝

hivv CLI

v0.2.0 ¡ MIT ¡ stdlib only

One command to install a friendly network-agent gateway. Chat across 23 providers. Optionally join the hivv bee swarm and earn compute credits.

Install ¡ macOS / Linux / WSL
curl -sSL https://hivv.org/install-hivv.sh | bash
Install + local LLM (llama.cpp ¡ memory-efficient) ¡ one shot
curl -sSL https://hivv.org/install-hivv.sh | bash -s -- --with-llm --yes

Detects your hardware (CPU cores / RAM / GPU), installs llama.cpp (handles many concurrent requests, low memory), and downloads the right model: qwen3:8b-q4 for NVIDIA 4–12 GB VRAM, qwen3:14b for â‰Ĩ12 GB, gemma4:e2b for 8-core / no-GPU, qwen3:1.7b for 4–7 cores, qwen3:0.6b for tiny boxes. Re-run with --no-llm to skip.

Download OpenAPI spec Interactive API docs ← Back to hivv.org

1What you just installed

A stdlib-only Python CLI (no pip install) that lives at ~/.local/lib/hivv/hivv-cli.py with a hivv launcher in your PATH. It auto-updates on every hivv start if a newer version ships.

🐝 Chat across 23 providers

Anthropic, OpenAI, Google, Mistral, Groq, DeepSeek, OpenRouter, Qwen, Together, plus 14 self-hosted backends (Ollama, llama.cpp, vLLM, LM Studio, KoboldCPP, LocalAI, â€Ļ).

🤝 Join the swarm (optional)

hivv start registers your machine as a bee. Heartbeats every 60s with CPU/MEM/disk/GPU metrics. You choose to volunteer or not.

🔐 Hardware-bound identity

Your bee id is mixed with your machine id (Linux/macOS/Windows). A copied install won't impersonate — the hub sees a new HW id.

đŸĒļ Zero deps

Just Python 3.7+. No pip packages, no Docker, no Node, no build tools. The whole CLI is ~27 KB.

2Two ways to use it

One-shot ¡ talk to the gateway

  • hivv health — ping the hub
  • hivv chat hello there — stream a reply
  • hivv completions MSG... — OpenAI-style JSON
  • hivv metrics --local — your local metrics
  • hivv nodes — list all bees online
  • hivv whoami — your session + hw id

Operator ¡ control your bee

  • hivv start ¡ stop ¡ restart
  • hivv status ¡ logs [-f]
  • hivv info ¡ doctor ¡ speed
  • hivv free ¡ pct --watch=2
  • hivv update ¡ upgrade
  • hivv uninstall ¡ test

Friendly ¡ human touches

  • hivv hi — first-run greeter
  • hivv up — quick 3-line status check
  • hivv thanks — one-line warm reply
  • hivv panic — 4-step emergency help
  • hivv support "question" — AI diagnosis
  • hivv volunteer on — opt in to swarm jobs
  • hivv llm status — local-model helper

3Try it now

# confirm the install
hivv --help
hivv up        # quick 3-line status check

# stream a chat reply (any model)
hivv chat "explain transformers in 3 sentences"

# local LLM is auto-offered during install — or force it:
hivv chat "hello" --local    # use local model (needs --with-llm during install)
hivv llm suggest               # hardware-tiered model recommendation
hivv llm suggest --json        # machine-readable, for scripts
hivv llm status                # detect + bench + suggest in one shot

# join the bee swarm — heartbeats every 60s
hivv start
hivv status      # pid, uptime, hub health, last-heartbeat
hivv logs -f     # tail the agent log
hivv stop

# one-shot health check
hivv doctor      # pasteable support bundle
hivv speed       # latency + throughput benchmark
hivv test        # doctor + speed + a remote chat

4How the swarm works

When you run hivv start, the agent:

1ī¸âƒŖ
Registers with the hub

POSTs /api/nodes/register with a stable id derived from your hostname + machine-id. Server returns a node_id.

2ī¸âƒŖ
Sends heartbeats every 60s

Real CPU, memory, disk, and (if NVIDIA) GPU metrics. Hub tracks your bee in the swarm.

3ī¸âƒŖ
Long-polls the inbox between heartbeats

Hub can ask you to update, gracefully shut down, or (Phase 2) run a job. Works through closed firewalls — you initiate, hub responds.

4ī¸âƒŖ
Auto-updates itself

On update_available message, the agent atomically replaces hivv-cli.py, logs the version, and re-execs. Zero downtime.

5Privacy & safety

You're in control of every byte that leaves your machine:

6For developers

OpenAPI spec/openapi.yaml ¡ Swagger UI at /docs
Public APIGET /api/health ¡ GET /api/public/status ¡ POST /api/chat
AuthPOST /api/auth/register ¡ POST /api/auth/login ¡ session cookie
Agent protocolPOST /api/nodes/register ¡ POST /api/nodes/<id>/heartbeat ¡ GET /api/agents/<id>/inbox
Read the API docs → Download OpenAPI

7Uninstall

# remove hivv CLI and service (keeps config + logs)
curl -sSL https://hivv.org/install-hivv.sh | bash -s -- --uninstall

# also remove config and state
rm -rf ~/.config/hivv ~/.local/share/hivv