TINY(1)General Commands ManualTINY(1)

Claude, Codex & Gemini

tiny runs three coding agents. Claude Code is the default; OpenAI's Codex and Google's Gemini CLI are one flag away:

tiny new "fix the flaky test"                  # Claude Code
tiny new --agent codex "fix the flaky test"    # Codex
tiny new --agent gemini "fix the flaky test"   # Gemini CLI
tiny new --agent codex --model gpt-5.2-codex "…"

--model works for all three (claude --model / codex -m / gemini -m underneath), and the o options form on the fleet screen has both fields. The rest of the runtime does not care which agent is inside: the fleet screen, the gate tools, the durable inbox and pod-death resume behave the same. In the desktop app, New helper starts with the choice of the three, and a Model list under it: Opus, Sonnet or Haiku for Claude Code, Pro, Flash or Flash Lite for Gemini (each name keeps meaning the newest of its kind), or Other for any name the assistant takes. Codex has no such names, so it lists Default and Other.

Gemini is the newest. Its session runs Gemini CLI with --yolo inside the pod (the pod is the sandbox; the gate is the approval) and with its own ask_user tool turned off, so its questions arrive through ask_human like the others'. Gemini CLI still asks before some commands even with --yolo, whenever parts of one came from text it doesn't trust (a web page, a command's output), and nothing turns that off. tiny shows that prompt as a question with the command and Gemini's choices, Allow once or Decline, and types your answer into its prompt; if you answer in the terminal instead, the card goes away. After a pod restart it reopens the newest chat with --resume latest. Unlike Claude's, its usage-limit resume hasn't been through a real limit for us yet.

What the payload carries

The injected payload holds all three CLIs, with versions pinned by the agent image. Agents don't self-update inside a workspace; a new agent version arrives as a new image. Codex is a static musl binary, so codex sessions run even in images claude can't (alpine). Gemini CLI is a Node program: Node travels with it, and only gemini sessions get that part of the payload copied in, so the others start no slower. Node needs glibc and libstdc++, which debian, ubuntu and fedora images have.

Each agent keeps its state on the workspace volume (/workspace/.claude, /workspace/.codex, /workspace/.gemini), which is why a replacement pod resumes the transcript instead of starting over.

Credentials

Each agent signs in the way it does on your laptop, on the plan you already have:

  • Claude — claude setup-token (Pro/Max) or an Anthropic API key; tiny setup stores either.
  • Codex — run codex login on your machine (ChatGPT Plus/Pro), then tiny setup: it finds the login and offers to store it. An OPENAI_API_KEY works too.
  • Gemini — create an API key in Google AI Studio (a free tier, then billed per use) and give it to tiny setup. Google ended free Google-account sign-in for Gemini CLI in June 2026: only Code Assist Standard and Enterprise accounts can still sign in with Google, and for them tiny setup still finds ~/.gemini/oauth_creds.json.

The desktop app needs none of the CLIs on your Mac: its Sign in with Claude / ChatGPT / Google buttons run the agent's own login in a short-lived pod in the greenhouse and open the provider's page in your browser (details in model credentials).

tiny setup writes the cluster Secret itself, and the credentials live side by side, so a mixed fleet works without extra setup. Each session holds only its own agent's credential: the others are blanked in its container, so a Claude session never sees the Google or ChatGPT login. To keep the Claude credential out of agent pods altogether, see keeping the model key out of pods. A session whose token expired says so on the fleet screen in the agent's own words; rotate with tiny setup and cycle the pod.

Usage limits

When a session hits a plan limit it pauses itself. The fleet row shows ⏸ usage limit with the resume time, and the agent picks the work back up on its own.

Command sessions: no agent at all

A session can also run no coding agent. With agent: command, it runs spec.command once, as argv, in the session's image, and that's all: no model, no tmux, no resume. The exit code lands in /workspace/.tiny/command-done, so a container restart never runs the command a second time, and the pod then idles so its log stays readable until you delete the session.

It's meant for code you trust least, such as a generated script or an untrusted repository's test suite, run in the same box your agents get. It keeps everything that confines a session: the restricted container profile, the egress policy and allow-list, node placement, the runtime class (so gvisor works) and resource limits. It holds even less than an agent session: no model credentials, no deploy key, no service-account token, and no MCP sidecar.

From the command line it's tiny run, which also streams the output and exits with the command's exit code:

tiny run --image python:3.13-slim --runtime-class gvisor -- python3 -c "print('hello from a sandbox')"

From Go, use pkg/session. Applying the Session with kubectl alone starts nothing, because tiny has no operator: whoever creates a session also creates its workload, and session.Create does both.

s := &agentsv1.Session{
	ObjectMeta: metav1.ObjectMeta{Namespace: "agents", Name: "run-untrusted"},
	Spec: agentsv1.SessionSpec{
		Agent:            "command",
		Image:            "python:3.13-slim",
		Command:          []string{"python3", "-c", "print('hello from a sandbox')"},
		RuntimeClassName: "gvisor",
	},
}
err := session.Create(ctx, c, s)

With spec.repo set, the repo is cloned before the command runs and the command runs inside it. The image needs git, and the URL has to work without credentials, since a command session has no deploy key. A failed clone records exit code 128 and runs nothing. The fleet screen shows a finished command session as ✓ exited 0 or ✗ exited N.

House rules

Claude reads CLAUDE.md, Codex AGENTS.md and Gemini GEMINI.md. tiny seeds all three with the same rules: keep the title current, ask before doing anything hard to undo, use the outbox, spawn specialists for missing toolchains. tiny's rules sit between two marker comments and are rewritten every time the session starts, so a session made by an older release follows the current ones after an upgrade. Add your own rules outside the markers: those lines stay. A file tiny didn't write is never touched.

Running Codex on your own cluster instead of OpenAI's: tiny vs Codex cloud.