Qwen Code Commands Cheat Sheet: CLI, Slash Commands & Config

Use this Qwen Code cheat sheet to look up CLI commands, slash commands, keyboard shortcuts, configuration paths, automation flags, permissions, sandbox settings, MCP, Skills, and developer workflows.

Qwen Code is an open-source AI coding agent that can inspect repositories, edit files, run shell commands, and connect to external tools through MCP.

This cheat sheet is a lookup reference for its CLI syntax, slash commands, keyboard shortcuts, configuration files, headless flags, permissions, and sandbox controls.

You can also run qwen --help for the CLI commands and flags in your installed build and /help inside Qwen Code for the slash commands available in that session.

Last updated: September 25, 2026.

Qwen Code Commands Cheat Sheet

Quick Reference

CommandPurpose
npm install -g @qwen-code/qwen-code@latestInstall or update with npm. Requires Node.js 22+.
brew install qwen-codeInstall with Homebrew.
qwen --versionPrint the installed version.
qwen update / /updateCheck for and install an update.
qwenStart an interactive session.
qwen "prompt"Run a one-shot positional prompt.
qwen -i "prompt"Run an opening prompt and continue interactively.
qwen -p "prompt"Run a headless prompt.
qwen --continueResume the latest saved session for the current project.
qwen --resume <id>Resume a specific saved session.
/authConfigure authentication. Aliases: /connect, /login.
/modelSelect the active model. /model <model-id> switches directly.
/clearClear conversation history. Aliases: /reset, /new.
/compressCompress older conversation history. Alias: /summarize.
/contextShow context use. /context detail shows individual items.
/diffReview current and per-turn file changes.
/planEnter Plan Mode. /plan exit leaves it.
/approval-modeSet plan, default, auto-edit, auto, or yolo.
/permissionsInspect and edit permission rules.
/settingsOpen the settings editor.
/config <key>Read a scalar setting. /config <key>=<value> saves it.
/mcpInspect MCP servers and tools loaded in the session.
/skillsBrowse and run Agent Skills.
/memoryInspect QWEN.md and managed memory.
/tasksShow background agents, shells, monitors, workflows, and memory jobs.
/doctorDiagnose installation, authentication, environment, CPU, or memory problems.
/helpShow registered slash commands. Alias: /?.
/quitExit Qwen Code. Alias: /exit.

Input Syntax

SyntaxPurpose
/commandRun an interactive Qwen Code command.
@pathAdd a file or directory to prompt context.
!commandRun one shell command.
!Enter or leave shell mode.
?Show keyboard shortcuts when the prompt is empty.
?btw <question>Ask a side question outside the main conversation history.

Slash Commands

