On-chain cloud storage

ICBucket

Store files on-chain with an S3-compatible API. No servers, no AWS bills — simple 30-day plans paid in ICP from your ICPay balance.

Sign options via Internet Identity

Google
Apple
Microsoft
Metatron's Cube — 13 circles connected by linesSwitzerland (Zurich)United States (US-East)Germany (Frankfurt)SingaporeJapan (Tokyo)United Kingdom (London)Canada (Montreal)Sweden (Stockholm)Australia (Sydney)Brazil (São Paulo)France (Paris)Belgium (Brussels)Nepal (Kathmandu)

Integration guide

How to Integrate ICBucket?

Create a bucket, upload files with the SDK, and serve public assets over HTTPS — all from your ICPay balance with an S3-compatible API.

Package Manager Installation

Install the official icBucket client for your favorite package manager or language.

npm install icpay-bucket

Quickstart Integration

Upload files directly to decentralized on-chain canisters with automatic edge CDN routing.

import { ICBucket } from "icpay-bucket"

// Initialize on-chain storage client
const bucket = new ICBucket({
  bucketId: "my-app-assets",
  apiKey: process.env.ICBUCKET_API_KEY,
})

// Upload asset directly to the IC canister
const { publicUrl } = await bucket.uploadFile("banner.webp", fileBuffer, {
  contentType: "image/webp",
  visibility: "public",
})

console.log("Edge CDN URL:", publicUrl)
// Output: https://cdn.icpay.app/cloud/my-app-assets/banner.webp

API & Environment Configuration

Configure your environment variables and client options for production deployment.

NEXT_PUBLIC_ICBUCKET_API_URL=https://cdn.icpay.app
ICBUCKET_API_KEY=icp_live_sec_994a8e2b
NEXT_PUBLIC_DEFAULT_BUCKET=my-app-assets

The Problem & The Solution

Traditional cloud storage is expensive, centralized, and complex. ICBucket fixes that with on-chain storage, 30-day ICP plans, and an S3-style API.

The ProblemThe Solution

Expensive Monthly Bills

AWS S3, Google Cloud Storage, and Azure Blob charge monthly. Costs compound over years — a 10 GB project can exceed $240 over five years.

Simple 30-Day Plans

Pay from your ICPay balance in ICP — from 0.5 ICP for 1 GB per 30 days. No credit card. Renew anytime and stack unused time.

Centralized Control

Your files live on someone else's servers. Providers can suspend accounts, raise prices, or shut down services without notice.

Decentralized & Censorship-Resistant

Files are stored across Internet Computer replicas. No single point of failure — only you can delete your data.

Complex Setup

Setting up S3 requires an AWS account, IAM roles, bucket policies, and CORS config — just to upload a file.

S3-Compatible API

Drop-in replacement for S3 with familiar methods: createBucket, uploadFile, downloadFile. Migrate existing code in minutes.

Vendor Lock-in

Each provider uses different APIs. Moving from S3 to Azure means rewriting code — no real portability.

On-Chain Verifiability

Every upload is traceable on-chain. Content-addressable via canister URLs — immutable and auditable.

Storage Economics

Pay upfront in ICP from your ICPay balance — no credit cards, no foreign bank holds, and zero surprise egress bandwidth bills. Bound directly to your Internet Identity Principal.

Starter
1 GB

Personal backups, avatars & developer sandboxes

1.0 ICPSAVE 50%
0.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 1 GB reserved on-chain capacity
  • Public & private buckets
  • API key authentication
  • Chunked parallel uploads
  • Global CDN edge URLs (<150ms)
  • Encrypted at rest in stable memory
  • Renew anytime — unused time stacks
Most Popular · Best Value
Pro
5 GB

Most popular for growing apps, media & user vaults

3.0 ICPSAVE 50%
2.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 5 GB reserved on-chain capacity
  • Multiple API keys with scoped access
  • File metadata, custom headers & tags
  • Search & folder tree listing
  • Bulk copy, move & delete operations
  • Official TypeScript, Python & Go SDKs
  • Renew anytime — unused time stacks
Business
10 GB

Production web applications & digital asset libraries

5.5 ICPSAVE 50%
4.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 10 GB reserved on-chain capacity
  • Multiple isolated buckets
  • Team API keys with audit trail
  • High-throughput chunk pipelines
  • On-chain cryptographic audit proof
  • Direct HTTPS boundary streaming
  • Renew anytime — unused time stacks
Growth
25 GB

Fast-scaling SaaS, media catalogs & document archives

