The Fastest S3 Client for Linux & macOS
t3 ("Turbo 3") is a high-performance parallel S3 CLI and drop-in s5cmd successor written in Rust. Engineered with zero-copy mmap uploads, zero-allocation streaming downloads, and full AWS EKS IRSA, Pod Identity, and EC2 IMDSv2 support.
curl -sSfL https://ehlerst.github.io/t3/install.sh | sh
Bandwidth & Transfer Time: `t3` vs `s5cmd` v2.3.0 vs `aws-cli` v2
Measured across multi-hundred-megabyte shard workloads and 1,000-object IOPS workloads against RustStack. Every push to main runs comparative benchmarks in GitHub Actions.
Download 256 MiB (`64 × 4 MiB`) t3: 3,505.8 MiB/s (73.0 ms)
Upload 512 MiB (`64 × 8 MiB`) 1.26x faster (+505 MiB/s)
Download 64 MiB (`1,000 × 64 KiB`) 4.15x faster (+1,483 MiB/s)
| Workload | ⚡ `t3` (Rust) | `s5cmd` v2.3.0 (Go) | `aws-cli` v2 (Python) | `t3` Advantage |
|---|---|---|---|---|
| Upload 512 MiB (`64 × 8 MiB` shards) | 2,453.0 MiB/s (208.7 ms) | 1,947.4 MiB/s (262.9 ms) | ~210 MiB/s (~2,440 ms) | 1.26x vs s5cmd · 11.7x vs aws-cli |
| Upload 256 MiB (`64 × 4 MiB` shards) | 2,366.9 MiB/s (108.2 ms) | 1,895.2 MiB/s (135.1 ms) | ~205 MiB/s (~1,250 ms) | 1.25x vs s5cmd · 11.5x vs aws-cli |
| Download 256 MiB (`64 × 4 MiB` shards) | 3,505.8 MiB/s (73.0 ms) | 3,278.5 MiB/s (78.1 ms) | ~240 MiB/s (~1,065 ms) | 1.07x local / 1.40x GHA vs s5cmd |
| Upload 128 MiB (`256 × 512 KiB` shards) | 1,910.5 MiB/s (67.0 ms) | 1,255.0 MiB/s (102.0 ms) | ~115 MiB/s (~1,110 ms) | 1.52x vs s5cmd · 16.6x vs aws-cli |
| Download 128 MiB (`256 × 512 KiB` shards) | 2,418.5 MiB/s (52.9 ms) | 1,815.7 MiB/s (70.5 ms) | ~130 MiB/s (~985 ms) | 1.33x local / 1.83x GHA vs s5cmd |
| Upload 64 MiB (`1,000 × 64 KiB` files) | 1,613.2 MiB/s (38.7 ms) | 511.8 MiB/s (122.1 ms) | ~26 MiB/s (~2,450 ms) | 3.15x vs s5cmd · 63.3x vs aws-cli |
| Download 64 MiB (`1,000 × 64 KiB` files) | 1,954.7 MiB/s (32.0 ms) | 471.4 MiB/s (132.6 ms) | ~27 MiB/s (~2,380 ms) | 4.15x vs s5cmd · 74.3x vs aws-cli |
| Incremental Sync (`1,000 × 4 KiB` files) | 8.2 ms (7.9 MiB RAM) | 58.6 ms (31.1 MiB RAM) | 2,222.3 ms (89.4 MiB RAM) | 7.18x vs s5cmd · 197x vs aws-cli |
| Batch Delete (`rm` 1,000 keys) | 8.6 ms (8.7 MiB RAM) | 43.7 ms (23.5 MiB RAM) | 1,771.4 ms (88.6 MiB RAM) | 5.07x vs s5cmd · 128x vs aws-cli |
Install Standalone Binary & Transfer at Line Rate
Pre-built static amd64 and arm64 binaries for Linux and macOS are published on GitHub Releases with SHA-256 checksums.
# Option 1: One-line installer (verifies SHA-256 checksum automatically)
curl -sSfL https://ehlerst.github.io/t3/install.sh | sh
# Option 2: Homebrew (macOS & Linux)
brew install --formula https://raw.githubusercontent.com/ehlerst/t3/main/Formula/t3.rb
# Option 3: Cargo
cargo install --git https://github.com/ehlerst/t3 t3-cli
# Option 4: Manual tarball download + SHA-256 verification
TARGET="t3-linux-amd64" # or t3-linux-arm64 | t3-darwin-arm64 | t3-darwin-amd64
curl -sSLO "https://github.com/ehlerst/t3/releases/latest/download/${TARGET}.tar.gz"
curl -sSLO "https://github.com/ehlerst/t3/releases/latest/download/${TARGET}.tar.gz.sha256"
sha256sum -c "${TARGET}.tar.gz.sha256"
tar xzf "${TARGET}.tar.gz" && sudo mv t3 /usr/local/bin/t3
# 1. Single-object compressed tar-stream save & restore (auto-detects lz4 / zstd / gzip / raw tar) t3 --json-stats tar-sync \ --metadata gh-repo=owner/repo --metadata generation=7 \ ./buildx-cache/ s3://ci-cache-bucket/caches/gen-7.tar.lz4 t3 --json-stats tar-sync s3://ci-cache-bucket/caches/gen-7.tar.lz4 ./restored-cache/ # 2. Fast HEAD existence probe (exit 0 = exists, exit 3 = not found / cache miss) t3 exists s3://ci-cache-bucket/pointers/_pointer # 3. Compare-And-Swap (CAS) atomic pointer updates (exit 4 on 412 PreconditionFailed) t3 cp --if-none-match "*" ./_pointer s3://ci-cache-bucket/pointers/_pointer t3 cp --if-match '"d41d8cd98f00b204e9800998ecf8427e"' ./_pointer s3://ci-cache-bucket/pointers/_pointer # 4. Resumable multipart range download (.t3part) & age-scoped pruning t3 cp --continue s3://ml-bucket/layers/large-2gb.tar.zst ./large-2gb.tar.zst t3 rm --older-than 24h "s3://ci-cache-bucket/staging/*" t3 sync --delete --exclude-newer-than 2h ./local-shards/ s3://ml-bucket/v1/shards/
# 1. Standard AWS Environment Variables export AWS_ACCESS_KEY_ID="AKIA..." export AWS_SECRET_ACCESS_KEY="..." export AWS_SESSION_TOKEN="..." # optional # 2. Amazon EKS IRSA (Automatically detected when mounted by Kubernetes) export AWS_ROLE_ARN="arn:aws:iam::123456789012:role/my-eks-s3-role" export AWS_WEB_IDENTITY_TOKEN_FILE="/var/run/secrets/eks.amazonaws.com/serviceaccount/token" # 3. EC2 Instance Metadata Service (IMDSv2) — Automatic on EC2 instances with attached IAM roles! # Zero configuration required; exchanges session token via PUT http://169.254.169.254/latest/api/token t3 cp "s3://production-bucket/checkpoints/*" /mnt/nvme/checkpoints/
Why `t3` Beats `s5cmd` and `aws-cli`
Built specifically for `*nix` operating systems (`Linux`, `macOS`, `BSD`) to eliminate kernel-to-userspace memory copies, Go GC pauses, and unpatched `s5cmd` security/scale bugs.
🚀 Zero-Copy `mmap` & Streaming I/O
Avoids anonymous heap allocations and redundant page-cache copies on multi-megabyte transfers.
- Uploads ≥ 1 MiB map kernel page-cache pages directly via
libc::mmap(PROT_READ, MAP_SHARED)+MADV_SEQUENTIAL - Downloads stream directly from
hyper's socket buffer to disk, reusing buffers in-place - L3-cache-aware large-stream semaphore prevents DRAM cache thrashing
🔐 Complete AWS Cloud Auth (IRSA + IMDSv2)
Unlike s5cmd (built on deprecated aws-sdk-go v1), t3 supports modern AWS authentication out of the box.
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_SESSION_TOKEN- EKS IRSA: STS
AssumeRoleWithWebIdentityviaAWS_WEB_IDENTITY_TOKEN_FILE - EKS Pod Identity & ECS:
AWS_CONTAINER_CREDENTIALS_FULL_URI - EC2 IMDSv2: Token-authenticated metadata credentials (
169.254.169.254) - Profiles:
~/.aws/config&~/.aws/credentialsincludingcredential_processandendpoint_url
🛡️ Security & Scale Fixes Over `s5cmd`
Fixes long-standing open bugs in unmaintained peak/s5cmd while preserving 100% CLI flag compatibility.
- Path Traversal Guard: Rejects malicious S3 keys containing
../(fixess5cmd#872) - S3-to-S3 Copy > 5 GiB: Automatic parallel
UploadPartCopy(fixess5cmd#29) - Filter-Safe Sync Delete:
sync --deletestrictly honors--exclude/--include(fixess5cmd#815) - Cached SigV4 Key: Derives daily HMAC key once per region (~221,000+ signings/sec/core)
All 15 `s5cmd` Subcommands Supported
Global flags (--numworkers, --endpoint-url, --stat, --json, --dry-run, --profile) work either before or after the subcommand.
--continue resumable range download, --tar-stream, and CAS (--if-match / --if-none-match).lz4 1.3 GiB/s, zstd, gzip, or raw .tar).HEAD existence check returning exit code 0 if found and exit code 3 on 404 NotFound.--delete, --exclude-newer-than, --size-only.Delimiter=/ fan-out, -e, -H, -s.DeleteObjects batcher with --older-than <duration> age pruning.stdin concurrently on the shared worker pool.stdout.stdin directly to an S3 object via bounded-memory parallel multipart upload.-g, -H).HeadBucket or HeadObject ETag, size, and user metadata.rb --force empties bucket before removal).GET URLs with custom expiry.Enabled / Suspended) bucket versioning configuration.--install-completion scripts for bash, zsh, and fish.