CommandDescription
/advisor [focus]Run a read-only second opinion on the visible conversation. Blocks input until the review returns.
/agentsManage named subagents. Common actions: /agents manage, /agents create.
/approval-mode [mode]View or change tool-approval behavior. Modes: plan, default, auto-edit, auto, yolo.
/arenaManage Arena sessions.
/authChange provider or authentication method. Aliases: /connect, /login.
/branchFork the current conversation into a new session.
/btw <question>Ask a side question outside the main conversation history. Alternative syntax: ?btw <question>.
/bug <description>Open the configured bug-report flow. Review attached diagnostics before sharing.
/cd <path>Change the active working directory.
/clearClear conversation history and release context. Aliases: /reset, /new.
/compressReplace older chat history with a compact summary. Alias: /summarize.
/compress-fastRemove old tool output and thinking content without a model call. Faster and less semantic than /compress.
/configList or change scalar settings by dot-path key. /config <key>. /config <key>=<value>.
/contextShow context-window usage. /context detail shows individual context items.
/coordinate <task>Coordinate read-only workers and an optional worktree writer. Bundled Skill.
/copy [selector]Copy a recent reply or selected content. Can select code, LaTeX, or Mermaid content.
/curatorInspect and maintain inactive project auto-Skills.
/deleteDelete a saved conversation. Use carefully. This is not /clear.
/diffOpen the interactive working-change and per-turn diff viewer. Headless mode prints a text summary.
/directoryManage additional workspace directories. Alias: /dir.
/docsOpen the official Qwen Code documentation.
/doctorDiagnose installation and environment problems. /doctor memory, /doctor cpu-profile, /doctor rollback add diagnostics.
/dreamRun automatic-memory consolidation immediately. Appears only when managed auto-memory is available.
/editorSelect the external editor.
/effort <level>Set reasoning effort. low, medium, high, xhigh, max. Provider support varies.
/export <format>Export the session. html, md, json, jsonl.
/extensionsManage installed extensions. Common actions: list, manage, explore, install.
/forget <query>Remove matching automatic-memory entries. Appears only when managed auto-memory is available.
/fork <directive>Start a background child agent with the full conversation context. Different from /branch.
/goal <objective>Keep working toward a verifier-checked objective. edit, pause, resume, clear manage the active goal.
/goal-draft <idea>Turn an imprecise task into a verifiable goal.
/helpShow commands available in the current installation. Alias: /?. This is the live source of truth.
/history <mode>Control history display after resume. Supports collapse/expand behavior.
/hooksInspect and manage hooks. Extensions can ship hooks.
/ide <action>Manage IDE integration. status, install, enable, disable.
/import-config <source>Import supported MCP definitions from Claude configurations. Sources: all, claude-code, claude-desktop. Supports --scope.
/initAnalyze the project and create or improve QWEN.md. Keeps an existing file and proposes additions.
/insightGenerate programming insights from chat history. Uses recorded conversation activity.
/languageView or change UI/output language. /language ui <code>. /language output <language>.
/learn <source> [focus]Create a reusable project Skill from supplied material. Accepts file, directory, URL, video, or text sources.
/logOpen the workspace commit-history viewer. Web Shell only.
/loop <interval> <prompt>Repeat a prompt at the requested interval. Runs while the session remains active.
/lspShow Language Server Protocol status. Requires --experimental-lsp.
/mcpList configured MCP servers and tools. desc, nodesc, schema change detail level.
/memoryOpen instruction-file and automatic-memory controls. Works with QWEN.md and managed memory.
/modelOpen the model picker or switch the current model. Supports --fast, --voice, --vision, --compaction, --image.
/output-styleSelect a built-in or custom response style. default removes the override.
/peersReview peer messages and trusted controllers. Cross-session control feature.
/permissionsInspect and edit tool permission rules. Permission rules do not enable sandboxing.
/plan [task]Enter Plan Mode, supply a task, or exit Plan Mode. Use /plan exit to leave.
/qc-helper <question>Ask the bundled Qwen Code help Skill.
/quitExit Qwen Code immediately. Alias: /exit.
/recapGenerate a one-line recap of the current session. Does not change history or project files.
/reload-pluginsReload commands, Skills, agents, workflows, hooks, MCP, and LSP definitions. Useful after extension/config changes.
/remember <text>Save a durable managed-memory entry.
/rename <name>Name or tag the current session. Alias: /tag.
/restore [ID]List checkpoints or restore project files to a checkpoint. Changes files, not conversation position.
/resumeOpen a previous conversation. Alias: /continue.
/review [target]Run bundled multi-agent code review. Supports PR number, --comment, and --effort.
/rewindReturn the conversation to an earlier turn. Alias: /rollback. Different from /restore.
/settingsOpen the settings editor. Use /config for direct scalar changes.
/setup-githubCreate the Qwen Code GitHub Actions setup.
/simplify [focus]Review recent changes and apply safe cleanup edits.
/skillsBrowse, search, toggle, and run Agent Skills. Enabled Skills can be invoked as /<skill-name>.
/statsOpen usage statistics. Alias: /usage. Supports model, tools, skills, daily, monthly, export.
/statusShow version and session information. Alias: /about. /status paths shows local paths.
/statusline [request]Select or generate a status-line configuration. Request form asks the agent to build one.
/summary [path]Write a project summary file. Default: .qwen/PROJECT_SUMMARY.md. Does not compress chat.
/tasksList background agents, shells, monitors, workflows, and memory jobs. Controls depend on task type.
/terminal-setupConfigure terminal keybindings for multiline input. Terminal-specific.
/tools [desc]List tools currently available to the model. desc includes descriptions.
/trustManage folder-trust settings. Appears when security.folderTrust.enabled is active.
/updateRun the Qwen Code update flow. Shell equivalent: qwen update.
/vimToggle Vim input mode. Affects prompt editing.
/voice [mode]Control voice dictation. Supports hold, tap, off, status.
/workflows [runId]Inspect or pause/resume workflow runs. Requires workflows to be enabled at user/system scope.

