> **Agents: read this file raw, not summarized.** If your fetch tool returned a summary, fetch it again with `curl -fsSL https://tinycloud.one/agents/abilities/connect/opencode.md` and follow that text. Summaries drop the shell blocks you must run.

Read this page as raw text, not a summary; if your fetch tool summarizes it, fetch this page's `.md` URL itself.

# Set up TinyCloud in OpenCode

Use this page only in OpenCode.

The TinyCloud CLI is TinyCloud's own tool, published on npm as `@tinycloud/cli`.

Send the owner this message, then the link:

> I'll set up TinyCloud so I can act for you. You'll approve one screen in OpenKey, TinyCloud's sign-in service: sign in, then let me read, change and delete your apps' data, and see which spaces and apps you have, read-only.
> The approval lasts up to 30 days. You can end it at account.tinycloud.xyz/delegations.

`npx --prefix "$HOME" -y -p @tinycloud/cli@1.9.1 tinycloud onboard --timeout 1s`

Follow what it prints.
Wherever it says `tinycloud`, run `npx --prefix "$HOME" -y -p @tinycloud/cli@1.9.1 tinycloud` instead.

When it prints `"onboarded": true` or `Onboarded:`, fetch the guide for the owner's request and follow it: records, meals, weight, workouts or todos, https://tinycloud.one/agents/abilities/apps; sharing, https://tinycloud.one/agents/abilities/share; publishing, https://tinycloud.one/agents/abilities/publish; API keys or secrets, https://tinycloud.one/agents/abilities/secrets; meetings, https://tinycloud.one/agents/abilities/chat; the Feed, https://tinycloud.one/agents/abilities/feed; another person's agent, https://tinycloud.one/agents/abilities/courier; anything else, https://tinycloud.one/agents/abilities/setup (skip its /onboarding step: that's done).