13.0 ICPSAVE 50%
10.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 25 GB reserved on-chain capacity
  • Up to 25 scoped API keys
  • Automated lease expiry alert webhooks
  • Dedicated canister partition backing
  • Parallel multi-part upload streaming
  • Zero egress bandwidth surcharges
  • Renew anytime — unused time stacks
Scale
50 GB

Heavy production dApps, NFT collections & high-volume media

25.5 ICPSAVE 50%
20.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 50 GB reserved on-chain capacity
  • Dedicated 400 GB canister allocation
  • High-throughput concurrent writes
  • Priority global CDN boundary routing
  • Multi-principal consensus controller support
  • Zero egress bandwidth surcharges
  • Renew anytime — unused time stacks
Maximum Sovereign Scale
Enterprise
100 GB

Maximum single-bucket capacity with institutional sovereignty

50.5 ICPSAVE 50%
40.5 ICP/ 30 days
Principal-Gated · Zero Egress Fees
  • 100 GB reserved on-chain capacity
  • Maximum single-canister storage tier
  • Sovereign threshold cryptography
  • Unrestricted API throughput limits
  • DAO / multi-sig governance integration
  • Zero egress bandwidth surcharges
  • Renew anytime — unused time stacks
Sovereign Principal Ownership

Every bucket is cryptographically anchored to your Internet Identity Principal. No root admin, centralized bot flag, or foreign entity can freeze or tamper with your storage canister.

Autonomous Time Stacking

Renew anytime without losing a single second. Unused lease days stack directly onto your canister expiry. Choose annual upfront for 2 months free (~17% savings).

Zero Egress Bandwidth Taxes

Say goodbye to surprise cloud invoices. Public CDN delivery and direct canister streaming are 100% included in the base lease price with zero per-gigabyte egress fees.

Everything You Need for On-Chain Storage

ICBucket provides enterprise-grade cloud storage features without the enterprise complexity or monthly bills.

Flexible Capacity Tiers

Choose from 1GB to 100GB. Start small, scale as needed. Renew anytime to extend storage duration.

Chunked Uploads

Upload large files in chunks (up to 2MB per chunk). Parallel uploads for faster transfer. Resume on connection drop.

API Key Management

Create multiple API keys per bucket with granular permissions (read/write/delete). Revoke and regenerate anytime.

Public & Private Buckets

Public buckets serve files via HTTPS. Private buckets require auth. Perfect for both static sites and secure backups.

S3-Compatible API

Drop-in replacement for AWS S3. Familiar methods: createBucket, uploadFile, listFiles. Migrate existing code in minutes.

On-Chain Security

Files stored across IC replicas. Canister-level access control. No server breaches, no data leaks.

File Metadata & Search

Tag files, add custom metadata. Search by name, tag, or prefix. List folders, filter by date or size.

Fast Content Delivery

Files served directly from IC canisters. No CDN setup needed. Global distribution via IC boundary nodes.

Storage Topography & Lifecycle

How Storage Works

Files live inside the ICPay wallet canister on Internet Computer — not on a traditional cloud VM. Your app talks to the canister; the subnet stores encrypted data.

Your Application

Browser App

Internet Identity

Client SDKs

Agent + API Key

CI & Automation

Signed Updates
Internet Computer
ICPay Canister

ICPay Bucket Canister

Motoko Bucket Engine

Subaccount Isolated
Storage & Delivery

Upload Session

Chunk → Encrypt

Stable Memory

Encrypted Blobs

HTTPS Gateway

*.raw.icp0.io · CDN

Write path

Upload & Encryption
1

Create a bucket once (pay ICP for capacity).

2

beginFileUpload → send 2 MB chunks → completeFileUpload.

3

Canister encrypts each file and writes to stable memory.

Read path

Decryption & Edge CDN
1

Private files: signed downloadFile update from your app.

2

Public files: plain HTTPS GET on the canister gateway URL.

3

No AWS bucket, no separate storage server — one on-chain canister.

How ICBucket Compares

ICBucket vs. traditional cloud storage providers. See what makes us different.

FeatureICBucketAWS S3Google CloudAzure Blob
30-Day ICP Plans
Pay with ICP (no credit card)
Decentralized
Censorship-Resistant
On-Chain Verifiable
No Account Suspension Risk
S3-Compatible API
Public HTTPS URLs
API Key Auth
Chunked Uploads

FAQ

Frequently Asked Questions

Everything you need to know about ICBucket. Can't find an answer? Contact us.