AI & Agents

Claude Code vs Cline: The Ultimate Command and Shortcut Cheat Sheet

Claude Code and Cline take distinct paths to autonomous development. While Claude Code runs in the terminal with CLI commands, Cline integrates into VS Code with visual approval gates. This cheat sheet details keyboard shortcuts and configuration JSON rules.

Fast.io Editorial Team 9 min read
Claude Code terminal window next to Cline VS Code sidebar

How Operating Philosophies Differ: Terminal-Native vs Sidebar-Extension

Two coding agents pointed at the same repository will happily overwrite each other's work, and neither will notice. The fix is not a smarter agent, it is a shared place to put work where the second one can see what the first one did. You can set this up using shared workspaces. When selecting between a command-line tool like Claude Code and an integrated development environment extension like Cline, the choice is not merely about aesthetic preference. The tool you select dictates your interface speed and context-window retention.

Claude Code runs directly in the terminal as an agentic tool. It is built for daily interactive use, letting you manage code editing and Git workflows from the command prompt. Because it is native to the command line, it operates with text-based inputs and terminal shortcuts. You drive it by typing slash commands or keyboard sequences, receiving immediate responses that run inside your shell environment.

Cline takes a different approach by running as an extension within the VS Code sidebar. It provides a visual interface for managing files and executing system commands. Instead of pure terminal output, Cline presents changes as graphical diffs and requires explicit click approvals for security-sensitive actions. Cline supports multiple LLM providers, allowing developers to switch APIs through graphical menus. This visual sidebar structure is helpful for developers who want a clear human-in-the-loop validation process before any tool runs (for details on storage options, see storage for agents).

Claude Code CLI Command Reference and Keybindings

Claude Code executes within a terminal emulator, making keyboard efficiency paramount. When starting a session, the CLI loads your local configuration and reads the workspace context. Interactive sessions accept natural language prompts, but control tasks rely on built-in slash commands.

Available slash commands in the CLI include:

  • /help: Lists all available commands for the active version.
  • /compact: Compresses the conversation history to save context space in long sessions.
  • /clear: Wipes the current conversation memory (aliases include /reset and /new).
  • /init: Analyzes the codebase and generates or updates a CLAUDE.md file.
  • /plan: Enters plan mode to draft implementation designs before changing files.
  • /btw: Appends a quick comment or thought without derailing the main session context.
  • /model: Lists or changes the current model in use.
  • /tasks: Displays background tasks or subagents managed in the current session.

Keyboard shortcuts for controlling interactive sessions are:

  • Ctrl + C: Cancels the current output generation or pending input.
  • Ctrl + D: Exits the active session.
  • Ctrl + L: Clears the terminal screen while keeping conversation history.
  • Esc + Esc: Rewinds the conversation to a previous point.
  • Shift + Enter: Creates a new line in the prompt input without submitting.
  • Ctrl + R: Searches backward through prompt history.
  • Ctrl + O: Toggles transcript mode for verbose debugging logs.
  • Ctrl + T: Toggles the active task panel to monitor subagent progress.
  • Shift + Tab: Cycles through permission modes.
  • @ + path: Invokes auto-complete for local file paths.
  • ! + command: Prefix to run a shell command directly (example: !git status).

Starting the CLI supports these terminal flags:

  • claude: Launches a standard interactive session.
  • claude -p [prompt]: Runs a single non-interactive task and exits.
  • claude -c: Continues the most recent conversation session.
  • claude -r [session_id]: Resumes a specific past session by its identifier.

Cline Webview Interface Shortcuts and Slash Commands

Cline runs as a webview panel inside VS Code, blending standard editor commands with specific chat inputs. Since it is hosted within the editor, you use a mix of custom VS Code keybindings and fixed webview shortcuts to control the agent.

VS Code keyboard integration features:

  • Cmd + ' (Mac) or Ctrl + ' (Windows/Linux): Focuses the Cline chat input panel, or adds the currently highlighted editor code directly into the chat context.
  • Command Palette (Cmd/Ctrl + Shift + P): Lets you search for Cline commands to open the panel or adjust settings.

In-panel keyboard shortcuts:

  • Enter: Submits the current task or message.
  • Shift + Enter: Inserts a new line in the text input area.
  • Cmd/Ctrl + Enter: Restores the task and workspace context during active runs.

Typing a slash in the chat window exposes these built-in commands:

  • /newtask: Starts a new task while keeping the core context.
  • /smol: Compresses the active conversation thread to prevent token waste.
  • /newrule: Generates a project-level .clinerules file for custom instructions.
  • /deep-planning: Instructs Cline to build an architecture plan before writing code.
  • /reportbug: Opens the bug reporter with diagnostic logs.

Human approval is the core mechanic in Cline. Before it runs a command in the terminal or modifies a file, Cline halts and displays a preview in the sidebar. You approve the action, reject it, or write feedback to redirect the agent's path.

How to Set Up Custom Providers and API Keys

Both tools support customization, but their configuration files live in distinct directories and use different schemas. Managing settings correctly prevents credential leaks and keeps project conventions consistent across teams (for subscription details, see our pricing page).

Claude Code settings use a hierarchical JSON resolution:

  • Global settings: Stored in ~/.claude/settings.json, managing user preferences and default credentials.
  • Project settings: Stored in .claude/settings.json in your project root, shared via version control.
  • Local settings: Stored in .claude/settings.local.json, containing local overrides (gitignored).

These settings define permissions and the default model. They also configure MCP connection endpoints.

You can run /config (or /settings) in the CLI to adjust these settings interactively.

