Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Hyperspace CLI

The command-line agent for the Hyperspace decentralized P2P AI inference network.

GitHub Stars Latest Release Total Downloads License

Website | Dashboard | Twitter/X


Hyperspace CLI (hyperspace) is the primary way to run an agent on the Hyperspace network -- a fully decentralized peer-to-peer AI inference network with over 2 million agents worldwide. Run local AI models, earn points, and contribute compute to the network.

This is a release-only repository. Binary releases are published here for direct download and auto-update. The source code lives in a private monorepo.

Table of Contents

Install

Linux / macOS

curl -fsSL https://download.hyper.space/api/install | bash

Windows (PowerShell as Administrator)

curl https://download.hyper.space/api/install?platform=windows | powershell -

What the installer does

  • Auto-detects your OS and CPU architecture
  • Downloads the correct pre-built binary
  • Installs to ~/.hyperspace/bin/ and adds it to your PATH
  • Installs llama-server for native GPU inference (CUDA on Linux/Windows, Metal on macOS)
  • Auto-detects and integrates with existing Ollama installations
  • On desktop machines, installs the Hyperspace Tray app (use --no-tray to skip)

The binary is named hyperspace. The legacy name aios-cli is kept as an alias for backward compatibility.

Quick Start

# Start your agent (auto-detects hardware and selects the best profile)
hyperspace start

# Or start with all 9 capabilities enabled
hyperspace start --profile full

# Start with the management API on a specific port
hyperspace start --api-port 8080

# Auto-download the best models for your GPU
hyperspace models pull --auto

# Check your agent status, peer count, and points
hyperspace status

Command Reference

Core Commands

CommandDescription
hyperspace startStart the agent daemon
hyperspace statusShow agent status, peers, tier, points, uptime
hyperspace killStop the running agent (-f to force)
hyperspace chatInteractive conversational agent mode
hyperspace system-infoDisplay system specs, GPU, VRAM, recommended tier
hyperspace versionShow version (--check-update to check for new)
hyperspace updateCheck for and install updates (--check for dry run)
hyperspace hive listenStream live agent events (polls every 5s)

Start Options

hyperspace start                          # Auto-detect everything
hyperspace start --profile full           # All 9 capabilities
hyperspace start --profile inference      # GPU inference only
hyperspace start --profile embedding      # CPU-only embedding agent
hyperspace start --profile relay          # Lightweight relay agent
hyperspace start --profile storage        # Storage + memory
hyperspace start --api-port 8080          # Management API port
hyperspace start --cuda                   # Force CUDA acceleration
hyperspace start --verbose                # Verbose logging
hyperspace start --no-api                 # Disable management API

Model Management

CommandDescription
hyperspace models listShow all models in the catalog
hyperspace models availableList models compatible with your VRAM
hyperspace models pull --autoAuto-download best models for your GPU
hyperspace models pull <model-id>Download a specific GGUF model
hyperspace models downloadedList locally downloaded models
hyperspace models delete <model-id>Delete a downloaded model
hyperspace models add <model-id>Register a model on the network
hyperspace models remove <model-id>Unregister a model
hyperspace models checkCheck loaded models and network status

Inference

hyperspace infer --prompt "Explain quantum computing" --p2p   # P2P network inference
hyperspace infer --prompt "Hello" --local                      # Local inference
hyperspace infer --model <model-id> --prompt "Hello"           # Specific model
hyperspace infer --interactive                                 # Interactive chat
hyperspace chat                                                # Agent chat mode

Wallet and Staking

CommandDescription
hyperspace wallet showDisplay address, balance, points, USDC equivalent
hyperspace wallet exportExport address (machine-readable, for scripting)
hyperspace wallet costsShow task cost estimates per capability
hyperspace wallet settleTrigger manual USDC settlement check
hyperspace wallet stakingShow staking status, delegations, rewards
hyperspace wallet stake <amount>Stake points
hyperspace wallet unstake <amount>Begin unstaking
hyperspace wallet claim-rewardsClaim accumulated staking rewards
hyperspace wallet delegate <amount> <peer-id>Delegate to a validator
hyperspace wallet revoke <delegation-id>Revoke a delegation

Identity

CommandDescription
hyperspace identity exportExport private key, public key, peer ID
hyperspace identity export --jsonExport as JSON
hyperspace identity export -o key.jsonExport to file
hyperspace hive whoamiDisplay agent identity and connection status
hyperspace hive login -k <base58>Import identity from Ed25519 private key
hyperspace hive import-keys <path>Import identity from key file

Configuration

CommandDescription
hyperspace hive select-tier --autoAuto-detect tier from GPU
hyperspace hive select-tier --tier <n>Manually set compute tier
hyperspace hive allocate --mode powerMaximum earnings, higher resource usage
hyperspace hive allocate --mode chillLower resource usage, reduced earnings

Proxy

CommandDescription
hyperspace proxy statusShow proxy service status and bandwidth
hyperspace proxy test [url]Test-fetch a URL through a proxy peer
hyperspace proxy infoShow proxy capability details

System

