返回 Skill 列表
extension
分类: 数据与分析需要 API Key

Hippius Storage

Hippius 是基于 Bittensor 子网 75 的去中心化存储服务,支持通过兼容 S3 的 API 上传文件、查询存储及管理存储桶。适用于用户上传至 Hippius、检查存储状态、配置凭证、列出文件,或咨询 IPFS 与 S3 选项等场景。

person作者: maxquickhubclawhub

Hippius Storage

Hippius is decentralized cloud storage on Bittensor SN75 with S3-compatible API.

Recommended path: S3 endpoint (s3.hippius.com) — the public IPFS node is deprecated.

Quick Reference

| Key | Value | |-----|-------| | S3 Endpoint | https://s3.hippius.com | | S3 Region | decentralized | | Access Key Format | hip_xxxxxxxxxxxx | | Console | console.hippius.com | | Python CLI | pip install hippius (requires self-hosted IPFS node) |

Setup

  1. Get S3 credentials from console.hippius.com → Settings → API Keys
  2. Set environment variables:
    export HIPPIUS_S3_ACCESS_KEY="hip_your_access_key"
    export HIPPIUS_S3_SECRET_KEY="your_secret_key"
    
  3. Test: aws --endpoint-url https://s3.hippius.com --region decentralized s3 ls

Common Operations

Upload

aws --endpoint-url https://s3.hippius.com --region decentralized \
    s3 cp <file> s3://<bucket>/<key>

Download

aws --endpoint-url https://s3.hippius.com --region decentralized \
    s3 cp s3://<bucket>/<key> <local_path>

List buckets

aws --endpoint-url https://s3.hippius.com --region decentralized s3 ls

List objects

aws --endpoint-url https://s3.hippius.com --region decentralized s3 ls s3://<bucket>/ --recursive

Create bucket

aws --endpoint-url https://s3.hippius.com --region decentralized s3 mb s3://<bucket>

Sync directory

aws --endpoint-url https://s3.hippius.com --region decentralized \
    s3 sync ./local-dir/ s3://<bucket>/remote-dir/

Python (boto3)

import boto3
import os

s3 = boto3.client(
    's3',
    endpoint_url='https://s3.hippius.com',
    aws_access_key_id=os.environ['HIPPIUS_S3_ACCESS_KEY'],
    aws_secret_access_key=os.environ['HIPPIUS_S3_SECRET_KEY'],
    region_name='decentralized'
)

# Upload
s3.upload_file('local.txt', 'my-bucket', 'remote.txt')

# Download
s3.download_file('my-bucket', 'remote.txt', 'downloaded.txt')

# List
for obj in s3.list_objects_v2(Bucket='my-bucket').get('Contents', []):
    print(f"{obj['Key']} ({obj['Size']} bytes)")

Scripts

  • scripts/query_storage.py — Query S3 buckets/objects and RPC account info

Usage:

# List S3 buckets
python scripts/query_storage.py --s3-buckets

# List objects in bucket
python scripts/query_storage.py --s3-objects my-bucket

# Query blockchain credits (requires account address)
python scripts/query_storage.py --account 5Grwva... --credits

References

  • references/storage_guide.md — S3 vs IPFS comparison, code examples (Python, JS)
  • references/cli_commands.mdhippius CLI reference (requires self-hosted IPFS node)

Troubleshooting

"Public store.hippius.network has been deprecated" Use S3 instead. The hippius CLI's IPFS commands require a self-hosted IPFS node.

S3 auth errors

  • Access key must start with hip_
  • Region must be decentralized (not us-east-1)
  • Endpoint must be https://s3.hippius.com

External Links