This needs bqto Pro and a usable license key.
Requirements
- macOS 14 or later, on Apple silicon or Intel.
- bqto Pro on your
PATH, frompilef-co/bqto-pro-releases. See Install. - gcloud, signed in with
gcloud auth loginandgcloud auth application-default login.
Install
- Install script
- Homebrew
- Click Done.
- Open System Settings, then Privacy & Security.
- Scroll down to “Bqto was blocked”, click Open Anyway, and confirm.
Update
Quit the app (Quit in its menu). Then run the install command again. With Homebrew, run:$BQTO, then bqto on the PATH, then a binary
bundled in the app. So a bqto Pro that you install or update on the PATH is the one in use. The
bottom of the menu shows the version and path of the bqto in use.
Activate the key
Without a usable key, the menu shows the reason and a field for the key. Enter the key there. The app runsbqto license activate - and passes the key on standard input.
- Check again runs
bqto license status, which asks Polar at once. - Deactivate this Mac runs
bqto license deactivate. A second click confirms. - To remove other computers, use your Polar customer portal. The app links to it.
The app needs bqto Pro. See https://bqto.dev/#pro and Quit.
Use the app
- Switch on a profile or a stack to open its session. Switch off to end it. bqto deletes the bastion.
- A ready session shows
127.0.0.1:PORT, its end time, and a countdown. Click the address to copy it. Thetry:lines of bqto say how to use the session. - The menu bar shows the number of open sessions and the earliest end time.
- The app groups profiles by project. When you unfold a stack, it lists its profiles in order. bqto creates the bastion in the project and region of the first profile.
- Connect… lets you pick a project, a service, and an instance, and connect without a profile. It has a Duration field, a Spot VM box, and, for Cloud Run, a Web proxy box. Select Save as a profile to save the session as a profile.
- Recent lists the last three sessions opened from Connect…. It keeps the project, the service, the instance, and the settings. It keeps no secrets.
- Open at login starts the app when you log in to the Mac.
- Quit ends every session and deletes the bastions.
Errors
The app shows errors as bqto writes them: one line with the cause, and aFix: line. The whole
text is under Details.
bqto connects only when your Application Default Credentials (ADC) and gcloud use the same
account. If they differ, the bottom of the menu says so, with a Fix: line.
Limits
- The pickers of Connect… list what gcloud lists. This includes instances that bqto cannot reach, such as a Cloud SQL instance with only a public IP.
- The pickers do not list private endpoints. A profile with a private endpoint that you made in a terminal still connects.
- Connect… has no port field.
- A profile whose project no longer exists, or that you cannot reach, still has a switch. When you turn it on, the error from bqto says why.
- Open at login works for the app in
/Applications. - If the app crashes or is force-quit, macOS closes the pipe to bqto. bqto then ends the session and deletes the bastion.