Back to onyxcode.app
Documentation

Commands and shortcuts in Onyx Code

Every slash command, every Onyx entry in the Command Palette, and the default key bindings.

Applies to the current releaseReference

Everything you can type into chat

Type / at the start of a chat input. The command list and their args:

CommandWhat it does
/helpShow every command in the chat.
/initScaffold ONYX.md, .onyxrules, .onyxnoai, and .onyx/instructions.md at the workspace root. Existing files, and one you create while the AI draft is written, are left as they are.
/onyxrulesOpen or create .onyxrules.
/onyxnoaiOpen or create .onyxnoai.
/permissionsOpen or create .onyx/permissions.json (committed AI approval rules). Creates from a starter deny list if missing.
/instructionsShow the project-specific instructions the AI receives.
/primerShow the workspace primer.
/newStart a new chat; save the current to history. Changes you had not kept are discarded, and the chat says how many.
/clearReset the AI's view of the conversation; visible messages stay, and the chat so far stays in Chat History as its own entry.
/summarizeCompress earlier turns into a model-generated summary now.
/attachmentsList every file attached to the current chat.
/file <path>Attach a file by path: pick from the list, or type a relative or absolute path (C:\ paths on Windows, a quoted path from Copy as Path, or a file:// address). A file .onyxnoai excludes, a protected file from outside the workspace or a symbolic link is refused, with the reason.
/search <query>Semantic search over the codebase index - no AI call.
/workspace <query>Same as a normal chat turn but with wider RAG (top-15 instead of top-5).
/diffPrint the current uncommitted git diff.
/exportPro. Export the conversation to .md or .json. A protected file or a symbolic link is listed by path only, without its content.
/statsActive chat model, embedding model, index status - all in one view.
/contextLive context-window usage breakdown.
/modelShow the active chat model details.
/compare <prompt>Pro. Run the prompt across 2 to 5 models side by side (locally one model loads at a time), then keep the best answer or make a model active.
/embedding-modelShow the active embedding model + index status.
/processor [gpu|cpu|auto]Show or switch the AI processor (GPU / CPU / Auto). Restarts the local servers.
/tabShow Onyx Tab status (Zeta-2 install / running, paths, settings).
/reindexRebuild the codebase index from scratch.
/reindex-clearWipe the index and on-disk snapshot (no rebuild).
/planSwitch agent mode to Plan.
/askSwitch agent mode to Ask before edits.
/editSwitch agent mode to Edit automatically.
/autoSwitch agent mode to Auto (requires worktree).
/mcp [sub] [id]Manage MCP servers; subcommands: list, start, stop, restart, logs, add.
/memory [sub] [name]Pro. Show / read / delete project memory files.
/licenseOpen the License Panel: tier badge, license details, and one-click buttons for every license action.
/activateOpen the activation dialog for a 16-character code plus email verification. If Pro is already active on this device, short-circuits to an 'already activated' dialog with View License / Manage Devices / Close buttons instead of presenting the input form.
/activate-fileOpen the OS file picker to activate from a .onyxlicense file (offline activation, no network call).
/deactivateClear the cached license on this machine AND release its slot server-side. The license itself is preserved; you can re-activate any time, on this or another machine.
/manage-devicesList devices bound to your Pro license and request removal of one. Removal requires a 15-minute email-confirmation link opened on this device.

Onyx entries in the Command Palette

Press F1 (or Cmd+Shift+P / Ctrl+Shift+P). All Onyx commands sit under the Onyx category.

CommandWhat it does
Onyx: Toggle Onyx Code ChatShow / hide the chat panel.
Onyx: Browse ModelsOpen AI Settings - Browse Models tab.
Onyx: Open EmbeddingsOpen AI Settings - Embeddings tab.
Onyx: Select AI Processor (GPU / CPU)Choose Auto, GPU or CPU for local models; the running servers restart to apply it.
Onyx: Check for Engine UpdatesCheck now for a newer llama.cpp engine and offer Update when one is available.
Onyx: Toggle Air-Gap ModeBlock / unblock Onyx Code's own outbound network traffic.
Onyx: Open Privacy SettingsJump to the Privacy settings group.
Onyx: Toggle Workspace AIDisable / enable AI surfaces in the active workspace.
Onyx: Show AI Activity LogRender the audit log as a Markdown table.
Onyx: Export AI Activity Audit (PDF)Generate a signed audit PDF.
Onyx: Draft Commit Message from Staged ChangesInsert a commit message into the SCM input.
Onyx: Draft PR Description from This BranchCopy a PR description to the clipboard.
Onyx: Generate Tests for SelectionSend the editor selection to chat with a tests prompt.
Onyx: Rebuild Codebase IndexForce a full reindex.
Onyx: Clear Codebase IndexWipe the index and the on-disk snapshot.
Onyx Code: Show Onboarding WizardRe-run the first-run wizard.
Onyx: Import Settings from VS CodeRun the VS Code import flow outside the wizard.
Onyx: Activate ProOpen the centered modal dialog for a 16-character activation code plus email verification. If Pro is already active on this device, short-circuits to an 'already activated' dialog with View License / Manage Devices / Close buttons.
Onyx: Activate from Offline FileOpen the OS file picker for a .onyxlicense file. Verifies the embedded JWT against the bundled public key with no network call.
Onyx: Show This Device's IDOpen a dialog with the SHA-256 hash of the local install identifier and a Copy ID button. Needed for offline activation.
Onyx: Deactivate This DeviceClear the cached license on this machine AND release its slot server-side. The license itself is preserved.
Onyx: Refresh License NowForce-refresh the cached JWT against the licensing server. The background scheduler normally handles this in the token's last week.
Onyx: Resend Activation Code by EmailLost-your-code recovery. Constant-time response and a 60-second client cooldown; non-disclosing wording so the toast cannot be used to enumerate purchase emails.
Onyx: Manage DevicesList the devices bound to your Pro license and request removal of one (other than the current device). Removal requires a 15-minute confirmation link opened on this device.
Onyx: Open License PanelOpen the unified License panel: tier badge, license details for Pro users, machine ID, and one-click buttons for every license action above.

Default key bindings

Shortcut (macOS)Shortcut (Win/Linux)Action
Cmd+LCtrl+LToggle Onyx Code Chat (primary)
Cmd+ICtrl+IToggle Onyx Code Chat (secondary)
Cmd+Shift+EnterCtrl+Shift+EnterKeep All Proposed Changes
Cmd+Shift+BackspaceCtrl+Shift+BackspaceDiscard All Proposed Changes
TabTabAccept the current inline autocomplete suggestion
EscEscDismiss the current inline autocomplete suggestion

All standard VS Code shortcuts apply unchanged. Customize via Preferences → Keyboard Shortcuts.

Everything here works offline

These commands drive a model running on your own machine.

Free tier, no account, no sign-up, no telemetry. macOS, Windows and Linux.