CLI Commands and Flags

CLI Commands

CommandDescription
qwenStart the interactive CLI. Uses the current working directory as the project workspace.
qwen [query]Run a positional one-shot prompt. Exits after the result.
qwen -i "prompt"Run an initial prompt and continue interactively. Keeps the TUI open after the first response.
qwen -p "prompt"Run a headless task. Accepts piped standard input.
qwen authRemoved legacy command. Use /auth inside an interactive session.
qwen sessions listList saved sessions. --Json emits JSON Lines. --Limit N changes the result count.
qwen sessions psList running interactive sessions. Add --json for scripts.
qwen sessions controllersManage trusted controller tokens. Advanced cross-session control.
qwen mcp <command>Manage persistent MCP server definitions. Common commands: add, remove, list, reconnect, approve, reject.
qwen extensions <command>Install and manage extensions. Install, uninstall, list, update, enable, disable, link, new.
qwen sandbox [cmd...]Inspect the sandbox backend or run a command inside it. Useful for sandbox diagnostics.
qwen review <command>Run non-interactive review helpers.
qwen board <command>Work with the agent board.
qwen channel <command>Manage configured messaging channels. Channel integrations only.
qwen hooksOpen hook management in the interactive interface.
qwen serveStart the experimental local HTTP daemon and Web Shell.
qwen updateCheck for and install an update. Installation-aware.
qwen --versionPrint the installed version. Useful for version-specific troubleshooting.

Global Flags

