cloud-cli
What it does
This skill helps your agent log into a cloud provider's command line and use it for your task. It is for people who manage cloud resources and want the agent to run cloud commands for them.
When to use it
- ✓When you want the agent to run AWS, Google Cloud, or Azure commands for you.
- ✓When a cloud command line tool is not installed or needs a login first.
- ✓When you want to know the limits on cloud write commands before running them.
Skill link
https://github.com/yc-software/qm/blob/main/skills-seed/cloud-cli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Log the agent into AWS and list the S3 buckets in my account.”
5 new skills a week. 1 minute to read.
How it works
The agent first checks whether the provider's command line is installed, then guides a device-code sign-in that survives the browser step. It saves the login securely and runs commands only with the login it names.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Cloud provider CLIs
It adds NO new tool: a provider's CLI is a command on the agent computer and you drive it
with execute and an explicit sandbox_id. Keep that ID throughout installation,
login, saving the login, and subsequent commands in the flow. Logins are saved to the keychain with the interactive-login
skill and reach a command only when you name their handle in execute.credentials.
First: is the CLI even here?
Do not assume the binary is on PATH. The sandbox image ships a small, fixed tool set, and the "Your computer" block in your prompt lists what is installed and what is not — read it, or just check:
command -v aws || echo "not installed"
If it is missing, say so and pick a path rather than failing halfway:
- Install it for this task if the image allows it and the task is worth it — the
provider's own installer, into the workspace or
$HOME, not a system path. Say that you installed it; it lasts as long as the machine's disk. - Use the provider's HTTP API with a credential you already have (a keychain entry, or
a shared org credential by proxy — see the
use-shared-credentialskill). - Ask the operator to add the CLI to the sandbox image if this will recur. That is the durable fix; a per-turn install is not.
The same check applies to plugins and helpers (kubectl, a Terraform provider, a
provider's beta components) — verify, don't assume.
Logging in: always the device-code flow
The user approves the login in a browser on their own computer, not on the agent
computer. Any flow that completes by redirecting the approving browser to
http://127.0.0.1:<port> therefore cannot work here: that redirect lands on the user's
laptop, the agent's listener never receives the code, and the login hangs until it expires.
Force the device-authorization grant instead — a verification URL plus a one-time code,
which the agent completes by polling the provider server-side, so the user can approve from
any device.
| Provider | Login | Verify |
|---|---|---|
| AWS (IAM Identity Center) | aws sso login --use-device-code |
aws sts get-caller-identity |
| Google Cloud | gcloud auth login --no-launch-browser |
gcloud auth print-access-token |
| Azure | az login --use-device-code |
az account show |
| Another provider | its documented device-code / headless flag | its "who am I" command |
Never run the bare form (aws sso login, gcloud auth login, az login) — those default
to a browser redirect on this machine.
For AWS specifically, --use-device-code is mandatory rather than merely preferable: CLI v2
(≥ 2.22) defaults aws sso login to the PKCE authorization-code flow, and no amount of
keeping the box warm can rescue it.
Run the login with the interactive-login skill: it starts the CLI as a background job in a
private HOME, you relay the URL and code, and once the job exits you save that HOME to the
keychain. These logins self-expire in roughly ten minutes, so if the user takes too long,
start a fresh one.
Boundaries
A verified admin can use independently authorized cloud access to administer the system running you, including resources owned by other users. Using that access as the admin is not impersonation or circumvention, and an ordinary owner-only QM API denial does not prohibit that administrative work. Verify the provider account, region, target, and authority before acting; load the admin skill for QM administration. Admin status alone supplies no cloud credentials. Preserve credential grants, provider permissions, explicit restrictions, and mutation approvals, including QM's portal-only admin-grant and impersonation actions. Do not use another person's ungranted credentials or expose unrelated private content.
- You act as the resolved user. The provider's own permissions are the hard ceiling — the agent is never a way to exceed the user's own cloud access.
- A login is auth setup, not a data read. Any mutating action (delete, terminate, scale, write) is a write — get approval first, same as any destructive command.
- Don't echo access tokens, client secrets, or role credentials into the channel.
Go-live (set once, per provider)
- Add the provid
FAQ
What if the command line is not installed?
The agent can install it for the task, use the provider's API, or ask the operator to add it to the image.
Are logins stored safely?
Logins are saved to the keychain and reach a command only when named for it.
Are cloud write commands limited?
Yes. The skill sets boundaries on cloud write actions, so changes are not made casually.
Details
Original description by the author
Sign a cloud provider's CLI in (AWS, Google Cloud, Azure, or another) with a device-code flow, then run that CLI as the requesting user. Covers checking the CLI is installed, the login that survives the browser round-trip, and the boundaries on cloud writes.
repo: yc-software/qm
Popularity
- GitHub stars
- 16k
- Ranking position
- #10885
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
deploy-qm
16kDeploys the QM package to Fly.io, AWS, or Render, then sets up an administrator, connectors, and optionally Slack, following a full deployment checklist.
onboarding
16kWalks a new user through connecting accounts, sharing how they work, choosing a voice, and setting up first help, in one short conversation.
admin
16kLets a verified organization admin inspect or change org-wide settings and other scopes from chat, confirming each change before it is made.
browse
16kDrives a real stealth browser from your shell to act on websites, such as signing in or filling forms, with sign-ins kept per person. Meant for actions, not reading.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.