Authentication
Before uploading, you need to connect a Cloudflare account with an R2 API token.
Interactive Login
Run the login command and follow the prompts:
r2drop loginThis will:
Guide you to create an API token in the Cloudflare dashboard
Prompt you to paste the token
Validate the token against Cloudflare's API
Store the token in the OS keychain
Update
~/.r2drop/config.tomlwith account detailsSet this as the active account
Scripted Login
Pass the token directly (useful in CI/CD or scripts where interactive input isn't possible):
r2drop login --token "$CLOUDFLARE_API_TOKEN"Launch App Onboarding
If you prefer the guided macOS app onboarding flow (which also handles bucket config):
This opens the R2Drop macOS app to the onboarding screen.
Creating the Right API Token
R2Drop needs a token with R2 Storage write permissions.
In the Cloudflare dashboard:
Go to My Profile → API Tokens → Create Token
Choose a custom token with:
Permissions:
Workers R2 Storage : EditAccount Resources: your account
Optionally restrict to specific R2 buckets for least-privilege access
After Login
You still need to configure your bucket. The login command saves the token and creates the account entry, but you may need to set bucket before uploads work:
Keychain Storage
API tokens are stored in the OS keychain — not in any file.
macOS: Keychain, service name
com.superhumancorp.r2dropLinux: System keyring (libsecret/secretservice where available), or encrypted file fallback
Tokens are never written to config.toml, shell history, or environment variables.
Multiple Accounts
Run r2drop login again to add a second account. It creates a new entry rather than overwriting the existing one.
See Accounts for managing multiple accounts.
Last updated