FlagDescription
--acpStart Agent Client Protocol mode. Integration use.
--allowed-mcp-server-names <names>Restrict which MCP servers can load. Session-level MCP gate.
--allowed-tools <rules>Pre-approve matching tool rules. Approval control, not a registry allowlist.
--append-system-prompt <text>Append instructions to the system prompt. Keeps the default prompt.
--approval-mode <mode>Set approval behavior. plan, default, auto-edit, auto, yolo.
--bareSkip implicit startup discovery. Uses only explicit CLI inputs.
--channel <name>Identify the host channel. Examples: VSCode, ACP, SDK, CI, desktop, daemon.
--chat-recordingEnable or disable saved conversation history. Resume depends on recorded sessions.
--continue, -cResume the newest session for the current project. Requires chat recording.
--core-tools <tools>Restrict registered core tools with the legacy allowlist. Legacy behavior. Migrate new configs away from tools.core.
--debug, -dEnable debug logging. Review logs for secrets before sharing.
--disabled-slash-commands <names>Hide and block specified slash commands. Repeat or pass comma-separated names.
--exclude-tools <rules>Deny matching tools or tool patterns. Higher-priority restriction.
--experimental-lspEnable LSP support and /lsp. Experimental.
--extensions, -e <names>Load only selected extensions. -E none disables all extensions.
--fallback-model <id>Add fallback models for capacity errors. Repeat or use a comma-separated list. Up to three.
--fork-sessionFork the session selected by --continue or --resume. Creates a new session ID and history.
--include-directories <paths>Add directories to the workspace. Repeat or pass comma-separated paths.
--include-partial-messagesInclude partial assistant messages. Use with stream-json.
--input-file <path>Watch a JSONL file for remote input commands. Advanced integration.
--input-format <format>Select text or stream-json input. Stream-json supports programmatic multi-message input.
--insecureDisable TLS certificate verification. Controlled lab environments only.
--json-fd <N>Write structured events to a parent-supplied file descriptor. Advanced integration.
--json-file <path>Write structured events to a file/FIFO while TUI output stays on stdout. Advanced automation.
--json-schema <JSON or @path>Require the final result to match a JSON Schema. Registers the structured_output terminal tool.
--list-extensions, -lList available extensions and exit. No session starts.
--max-session-turns <N>Limit session turns. Default: unlimited.
--max-subagent-depth <N>Limit nested subagent depth. Default: 5.
--max-tool-calls <N>Limit cumulative tool calls. Default: unlimited.
--max-wall-time <duration>Limit total run time. Examples: 30s, 5m, 1.5h. Default unlimited.
--mcp-config <JSON or path>Load MCP definitions from inline JSON or a file. One-run MCP configuration.
--model, -m <id>Select the main model for this invocation. One-run override.
--output-format, -o <format>Select text, json, or stream-json output. Headless/automation use.
--output-style <name>Select a response style. Built-in/custom style or default.
--prompt, -p <text>Run a headless prompt. Can be combined with piped input.
--prompt-interactive, -i <text>Run an opening prompt and keep the TUI open. Interactive after the first response.
--proxy <URL>Set a proxy for this run. Example: http://localhost:7890.
--resume, -r [id]Resume a session or open the picker. Requires chat recording.
--safe-modeDisable project customizations for troubleshooting. Disables context files, hooks, extensions, Skills, MCP, agents, memory, and settings-sourced overrides.
--sandbox, -sEnable the configured sandbox provider. Sandbox and approvals are separate controls.
--sandbox-image <image>Select the container image for this run. Overrides environment/settings image selection.
--screen-readerEnable screen-reader behavior. Accessibility option.
--session-id <UUID>Assign a specific session ID. Automation/integration use.
--system-prompt <text>Replace the main system prompt for this run. One-run override.
--telemetryEnable or disable telemetry for this run. Advanced.
--telemetry-log-promptsControl prompt inclusion in telemetry. Review privacy implications first.
--telemetry-otlp-endpoint <URL>Set the OTLP endpoint. Advanced.
--telemetry-otlp-protocol <grpc/http>Select the OTLP transport.
--telemetry-outfile <path>Write telemetry to a file. Advanced.
--telemetry-target <local/gcp>Select the telemetry target.
--worktree [slug or PR]Start in an isolated Git worktree. Accepts a name, PR reference/URL, or no value.
--yolo, -yAuto-approve every tool call. Does not enable sandboxing.

Headless Examples

TaskExample
One-shotqwen -p "review the current branch for correctness"
Piped inputgit diff --cached | qwen -p "write a concise commit message"
JSON outputqwen -p "summarize the API routes" --output-format json
Stream JSONqwen -p "inspect src for unsafe SQL" --output-format stream-json --include-partial-messages
JSON Schemaqwen -p "classify the failures" --json-schema @schemas/test-report.json --output-format json
Read-only auditqwen -p "review the repository" --approval-mode plan --output-format json

Bounded CI Run

qwen -p "run tests, fix failures, and report changed files" \
  --approval-mode auto-edit \
  --sandbox \
  --max-session-turns 30 \
  --max-tool-calls 60 \
  --max-wall-time 10m \
  --output-format json

Keyboard Shortcuts