Cline manages credentials and Model Context Protocol settings in a dedicated settings file. Unlike standard VS Code extensions, it does not use the global VS Code settings.json. Instead, it reads a standalone file named cline_mcp_settings.json.

The paths for cline_mcp_settings.json are:

  • VS Code global storage path: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (on macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json).
  • Cline CLI storage path: ~/.cline/data/settings/cline_mcp_settings.json.
  • Environment override: CLINE_MCP_SETTINGS_PATH.

Cline uses this JSON structure to run MCP servers, specifying commands, arguments, environment variables, and auto-approve states:

{
  "mcpServers": {
    "filesystem": {
      "command": "node",
      "args": ["/path/to/index.js"],
      "env": {
        "ALLOWED_DIRECTORIES": ["/workspace"]
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Workspace Storage and Collaborative Handoffs

Running Claude Code and Cline locally works well for individual tasks, but it creates isolation when working in teams. If one developer runs a terminal agent and another works in the IDE, their tools cannot easily share intermediate artifacts or maintain a unified history.

Consider these common storage alternatives:

  • Local directories: Fast but limited to a single machine, creating a context silo.
  • S3 buckets: Good for raw storage but lacks file versioning interfaces, collaborative spaces, and automatic search indexing.
  • Google Drive / Dropbox: Built for human file sharing, but their APIs often throttle rapid agent writes and lack native MCP interfaces.

To solve this, you can connect your agents to a persistent cloud workspace using Fastio. Every workspace starts with a 14-day trial (credit card required). Plans include Starter at 29 dollars per month, Business at 99 dollars per month, and Growth at 299 dollars per month (details are available on the pricing page). Fastio provides persistent, org-owned workspaces with per-file version history, ensuring that whatever your agent writes remains auditable.

You configure your agents by pointing them to the Fastio MCP endpoint (for connection details and API key setups, see storage for agents). To connect Cline to the Fastio MCP server, you add the endpoint to your cline_mcp_settings.json file, utilizing the remote server address:

{
  "mcpServers": {
    "fastio": {
      "command": "node",
      "args": ["-e", "const s=require('https');s.get('https://mcp.fast.io/mcp')"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

(Note: Ensure your request includes your Fastio API key in the configuration headers. This allows the agent to interact directly with your persistent workspaces.)

If you need to process incoming files, Fastio automatically indexes your assets when Intelligence Mode is active. For structured extraction, Metadata Views turn documents into queryable tables. The AI designs a typed schema (such as Text, Integer, Boolean, URL, JSON, Date & Time), scans the folder, and populates a database (for details, read about Metadata Views). Agents query these extraction views through the MCP server.

Once your agent finished building a set of files or shared spaces, you transfer the organization to a human client using a claim link. The human starts their paid subscription, and the agent retains admin access to manage files and updates.

Fastio features

Connect Claude Code and Cline to persistent workspaces

Stop losing agent context. Set up a persistent Fastio workspace with per-file version history and metadata views. Connect your terminal or IDE agent with this command cheat sheet. Starts with a 14-day free trial.

Everything Claude Code vs Cline Command Cheat Sheet

This quick cheat sheet summarizes how to execute common development actions in both tools. Use this to compare inputs and behaviors.

  • Starting a New Task:

    • Claude Code: Run the command claude in the terminal to start an interactive session, or type /clear to reset the active chat memory.
    • Cline: Type /newtask in the chat window, or click the new task icon at the top of the sidebar.
  • Compressing Context Window:

    • Claude Code: Type /compact to summarize the chat history and free up tokens.
    • Cline: Type /smol (or /compact) in the chat box to compress the message log.
  • Adding Custom Instructions:

    • Claude Code: Add rules to the project level CLAUDE.md file, or write settings inside .claude/settings.json.
    • Cline: Create a .clinerules file in the root directory, or use the custom instructions field in the extension settings.
  • Running System Commands:

    • Claude Code: Use the exclamation mark prefix followed by the command (example: !npm run build).
    • Cline: Type the command directly in chat, then click Approve in the sidebar when the terminal execution prompt appears.
  • Referencing Files:

    • Claude Code: Type @ followed by the filename (example: @src/index.ts) for autocomplete paths.
    • Cline: Type @ to open the file menu, or click and drag the file from the explorer into the chat pane.

Frequently Asked Questions

What is the cheat sheet for Claude Code CLI?

The cheat sheet for Claude Code includes slash commands like /compact to compress conversation context, /plan to draft development designs, and /clear to reset memory. Terminal shortcuts include Ctrl + C to cancel generation, Ctrl + D to exit, and Esc + Esc to rewind. Use ! before a command to execute bash commands, and @ to autocomplete paths.

Does Cline have keyboard shortcuts?

Yes. Use Cmd + ' (Mac) or Ctrl + ' (Windows) to focus the chat input or add highlighted code to Cline. Inside the panel, press Enter to submit, Shift + Enter for a new line, and Cmd/Ctrl + Enter to restore task context.

How do I run commands in Claude Code vs Cline?

In Claude Code, you type ! followed by the command directly in the terminal (example: !npm test) or run it during autonomous loops. In Cline, you ask the agent to run the command in chat. Cline displays a confirmation window in the sidebar where you must click Approve before the command runs in the VS Code terminal.

Related Resources

Fastio features

Connect Claude Code and Cline to persistent workspaces

Stop losing agent context. Set up a persistent Fastio workspace with per-file version history and metadata views. Connect your terminal or IDE agent with this command cheat sheet. Starts with a 14-day free trial.