Skip to main content
This needs bqto Pro and a usable license key.
The bqto menu bar app lists your bqto profiles and stacks. It creates, edits, and deletes them, and opens a session with a switch. Internally, it runs the bqto Pro binary.

Requirements

  • macOS 14 or later, on Apple silicon or Intel.
  • bqto Pro on your PATH, from pilef-co/bqto-pro-releases. See Install.
  • gcloud, signed in with gcloud auth login and gcloud auth application-default login.

Install

The bqto “b” appears in the menu bar. Apple does not sign the app yet. The Homebrew cask removes the quarantine flag, and curl does not set it. So the app usually opens with no question. If macOS says that it cannot check the app for malware:
  1. Click Done.
  2. Open System Settings, then Privacy & Security.
  3. Scroll down to “Bqto was blocked”, click Open Anyway, and confirm.
You do this once. After that, the app opens like any other app.

Update

Quit the app (Quit in its menu). Then run the install command again. With Homebrew, run:
The app uses the first bqto that it finds: $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 runs bqto 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.
With the free bqto, which refuses profiles, the menu shows only 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. The try: 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.
For Cloud Run, turn on Web proxy in the profile. In a stack, the Cloud Run profile must be the first one. The session then shows a link that opens the service in the browser.

Errors

The app shows errors as bqto writes them: one line with the cause, and a Fix: 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.