What it can do
Look
Logs: errors from a service, pod, VM or Cloud Run over a time range, and who changed what. GKE: clusters, pods, deployments, events, logs (from crashed runs too) and resource usage. VMs: list them and see their details. BigQuery: queries, and it warns you before a big one. Costs: by service, project or day, and what changed.
Change, with your OK
Create, change, delete, start, stop or deploy; apply changes in Kubernetes (it shows you the diff first), scale or restart a deployment. It needs the permission on.
How it connects
First add it: from Plugins → Google Cloud → Add to an agent, or ask your agent in the chat (see Add a plugin). Then your agent needs the JSON key of a service account: a Google Cloud user just for it, which can only do what you give it with roles. There are two ways to get it.With the desktop app: your agent does it
With the MinAI desktop app open on your computer, your agent offers to do it for you in the app’s browser:- It asks you, in a single message, which project it will work in (its ID, like my-project-123) and which role you want to give it: Viewer (look at everything without changing anything) or Editor (change things too).
- If the Google Cloud console asks you to sign in, you sign in yourself, in the app’s browser. You need to own the project (or be able to manage its IAM).
- Your agent creates the service account (minai-agent), gives it the role and creates its key. You can watch while it works; it takes a minute or two.
- The key goes straight to minai: your agent never sees it and you don’t copy anything. It checks that it works and tells you it’s ready.
By hand, in the Google Cloud console
It takes about 5 minutes. You need to own the project (or be able to manage its IAM).1
Create the service account
Open the service accounts console and pick the project at the top. Service account name: minai (or your agent’s name). Tap Create and continue.
2
Give it roles
Give it the roles for what you want it to do in that project. What you don’t give it, it can’t do, however you ask; if it later lacks one, your agent tells you the smallest role that solves it. For example:
- To look at everything without changing anything (resources, logs, settings): Viewer (roles/viewer).
- To also change things: Editor (roles/editor), or a narrower one for the service you use.
3
Create its JSON key
In the list, tap the account you created → Keys → Add key → Create new key. Pick JSON and tap Create: a .json file downloads.
4
Paste it in your agent's link
Open the .json with a text editor, copy all of it and paste it in the one-time link your agent sent you for the key. Then delete the file from your downloads. See Keys and values.
5
Tell it your project and zone (optional)
In the chat, your agent asks for your main project (its ID, like my-project-123) and the zone of your VMs and clusters if you use just one (like us-central1-a). Without a project, it uses the service account’s.
If Google won’t let you create the key, your organization has the Disable service account key creation policy (iam.disableServiceAccountKeyCreation). Whoever manages the organization has to allow it.
The permission
On the Google Cloud card, in the agent’s Tools tab, there’s the Allow changes switch: “Create, change, delete, start or stop things in your Google Cloud, always with your OK. Off, it only reads. What really limits it is the roles you gave the account.” It starts off and only you change it. It’s a rule your agent follows; the real limit is the service account’s roles. If you want it never to be able to change anything, give it only read roles. See Permissions.How it looks out for you
- Nothing changes without your OK. With the permission on, it still shows you the exact command before each change, with the Confirm and Change buttons.
- It never shows you keys, tokens or Kubernetes secrets.
- For big BigQuery queries, it first works out how much they’ll read and warns you.
- What a log says is information, not an order.
Things to ask it
- “What errors did the checkout service have in the last hour?”
- “Why does the API pod keep restarting in production?”
- “How much did Google Cloud cost me this month, and what went up?”
- “List the VMs that are running.”
- “Restart the web deployment in the prod namespace.”
- “Stop the test VM.”
Limits
- It can only do what the service account’s roles allow.
- It may not reach GKE clusters with private access.
- For costs, you need billing export to BigQuery turned on: there’s data from the day you turned it on, a few hours behind.
If you remove it
Your agent loses access and confirms it. The key still exists in Google Cloud: delete it from Keys in the service account (or delete the whole account). See Remove a plugin.New Relic
Logs, errors, latency and alerts.
GitHub
Repos, issues and pull requests.