Garage

From joelhooks/joelclaw · View interactive version

Garage is an AI agent skill from the GitHub repository joelhooks/joelclaw. Operate Joel's Garage S3-compatible object storage on NAS. Use for Garage, Convex Garage, Garage S3, NAS Garage, port <object-api-port>, Garage buckets, and MinIO-to-Garage migration.

How to use this skill

Skill file

Garage

For private addresses, accounts, ports, and host roles, see .brain/resources/operator-network-context.svx in the private dark-wizard repo and the tailnet-topology skill. Replace angle-bracket placeholders with the configured values before running commands.

Operate Joel's canonical S3-compatible object storage for local self-hosted Convex. This is not generic Garage advice. The canonical path is the Docker/Compose Garage service running on the ASUSTOR NAS <nas>.

Custom MinIO is now a rollback/reference path. ASUSTOR MinIO CE is only a smoke-test/reference instance.

When To Use

Use this skill when Joel mentions:

If the task is about the full local Convex runtime, also read the local-convex skill. If the task is about general ASUSTOR storage, NFS, SMB, RAID, or NAS health, also read the <nas> skill. If the task is explicitly about MinIO rollback or CE cleanup, also read the minio skill.

Current Topology

Host:

Canonical Garage:

Do not expose Garage publicly. Keep S3 API access LAN/tailnet only.

Canonical Sources

Read these before mutating the setup:

If sources disagree, prefer the brain project note, then verify live state with redaction-safe health checks. Do not print raw env files to resolve disagreement.

Safety And Secret Handling

Never print, paste, summarize, commit, or log:

It is okay to read and report the redacted env file. It is okay to say whether required keys exist. It is not okay to reveal their values.

Before sharing command output, scan it for:

Redact first, then report.

NAS Access Rules

Use one SSH session to <nas> at a time. NAS SSH is sensitive to bursts and can reset handshakes after rapid parallel probes.

Default read-only SSH shape:

ssh -o BatchMode=yes -o ConnectTimeout=8 <ssh-user>@<nas> 'uptime; pwd'

Operational rules:

Health Checks

Prefer network checks that do not require credentials:

nc -vz -w 5 <tailnet-ip> <object-api-port>
curl -sS -m 5 -o /tmp/garage-root.out -w '%{http_code}\n' http://<tailnet-ip>:<service-port>/
sed -n '1,3p' /tmp/garage-root.out

Garage does not support anonymous S3 access; 403 AccessDenied from / proves the API is reachable.

Redaction-safe env check:

ssh <ssh-user>@<nas> 'awk -F= "/^(AWS_REGION|S3_ENDPOINT_URL|AWS_S3_FORCE_PATH_STYLE|S3_STORAGE_)/ {print}" <nas-hdd-export>/s3/garage-compose/convex-s3.env'

Presence-only secret check:

ssh <ssh-user>@<nas> 'awk -F= "/^(AWS_ACCESS_KEY_ID|AWS_SECRET_ACCESS_KEY)=/ {print $1\"=<present>\"}" <nas-hdd-export>/s3/garage-compose/convex-s3.env'

Service checks usually need sudo:

ssh <ssh-user>@<nas> 'sudo docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}" | grep -Ei "garage|<object-api-port>" || true'
ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/garage-compose && sudo docker compose ps'

Do not run logs without a reason. If logs are needed, bound them and redact:

ssh <ssh-user>@<nas> 'cd <nas-hdd-export>/s3/garage-compose && sudo docker compose logs --tail=120 garage'

Convex Buckets

Garage should have these Convex buckets:

Bucket rules:

Convex Env Shape

Convex should point at the Garage IP endpoint:

AWS_REGION=usw2
S3_ENDPOINT_URL=http://<tailnet-ip>:<service-port>
AWS_S3_FORCE_PATH_STYLE=true
AWS_ACCESS_KEY_ID=<from <nas-hdd-export>/s3/garage-compose/convex-s3.env>
AWS_SECRET_ACCESS_KEY=<from <nas-hdd-export>/s3/garage-compose/convex-s3.env>
S3_STORAGE_EXPORTS_BUCKET=joelclaw-local-usw2-convex-exports
S3_STORAGE_SNAPSHOT_IMPORTS_BUCKET=joelclaw-local-usw2-convex-snapshot-imports
S3_STORAGE_MODULES_BUCKET=joelclaw-local-usw2-convex-modules
S3_STORAGE_FILES_BUCKET=joelclaw-local-usw2-convex-files
S3_STORAGE_SEARCH_BUCKET=joelclaw-local-usw2-convex-search

Validation rules:

Operating Sequence

When wiring or debugging Garage for local Convex:

  1. Read the brain project note and this skill.
  2. Verify Garage reachability on <object-api-port>.
  3. Validate the redacted Convex env shape.
  4. Confirm local Convex backend runtime env has S3_ENDPOINT_URL=http://<tailnet-ip>:<service-port>.
  5. Run the Convex-level smoke:
cd /Users/joel/Documents/Codex/2026-06-17/we-re-setting-up-durable-self/work/local-convex
./smoke-self-hosted-convex.sh
  1. Verify the smoke export ZIP contains custom-garage and http://<tailnet-ip>:<service-port>.
  2. Capture durable discoveries back to the brain project note if facts changed.

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.