7. Slash Commands

Slash commands run inside an interactive session. Type / to open the command menu; start typing to filter. Press Enter to run.

The exact set of commands depends on enabled features and plugins. /help is authoritative for your build. Type commands one keystroke at a time — pasting a whole command string can be treated as pasted text.


Provider & model

CommandAliasesDescription
/connectConnect an LLM provider: pick provider, enter API key, choose a model. See Providers.
/model [model]Set the AI model (searchable picker across all connected providers). /model <id> sets directly. See Models.
/collaborator_model [collaborator] [default|show]Set the model for collaborators (frontend/backend/mobile/security/deploy). With no name, applies to all; default is inherit from the main agent.
/model_subagent [AGENT] [default|show]Set the model used by subagents (currently the main provider's instant model).
/model_image_generationSet the image generation/editing model (default: NVIDIA).
/model_video_generationSet the video generation model (default: NVIDIA/fal).

Session & context

CommandAliasesDescription
/helpShow help and available commands.
/contextVisualize current context usage as a colored grid.
/compact [instructions for summarization]Clear conversation history but keep a summary in context. Optional: /compact [instructions for summarization].
/clearreset, newClear conversation history and free up context.
/export [filename]Export the current conversation to a file or clipboard.
/copy [N]Copy Rayu's last response to clipboard (or /copy N for the Nth-latest).
/resume [conversation id or search term]continueResume a previous conversation.
/rename [name]Rename the current conversation.
/tag <tag-name>Toggle a searchable tag on the current session.
/sessionremoteShow remote session URL and QR code.
/branch [name]forkCreate a branch of the current conversation at this point.
/rewindcheckpointRestore the code and/or conversation to a previous point.
/undo [file|all]Undo pending Rayu file changes (use "all" to undo everything).
/keep [file]Keep pending Rayu file changes.
/exitquitExit the REPL.

Collaboration & planning

CommandAliasesDescription
/collaborator_swarm [task description]Enter collaborator_swarm mode: orchestrate a complex build via the 3-phase flow (scope & research → aligned plan → delegate to specialist collaborators). /normal exits.
/normalExit collaborator_swarm mode (return to normal mode).
/ultraplan [task description]Deep multi-agent planning: explore in parallel, weigh approaches, produce a step-by-step plan for approval — runs locally on your provider.
/ultrareview [PR number, or empty for current branch]Deep bug-hunt on your branch: parallel review subagents find and verify bugs — runs locally on your provider.
/plan [open|<description>]Enable plan mode or view the current session plan.
/reviewReview a pull request.
/security-reviewComplete a security review of the pending changes on the current branch.
/pr-commentsGet comments from a GitHub pull request.

Configuration & tools

CommandAliasesDescription
/configsettingsOpen config panel.
/themeChange the theme.
/brandmarkCustomize Rayu's brand mark glyph and loading-spinner style.
/color <color|default>Set the prompt bar color for this session.
/vimToggle between Vim and Normal editing modes.
/effort [low|medium|high|max|auto]Set effort level for model usage.
/permissionsallowed-toolsManage allow & deny tool permission rules.
/sandbox exclude "command pattern"Configure sandboxing for Bash tool execution (hidden when platform not supported).
/statuslineSet up RAYU's status line UI.

Files, memory & project

CommandAliasesDescription
/initInitialize a new RAYU.md file with codebase documentation.
/memoryEdit Rayu memory files.
/filesList all files currently in context.
/diffView uncommitted changes and per-turn diffs.
/review_detail [file]Show detailed pending Rayu file change diffs.
/add-dir <path>Add a new working directory.

MCP, plugins & skills

CommandAliasesDescription
/mcp [enable|disable [server-name]]Manage MCP servers (also available as the rayu mcp subcommand).
/pluginplugins, marketplaceManage RAYU plugins.
/reload-pluginsActivate pending plugin changes in the current session.
/install-skill <github owner/repo | url | path> [--overwrite]Install a skill into Rayu from a GitHub repo, a SKILL.md URL, or a local path.
/skillsList available skills.

Account & usage (Rayu hosted)

CommandAliasesDescription
/loginSign in to your Rayu account (only when USE_RAYU_OAUTH=true).
/logoutSign out of your Rayu account (only when USE_RAYU_OAUTH=true).
/usageShow your Rayu plan + hosted-model usage (credits & tokens).
/statsShow your RAYU usage statistics and activity.
/insightsGenerate a report analyzing your RAYU sessions.

Background tasks & agents

CommandAliasesDescription
/tasksbashesList and manage background tasks.
/agentsManage agent configurations.

System & diagnostics

CommandAliasesDescription
/doctorDiagnose and verify your RAYU installation and settings.
/statusShow RAYU status including version, model, account, API connectivity, and tool statuses.
/hooksView hook configurations for tool events.
/keybindingsOpen or create your keybindings configuration file.
/ide [open]Manage IDE integrations and show status.
/terminal-setupInstall Shift+Enter / Option+Enter key binding (hidden when the terminal already supports it natively).

Generative media

CommandAliasesDescription
/generate-image [prompt]Generate an image from a text prompt (NVIDIA / Vertex Imagen). Requires NVIDIA API key or Vertex AI.
/image-editor [prompt]Edit an existing image with a text prompt (NVIDIA / Vertex Imagen).
/image-video [prompt]Generate a video from a text prompt (fal.ai / NVIDIA / Vertex Veo).

Miscellaneous

CommandAliasesDescription
/btw <question>Ask a quick side question without interrupting the main conversation.
/feedback [report]bugSubmit feedback about RAYU.
/advisor [<model>|off]Configure the advisor model. Pass a model id to set it, or off to disable.
/contact_meContact developer.
/think-backYour 2025 RAYU Year in Review (feature-gated).
/telegram-botLink a Telegram bot to drive this CLI remotely (gated by telegram feature).
/disconnect-telegramUnlink the Telegram bot from this CLI session.

Next: MCP →