ShortcutAction
/Open slash-command completion. Session input.
@Open file/directory/context completion. Session input.
!Enter or leave shell mode when input is empty. !Command runs one command.
?Show keyboard shortcuts. Empty prompt only.
EnterSubmit input. During a response, can steer the active turn.
Ctrl+Enter / Cmd+Enter / Shift+Enter / Ctrl+JInsert a newline. Terminal handling varies.
EscClose a dialog/completion or cancel an active request with empty input. Press twice while idle to open rewind outside IDE mode.
Ctrl+CCancel the request and clear input. Press twice to exit.
Ctrl+DExit when input is empty. Press twice to confirm.
Ctrl+LClear the visible terminal. Does not clear conversation context.
Ctrl+O / Alt+TExpand or collapse thinking/tool details. MacOS uses Option for Alt.
Ctrl+SStash non-empty project input for the next launch. With empty input, disables output truncation for a long response.
Ctrl+TShow or hide tool descriptions. Display control.
Alt+MToggle Markdown rendered/source view. Option+M on macOS.
Shift+TabCycle approval modes. Windows uses Tab.
Ctrl+GInspect context received from an IDE connection. IDE integration only.
Ctrl+QQueue the current input for the next turn. Useful during an active response.
TabAccept the current suggestion. Windows also uses it to cycle approval modes.
Up / DownNavigate lines, history, or suggestions. Behavior follows current focus.
Ctrl+RSearch prompt or shell history. Context-sensitive.
Ctrl+YRetry the latest failed request. Request retry.
Ctrl+XEdit the prompt in the configured external editor. Requires an editor configuration.
Ctrl+ZUndo the latest input edit. Composer edit history.
Ctrl+Shift+ZRedo the latest undone edit. Composer edit history.
Ctrl+A / HomeMove to the start of the line. Prompt editing.
Ctrl+E / EndMove to the end of the line. Prompt editing.
Ctrl+KDelete from the cursor to the end. Prompt editing.
Ctrl+UDelete from the cursor to the start. Prompt editing.
Ctrl+W / Ctrl+BackspaceDelete the word to the left. Prompt editing.
Ctrl+VPaste text or attach a clipboard image. Uses the platform equivalent where required.
Ctrl+FMove focus between a foreground shell and the prompt. Foreground shell only.
Ctrl+BPromote a foreground shell to a background task. Foreground shell only.
Ctrl+Shift+Up / Ctrl+Shift+DownScroll the focused foreground shell. Foreground shell only.
Shift+Up / Shift+DownScroll conversation history one line. Virtualized history.
PgUp / PgDnScroll conversation history one page. Virtualized history.
Ctrl+Home / Ctrl+EndJump to the top or bottom of conversation history. Virtualized history.

Configuration

Settings Files and Precedence

File / SourcePurpose
Built-in defaultsQwen Code defaults. Lowest precedence.
/etc/qwen-code/system-defaults.jsonLinux system defaults. Can be overridden by later layers.
C:\ProgramData\qwen-code\system-defaults.jsonWindows system defaults. System-wide.
/Library/Application Support/QwenCode/system-defaults.jsonmacOS system defaults. System-wide.
~/.qwen/settings.jsonPersonal defaults across projects. Main user settings file.
<project>/.qwen/settings.jsonRepository-specific settings. Project scope.
/etc/qwen-code/settings.jsonLinux enforced system settings. Higher precedence than user/project settings.
C:\ProgramData\qwen-code\settings.jsonWindows enforced system settings. Higher precedence than user/project settings.
/Library/Application Support/QwenCode/settings.jsonmacOS enforced system settings. Higher precedence than user/project settings.
Environment variablesRuntime/provider values. Override settings files.
CLI flagsOne-run overrides. Highest normal precedence.

Settings and Environment Variables

Settings

