7. Slash Commands

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

Rayu provider/model commands

CommandDescription
/connectAdd or switch a provider: pick type → enter API key → choose a model. See Providers.
/modelSearchable model picker across all connected providers. /model <id> sets a model directly. See Models.

Session & context

CommandDescription
/helpList all available slash commands
/contextShow context-window usage for the session
/costShow token usage and cost for the session
/compactSummarize and compact the conversation to free context
/clearStart a fresh conversation (also /reset, /new)
/exportExport the conversation
/copyCopy the last response
/resumeResume a previous session
/exitQuit Rayu

Configuration & tools

CommandDescription
/configView/edit settings
/mcpManage MCP servers (also available as the rayu mcp subcommand)
/memoryEdit project memory (RAYU.md)
/agentsManage agents
/hooksConfigure hooks
/effortSet effort level
/diffShow pending diffs
/doctorRun environment/health checks
/theme (via /config)Change color theme
/brandmarkCustomize Rayu's brand mark glyph and loading-spinner style
/telegram-botLink a Telegram bot to drive this CLI remotely
/disconnect-telegramUnlink the Telegram bot from this CLI session

Notes

  • The exact set of commands depends on enabled features and plugins; /help is authoritative for your build.
  • Some upstream commands tied to inert features (login/OAuth, bridge/remote, desktop, IDE integrations) are present but non-functional in this fork — see Troubleshooting.
  • Tip: type slash commands one keystroke at a time; pasting a whole command at once can be treated as pasted text rather than triggering the command menu.

Next: MCP →