TINY(1)General Commands ManualTINY(1)

Install

tiny is a single binary. Install it with Homebrew or download one from Releases (macOS and Linux, amd64/arm64; Windows works for the CLI too).

$ brew install tiny-systems/tap/tiny
$ tiny setup
$ tiny new "make the tests not lie"

As a kubectl plugin, with krew

If you use krew, tiny installs as a kubectl plugin named tiny-agents. Every release carries a krew manifest:

kubectl krew install --manifest-url=https://github.com/tiny-systems/tiny/releases/latest/download/tiny-krew.yaml
kubectl tiny-agents setup
kubectl tiny-agents new "make the tests not lie"

tiny isn't in the central krew index yet. Once it's listed, the install becomes kubectl krew install tiny-agents.

It's the same binary, so everything on these pages works with kubectl tiny-agents in place of tiny: kubectl tiny-agents run …, kubectl tiny-agents rm …. Messages tiny prints still say tiny <command>. Upgrade with kubectl krew upgrade tiny-agents; kubectl tiny-agents upgrade only tells you to, because a copy that replaced itself would leave krew's records behind.

What tiny setup actually does

One wizard, four steps, each skipped when already done:

  1. Pins your cluster — arrow-key picker over your kubeconfig contexts; enter-enter repeats yesterday's choice. --context/-n skip it everywhere.
  2. Installs the runtime — two CRDs (Session, Question) and one ServiceAccount for the sidecar. It installs no pods, so an idle install is just metadata.
  3. Stores agent credentials — paste a claude setup-token (Claude Pro/Max) or an Anthropic API key; if you've run codex login on this machine it offers to store that too (both agents). tiny writes the cluster Secret itself (tiny-agent-env) — you never touch kubectl or a Secret manifest.
  4. Mints a deploy key — a dedicated ed25519 pair for private repos: private half into a cluster secret, public half printed for GitHub. It never reads your ~/.ssh.

Re-run it any time: it offers only what's missing and asks before replacing an existing token. Rotation is the same wizard with a new token.

Several clusters

Work and home clusters stop needing memorized context strings — name them once:

tiny profile save work --context gke_yourco_prod -n team-a
tiny profile save home --context k3s-nuc -n tiny
tiny -p work            # any command takes -p

tiny profile list shows what's saved. With two or more profiles, the bare tiny start asks which fleet with an arrow-key list — last-used first, so enter-enter repeats yesterday's choice. Scripted and flagged calls never see the prompt. tiny setup prints its target before touching anything, so the wrong-cluster token mistake announces itself.

CI installs

tiny init is the scriptable subset: runtime install, no questions.

tiny init --context prod -n team-a --yes

When a credential goes bad

A session with an expired token says so on the fleet screen in the agent's own words (Invalid API key, OAuth token has expired). Replace the token with tiny setup, cycle the session's pod (kubectl delete pod -l tinysystems.io/session=<name>), and the transcript resumes where it stopped.

Keeping it current

tiny upgrade

Fetches the latest release for your platform, checks it against the release's published checksums, and replaces the running binary. It will not move you to an older version, and it refuses to install a download whose checksum does not match. Homebrew installs are swapped in place.

The agent image follows the binary: a released tiny starts sessions from the image built from the same tag. The runtime installed on the cluster (the Session CRD and the session account) does not update itself, so after tiny upgrade run tiny init against each cluster you use, or tiny init --yes in CI. An outdated runtime silently drops newer session fields; tiny warns when it sees one and refuses a create that would lose a field.

Uninstall

Delete the sessions, then the two CRDs and the ServiceAccount. Nothing else was installed.