Creative Tim UICreative Tim UI

Cheat Sheet · Commands & Shortcuts

Claude Code logoClaude Code

Everything you need to drive Claude Code from the terminal, in one reference: slash commands, keyboard shortcuts, CLI flags and the input modes that make it fast. Bookmark this page, it stays current with each release.

CLI commands & flags

claudeStart an interactive session in the current directory
claude "fix the build"Start with an initial prompt
claude -p "…"Print mode, run once, print the result, exit (great for scripts/CI)
claude -cContinue the most recent conversation
claude -rResume, pick a previous conversation to continue
claude --model <name>Choose the model for the session
claude commitCreate a git commit from the staged changes
claude mcpConfigure and manage MCP servers
claude updateUpdate Claude Code to the latest version
claude --dangerously-skip-permissionsSkip permission prompts (sandboxed/CI use only)

Slash commands (in-session)

/helpList available commands
/clearClear the conversation history and free up context
/compactSummarize and compress the conversation to save context
/initGenerate a CLAUDE.md describing the project
/memoryEdit CLAUDE.md memory files
/modelSwitch the active model
/configOpen settings
/permissionsView and edit tool permissions
/agentsCreate and manage subagents
/mcpManage MCP server connections
/hooksConfigure hooks that run on tool events
/reviewReview a pull request
/costShow token usage and cost for the session
/doctorDiagnose your Claude Code installation
/login · /logoutSwitch Anthropic accounts
/vimToggle vim keybindings in the input

Keyboard shortcuts & input modes

EscInterrupt Claude mid-response
Esc EscRewind, edit a previous message and branch
Shift+TabCycle modes: normal → auto-accept edits → plan mode
@Mention a file or directory to add it to context
/Open the slash-command menu
#Quick-add a note to CLAUDE.md memory
!Bash mode, run a shell command directly
Ctrl+VPaste an image from the clipboard
Ctrl+LClear the terminal screen
Ctrl+CCancel the current input / exit
Up / DownNavigate input history

Run an agent without the setup

Spin up a hosted open-source AI agent with Creative Tim, bring your own key or run it on credits.

Create Agent

Frequently asked questions

What's the difference between a slash command and a CLI flag?

CLI flags (like -p or --model) are passed when you launch claude from your shell. Slash commands (like /clear or /model) are typed inside a running session.

How do I save context on long sessions?

Use /compact to summarize the conversation, or /clear to start fresh. Add durable facts to CLAUDE.md with /memory or the # shortcut so they persist across sessions.

What does Shift+Tab do?

It cycles input modes: normal, auto-accept edits (Claude applies edits without asking), and plan mode (Claude proposes a plan before acting).

Is there a hosted way to run Claude Code?

Yes, Creative Tim hosts open-source agent harnesses you can spawn in seconds and drive with Claude models, without local setup.

Compare Claude Code