SettingPurpose
general.chatRecordingSaved conversation history. Required for resume/continue.
general.enableAutoUpdateStartup update behavior. Installation-dependent.
general.languageUI language. Locale/code.
general.outputLanguageModel output language. Language name.
general.outputStylePersistent response style. Built-in or custom style.
general.preferredEditorExternal editor. Used by /editor and prompt editing.
general.vimModeVim input mode. Boolean.
ide.enabledIDE integration. Boolean.
memory.enableManagedAutoMemoryAutomatic memory extraction. Default: true.
model.fallbackModelsCapacity-error fallbacks. Used for retryable provider failures.
model.maxSessionTurnsSession-turn budget. -1 Means unlimited.
model.maxSubagentDepthNested subagent depth. Default: 5.
model.maxToolCallsCumulative tool-call budget. -1 Means unlimited.
model.maxWallTimeSecondsRun wall-time budget. -1 Means unlimited.
model.nameDefault main model. Uses the active provider configuration.
model.reasoningEffortDefault reasoning effort. Unsupported values are provider-dependent.
output.formatPersistent output format. text, json, stream-json.
permissions.allowTool rules that skip approval. Auto-approval only.
permissions.askTool rules that always require confirmation. Explicit review gate.
permissions.denyTool rules that are blocked. Stronger restriction than allow/ask.
privacy.usageStatisticsEnabledUsage-statistics collection. Privacy preference.
security.folderTrust.enabledFolder-trust controls. Enables /trust.
slashCommands.disabledSlash commands to hide/block. Merged with startup deny configuration.
tools.approvalModeDefault approval mode. plan, default, auto-edit, auto, yolo.
tools.coreLegacy core-tool allowlist. Deprecated. Do not use for new configurations.
tools.disabledTools removed from the registry entirely. Hidden from /tools and unavailable to the model.
tools.eagerBuilt-in tool schemas loaded eagerly at startup. Unlisted eligible tools can remain discoverable on demand.
tools.sandboxSandbox enablement/provider setting. Environment variables and CLI flags can override it.
tools.sandboxImageSandbox container image. Container sandboxes.
tools.workflowsEnabledWorkflow support. User/system scope activates /workflows.

Environment Variables

VariablePurpose
ANTHROPIC_API_KEYAnthropic provider authentication. Provider-dependent.
DASHSCOPE_API_KEYDashScope/ModelStudio authentication. Use with a matching provider entry.
GEMINI_API_KEYGemini provider authentication. Provider-dependent.
NO_COLORDisable terminal colors. Standard CLI convention.
OPENAI_API_KEYOpenAI-compatible provider authentication. Provider-dependent.
OPENAI_BASE_URLOpenAI-compatible endpoint override. Provider-dependent.
OPENAI_MODELOpenAI-compatible model selection. Provider-dependent.
QWEN_CODE_ENABLE_WORKFLOWSEnable workflow support. User/system setting alternative.
QWEN_CODE_MAX_OUTPUT_TOKENSFixed output-token cap. Runtime limit.
QWEN_CODE_SAFE_MODEStart with customizations disabled. Troubleshooting.
QWEN_CODE_UNATTENDED_RETRYRetry HTTP 429/529 errors in unattended runs. Pair with --max-wall-time.
QWEN_DISABLE_HYPERLINKSDisable OSC 8 terminal links. Useful in incompatible terminals/logs.
QWEN_DISABLED_SLASH_COMMANDSAdditional slash-command denylist. Session startup.
QWEN_SANDBOXSandbox enablement/provider selection. Can select Docker, Podman, or macOS Seatbelt.
QWEN_SANDBOX_IMAGESandbox image. Lower precedence than --sandbox-image.
QWEN_TLS_INSECUREDisable API TLS verification. Controlled lab environments only.

QWEN.md, Memory, and Custom Commands

Path / CommandPurpose
~/.qwen/QWEN.mdPersonal instructions across projects. Loads as persistent context.
<project>/QWEN.mdShared repository instructions. Suitable for version control.
<project>/.qwen/QWEN.local.mdPersonal instructions for one project. Add it to .gitignore yourself.
<project>/AGENTS.mdExisting agent instructions. Qwen Code can read it as context. Do not duplicate it into QWEN.md unnecessarily.
~/.qwen/projects/<project>/memory/Managed automatic-memory storage. Separate from QWEN.md.
~/.qwen/commands/<name>.mdCreate a user-level custom slash command.
<project>/.qwen/commands/<name>.mdCreate a project-level custom slash command.
<project>/.qwen/commands/git/commit.mdRegisters the namespaced command /git:commit.

Custom Command Example

---
description: Review a target for correctness and missing tests
---
Review {{args}}.
Read @{QWEN.md} before making changes.
!{git diff --stat}

Permissions and Sandbox

