Commands

Yuna has two command surfaces: the local CLI (yuna) for setup and device management, and Telegram slash-commands for runtime control. Most day-to-day operation happens via plain Telegram messages โ€” you only touch the CLI once per device.

CLI

CommandDescription
yuna initInteractive wizard: deploy server to Vercel, configure Telegram + Anthropic + Upstash, save local config
yuna init --manualScaffold the server to ./yuna-server/ instead of auto-deploying
yuna add-device --code X --url YRegister this machine as a device using a one-time setup code from Telegram
yuna startRun the device agent in the foreground. Long-polls for commands and executes them.
yuna statusServer health check + online/offline device list
yuna resetPointer to /reset on Telegram
yuna create-codePointer to /create-code on Telegram
yuna revoke-device <name>Pointer to /revoke on Telegram
yuna logsPointer to /logs on Telegram
yuna --helpAll of the above

Telegram

Send any of these as a message to your bot. Slash-commands are instant; plain-text messages go through Claude and may dispatch tool calls to your devices.

Slash-commands

CommandWhat it does
/startWelcome message and command reference
/statusDevice list with ๐ŸŸข/๐Ÿ”ด online status and last heartbeat
/resetClear conversation history
/create-codeGenerate a one-time device setup code (10-min TTL, single-use)
/revoke <name>Revoke a device's token (instant โ€” the Redis key is deleted)
/logsLast 20 audit log entries (commands + errors)

Model overrides

Prefix any message to pick the model for that turn:

PrefixModelRough cost
@haiku (default)Claude Haiku 4.5~$0.001/msg
@sonnetClaude Sonnet 4.6~$0.01/msg
@opusClaude Opus 4.6~$0.05/msg
@opus explain why my build is failing
@sonnet draft a changelog for v0.2
what's 2+2       # โ†’ direct answer, no tools, Haiku

Emoji reactions

React to any message Yuna sent to drive the next turn without typing. For risky-command confirmations, ๐Ÿ‘ approves and โŒ cancels.

EmojiMeaning
๐Ÿ‘ / โค๏ธ / โœ… / ๐Ÿš€Yes, proceed / confirm / ship it
๐Ÿ‘Ž / โŒNo, stop / cancel / revert
๐Ÿ”„Retry the previous action

Natural-language examples

check my battery                 # routes to the right device
clean up /tmp on the laptop      # triggers the risk gate
copy build.tgz from mac to pi    # uses transfer_file if mesh-configured
what's the load avg everywhere   # parallel tool use across devices
@opus debug this stack trace ... # one-off model override