Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

minio

FreeNo executable scriptsNot checked

Self-host S3-compatible object storage with MinIO. Use when a user asks to set up self-hosted object storage, create an S3-compatible API on their own server…

TerminalSkillsby TerminalSkills★ 221 GitHub stars

About this skill

MinIO

Overview

MinIO is an S3-compatible object storage server you can self-host. Any tool or SDK that works with AWS S3 works with MinIO: same API, same client libraries. Use it for file uploads, backup storage (restic, pg_dump), static asset hosting, and anywhere you'd use S3 but want the data on your own infrastructure.

Project status (checked October 2026): the community repository minio/minio is marked "THIS REPOSITORY IS NO LONGER MAINTAINED" (its README points to the commercial AIStor editions). Its last tagged release is RELEASE.2025-10-15T17-29-55Z, and the community edition is distributed as source only. The Docker Hub repositories minio/minio and minio/mc no longer serve anonymous pulls (every tag, including latest, is denied), so the repository Dockerfile (which starts FROM minio/minio:latest) cannot be built either. A server built from source works but gets no fixes, so for a new production deployment weigh that (and the AGPLv3 license) against MinIO's commercial AIStor edition or another S3-compatible server. The S3 usage in Steps 3 to 6 is the same on all of them.

Instructions

Step 1: Deployment

Build the server from source (Go 1.24 or newer) and run the binary; to run it in a container, wrap the binary in your own small image. Credentials come from the environment (8 characters minimum for the password).

# Build a static binary (it also runs in Alpine) into ./bin
CGO_ENABLED=0 GOBIN="$PWD/bin" go install github.com/minio/minio@latest

# Single node, ports bound to localhost only
export MINIO_ROOT_USER=minio-admin MINIO_ROOT_PASSWORD   # export the password from your secret store first
mkdir -p /srv/minio-data
./bin/minio server /srv/minio-data --address 127.0.0.1:9000 --console-address 127.0.0.1:9001

# Console UI: http://127.0.0.1:9001   API endpoint: http://127.0.0.1:9000
# Readiness: curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:9000/minio/health/ready   (200)

The same binary in a container:

# Dockerfile (next to the static ./minio binary)
FROM alpine:3
COPY minio /usr/bin/minio
VOLUME ["/data"]
ENTRYPOINT ["/usr/bin/minio"]
docker build -t myminio:local .
docker run -d --name minio -p 127.0.0.1:9000:9000 -p 127.0.0.1:9001:9001 \
  -v minio_data:/data -e MINIO_ROOT_USER=minio-admin -e MINIO_ROOT_PASSWORD="$MINIO_ROOT_PASSWORD" \
  myminio:local server /data --console-address ":9001"

Step 2: MinIO Client (mc)

# Install mc (MinIO Client CLI) from source (Go 1.24+); the mc repository is archived too
go install github.com/minio/mc@latest
mc --version

# Configure alias; the secret comes from the environment, not the command line
mc alias set local http://127.0.0.1:9000 "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD"
mc ready local                     # prints: The cluster 'local' is ready

# Bucket operations
mc mb local/uploads                # create bucket
mc mb local/backups
mc ls local                        # list buckets
mc ls local/uploads                # list objects

# Upload/download
mc cp file.txt local/uploads/      # upload file
mc cp local/uploads/file.txt .     # download file
mc cp -r ./data/ local/uploads/    # upload directory recursively

# Sync (like rsync for S3)
mc mirror ./local-dir local/uploads/     # sync local → MinIO (source must be a folder)
mc mirror local/uploads/ ./local-dir     # sync MinIO → local

# Remove
mc rm local/uploads/file.txt
mc rm -r --force local/uploads/old/      # remove recursively

Step 3: S3 SDK Integration (Node.js)

// lib/storage.js — S3-compatible client for MinIO
// Uses the standard AWS SDK — works with both MinIO and AWS S3
import { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from '@aws-sdk/client-s3'
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'

export const s3 = new S3Client({
  endpoint: process.env.MINIO_ENDPOINT || 'http://localhost:9000',
  region: 'us-east-1',              // required by SDK, MinIO ignores it
  credentials: {
    accessKeyId: process.env.MINIO_ACCESS_KEY,
    secretAccessKey: process.env.MINIO_SECRET_KEY,
  },
  forcePathStyle: true,              // required for MinIO (not virtual-hosted buckets)
})

const BUCKET = 'uploads'

export async function uploadFile(key, body, contentType) {
  /**
   * Upload a file to MinIO.
   * Args:
   *   key: Object key (path in bucket), e.g. "avatars/user123.jpg"
   *   body: File buffer or readable stream
   *   contentType: MIME type, e.g. "image/jpeg"
   */
  await s3.send(new PutObjectCommand({
    Bucket: BUCKET,
    Key: key,
    Body: body,
    ContentType: contentType,
  }))
  return `${process.env.MINIO_ENDPOINT}/${BUCKET}/${key}`
}

export async function getPresignedUrl(key, expiresIn = 3600) {
  /**
   * Generate a presigned URL for temporary download access.
   * Args:
   *   key: Object key in bucket
   *   expiresIn: URL validity in seconds (default: 1 hour)
   */
  const command = new GetObjectCommand(
Full SKILL.md on GitHub

Install minio in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

_scores.json

FAQ

What does the minio skill do?

Self-host S3-compatible object storage with MinIO. Use when a user asks to set up self-hosted object storage, create an S3-compatible API on their own server, store files without AWS, set up a private cloud storage, manage buckets and objects, configure storage for backups, host static assets, or replace AWS S3 with a self-hosted solution. Covers single-node deployment from source, bucket management, presigned URLs, lifecycle policies, and integration with apps via the S3 API.

How do I install the minio skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the minio skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare minio with