Command / SettingPurpose
/approval-mode planRead-only planning. No edits or shell execution.
/approval-mode defaultAsk before file edits and shell commands.
/approval-mode auto-editAuto-approve file edits. Ask before shell commands.
/approval-mode autoUse Qwen Code’s classifier for lower-risk actions.
/approval-mode yoloAuto-approve every tool call. This does not enable sandboxing. Use only in isolated or disposable environments.
/permissionsInspect and edit permission rules.
qwen --sandboxEnable the selected sandbox provider. One-run flag.
QWEN_SANDBOX=trueEnable sandboxing through the environment. Overrides tools.sandbox.
QWEN_SANDBOX=dockerForce Docker sandboxing. Linux/Windows container option.
QWEN_SANDBOX=podmanForce Podman sandboxing. Container option.
QWEN_SANDBOX=sandbox-execForce macOS Seatbelt. macOS only.
--sandbox-image <image>Select a container image. Beats QWEN_SANDBOX_IMAGE and tools.sandboxImage.
.qwen/sandbox.DockerfileExtend the default container environment. Add project runtimes/dependencies here.

MCP, Extensions, Skills, and Agents

Command / PathPurpose
qwen mcp listList persistent MCP server definitions. Shell command.
qwen mcp add <name> <commandOrUrl> [args...]Add an MCP server. Supports stdio, HTTP, and SSE.
qwen mcp remove <name>Remove an MCP server. Persistent configuration change.
qwen mcp reconnect [name]Reconnect one server or all servers. Runtime recovery.
qwen mcp approve [name]Approve a pending project server. Project trust flow.
qwen mcp reject [name]Reject a pending project server. Project trust flow.
/mcpInspect MCP servers and tools loaded in the current session. /mcp desc, /mcp nodesc, /mcp schema change detail.
--mcp-config <JSON or path>Load one-run MCP definitions. Does not replace persistent management.
qwen extensions install <source>Install an extension. Source can be a supported Git/path/archive/npm source.
qwen extensions listList installed extensions. Shell command.
qwen extensions update [name]Update one extension or all eligible extensions. Shell command.
qwen extensions disable <name>Disable an extension without uninstalling it. Re-enable with enable.
qwen extensions uninstall <name>Remove an extension. Shell command.
qwen extensions link <path>Link a local extension for development. Development use.
qwen extensions new <path>Create an extension scaffold. Development use.
~/.qwen/skills/<name>/SKILL.mdPersonal Skill definition. Available across projects.
.qwen/skills/<name>/SKILL.mdProject Skill definition. Repository scope.
~/.qwen/agents/Personal named subagents. Managed with /agents.
.qwen/agents/Project named subagents. Repository scope.
/reload-pluginsReload extension-provided commands and definitions. Useful after local changes.

Troubleshooting

ProblemCheck / Command
qwen is not foundRestart the terminal, verify PATH, then run qwen --version.
Authentication failsRun /doctor and /auth. Check the provider, credential variable, endpoint, and region.
A configured model is missingCheck /model, the provider model ID, and modelProviders.
A slash command is missingRun /help. Check feature gates, slashCommands.disabled, and QWEN_DISABLED_SLASH_COMMANDS.
Project settings do not applyCheck <project>/.qwen/settings.json, /config, folder trust, and higher-precedence settings.
/resume finds nothingCheck general.chatRecording and qwen sessions list.
MCP is disconnectedRun qwen mcp list and qwen mcp reconnect. Check the server URL/command, credentials, and timeout.
IDE integration failsRun /ide status and /ide install.
A customization breaks startupStart with qwen --safe-mode, then re-enable customizations selectively.
Sandbox lacks a runtimeCheck --sandbox-image or .qwen/sandbox.Dockerfile.
Output stops earlyCheck /context, QWEN_CODE_MAX_OUTPUT_TOKENS, and the max-run flags.
Need file/session locationsRun /status paths.

Related Resources

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the latest & top AI tools sent directly to your email.

Subscribe now to explore the latest & top AI tools and resources, all in one convenient newsletter. No spam, we promise!