CommandDescription
hyperspace install-serviceRegister as OS service (auto-start on boot)
hyperspace uninstall-serviceRemove OS service registration
hyperspace migrateMigrate from v1 (--dry-run to preview)
hyperspace loginLog in via browser OAuth (for Thor analysis)
hyperspace logoutLog out

Features

  • Native GPU Inference -- Full local AI inference via node-llama-cpp with CUDA (NVIDIA) and Metal (Apple Silicon) support
  • Auto Model Selection -- Automatically picks the best models for your available VRAM
  • Ollama Integration -- Discovers and uses locally installed Ollama models out of the box
  • Background Daemon -- Runs as a persistent background process that survives terminal close
  • Points System -- Earn points through pulse verification rounds and serving inference to the network
  • P2P Networking -- Built on libp2p with GossipSub, Kademlia DHT, and Circuit Relay for NAT traversal
  • Auto-Update -- Checks for new versions on startup and applies updates seamlessly
  • Management API -- REST and WebSocket API on a configurable port for programmatic control

Network Capabilities

Each agent provides up to 9 capabilities:

CapabilityDescription
InferenceServe AI model inference requests from peers
EmbeddingGenerate text embeddings (CPU-only, runs on any hardware)
StorageDistributed content-addressed block storage
MemoryDistributed vector store with replication
RelayHelp peers behind NATs connect via circuit relay
ValidationParticipate in pulse verification rounds
OrchestrationCoordinate multi-step AI task pipelines
CachingCache inference results to speed up repeated queries
ProxyProvide residential IP proxy service for AI agents

Platform Support

PlatformBinaryArchitecture
macOSaios-cli-aarch64-apple-darwin.tar.gzApple Silicon (ARM64)
macOSaios-cli-x86_64-apple-darwin.tar.gzIntel (x86_64)
Linuxaios-cli-x86_64-unknown-linux-gnu.tar.gzx86_64
Linuxaios-cli-x86_64-unknown-linux-gnu-cuda.tar.gzx86_64 with CUDA
Windowsaios-cli-x86_64-pc-windows-msvc.zipx86_64
Windowsaios-cli-x86_64-pc-windows-msvc-cuda.zipx86_64 with CUDA

The CUDA variants include GPU acceleration for NVIDIA GPUs. On macOS, Metal acceleration for Apple Silicon is included in the standard binary.

GPU Recommendations

GPUVRAMRecommended ModelBest For
GTX 16504 GBGemma 3 1BGeneral
RTX 3060 / RTX 40608 GBGemma 3 4BGeneral
RTX 407012 GBGLM-4 9BMultilingual
RTX 408016 GBGPT-oss 20BReasoning
RTX 4090 / RTX 309024 GBGemma 3 27BGeneral
A100 / H10040-80 GBQwen2.5 Coder 32BCode

CPU-only agents can still contribute by running embedding models and acting as relay or storage agents.

Configuration

All data is stored under ~/.hyperspace/:

PathDescription
~/.hyperspace/bin/Installed binaries
~/.hyperspace/config.jsonAgent configuration
~/.hyperspace/logs/Log files
~/.hyperspace/models/Downloaded AI models
~/.hyperspace/identity.jsonPersistent Ed25519 keypair and peer ID
~/.hyperspace/status.jsonPoints and status data
~/.hyperspace/install-methodInstall source marker (analytics)

On Windows, the equivalent base path is %LOCALAPPDATA%\Hyperspace\.

Migrating from v1

v1 Commandv2 Equivalent
aios-cli hive connecthyperspace start
aios-cli hive select-tierAutomatic (hardware detection)
aios-cli hive pointshyperspace status
  • The binary auto-updates from v1 to v2 on next launch.
  • Your v1 points are frozen and preserved.
  • The aios-cli command name continues to work as an alias.
  • V2 replaces manual tier selection with automatic hardware detection.

Troubleshooting

Agent not starting

# Check logs
cat ~/.hyperspace/logs/hyperspace.log

# Ensure no other instance running
hyperspace status

# Try different API port
hyperspace start --api-port 9090

No GPU detected

  • NVIDIA: Ensure CUDA drivers are installed and nvidia-smi works.
  • Apple Silicon: Metal support is built-in with the aarch64-apple-darwin binary.
  • CPU-only: Falls back to CPU inference with smaller models. Use --profile embedding.

Models not downloading

  • Check available disk space (models range from 1-20 GB).
  • Downloads support resume -- re-run hyperspace models pull --auto to continue.

Connection issues

  • Outbound internet access on TCP port 4002 (WebSocket) required.
  • Agents behind NAT are supported via circuit relay -- no port forwarding needed.

Uninstall

Linux / macOS

curl https://download.hyper.space/api/uninstall | bash

Windows (PowerShell)

(Invoke-WebRequest "https://download.hyper.space/uninstall?platform=windows").Content | powershell -

Removes the binary, tray app, and configuration. Downloaded models in ~/.hyperspace/models/ are preserved by default.

Links

Maintainer

Varun (@twobitapps)

License

See LICENSE for details.

关于 About

Hyperspace CLI — command-line client for the decentralized P2P AI inference network. 2.7M+ downloads.

语言 Languages

Shell60.4%
PowerShell39.6%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
3
Total Commits
峰值: 3次/周
Less
More