BlogAI for coding

Claude Code settings: change model, status line, modes and SSH

How to change the model in Claude Code, set up a status line, pick a permission mode, use YOLO mode safely, handle a full context window and work over SSH.

We may earn a commission if you sign up through links on this page. It costs you nothing and never decides what we recommend. Learn more

Short answer

Type /model in Claude Code to change the model, or start it with claude --model opus. Type /statusline and describe what you want to see, and Claude Code writes the status line for you. Press Shift+Tab to switch permission modes, and use /compact or /clear when the context window fills up.

A laptop on a wooden desk showing a dark terminal window with colorful text at the bottom, next to a notebook with handwritten notes and a cup of coffee.
On this page 8 sections
  1. Where are Claude Code settings saved?
  2. How do I change the model in Claude Code?
  3. How do I set up the Claude Code status line?
  4. What are the Claude Code modes?
  5. What is YOLO mode, and is it safe?
  6. What do I do when the context window is full?
  7. How do I change the output style?
  8. Can I use Claude Code over SSH?

Most Claude Code settings are one slash command away. You don’t need to edit files for the common ones, but it helps to know where they are saved. This page covers the settings people search for most, in plain steps.

Where are Claude Code settings saved?

Claude Code keeps settings in JSON files at three levels. Your own settings for every project go in ~/.claude/settings.json. Settings for one project that your team shares go in .claude/settings.json inside the project. Personal settings for one project go in .claude/settings.local.json, which isn’t meant to be shared.

Slash commands like /model and /output-style write to these files for you, so you rarely need to open them.

How do I change the model in Claude Code?

Type /model and pick from the list, or type the name straight away: /model opus or /model sonnet. To pick a model before the session starts, run claude --model opus. To make it stick, add "model": "opus" to your settings file.

The short names are called aliases. They always point to the newest version:

Alias What it picks
default Your account’s normal model (clears your choice)
opus / best The newest Opus, for hard reasoning
sonnet The newest Sonnet, for daily coding
haiku Haiku, fast and cheap for simple jobs
fable Fable, for the hardest and longest tasks
opusplan Opus while planning, then Sonnet to write the code
opus[1m] / sonnet[1m] The same model with a 1 million token context window

Which models you can use depends on your plan. Our Claude Code pricing page explains what Pro, Max and Ultra include.

How do I set up the Claude Code status line?

The status line is the bar at the bottom of the terminal. The easy way to set it up is to describe it:

/statusline show model name and context percentage with a progress bar

Claude Code writes a small script in your ~/.claude folder and adds a statusLine entry to your settings. Approve the file edits when it asks. Showing the context percentage is the most useful choice, because you can see the window filling up before it compacts. To remove it, type /statusline delete.

What are the Claude Code modes?

Permission modes decide how often Claude Code stops to ask you. Press Shift+Tab in the terminal to switch between them. In the desktop app, Ctrl+Shift+M (Cmd+Shift+M on a Mac) opens the mode menu.

Mode What it does
default Asks before most commands and edits
acceptEdits Edits files without asking, still asks for commands
plan Reads and plans only, changes nothing
auto A safety check approves safe actions and blocks risky ones
bypassPermissions Never asks (YOLO mode)

Plan mode is the best place to start a big change: read the plan, then switch to a mode that can edit. Auto mode needs a recent model, such as Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5 or Fable.

What is YOLO mode, and is it safe?

YOLO mode is the nickname for bypassPermissions. You start it with claude --dangerously-skip-permissions, and Claude Code then runs any command and edits any file without asking. It’s fast, but one bad command can delete files or leak secrets. Only use it inside a container or a throwaway virtual machine. For everyday work, auto mode gives you most of the speed with a safety check.

What do I do when the context window is full?

You don’t have to do anything: Claude Code compacts the chat by itself when the window gets close to full. Compacting replaces the old messages with a summary. You can take control in three ways:

  • /compact summarizes now. Add a note to keep what matters, like /compact keep the test output and the file list.
  • /clear starts fresh. Do this when you switch to an unrelated task, because old context costs tokens on every message.
  • /rename, then /resume lets you name the chat before clearing and come back to it later.

/usage shows how much you’ve used. A long chat also eats into your plan’s limits faster; see Claude usage limits.

How do I change the output style?

Output styles change how Claude Code talks to you. Type /output-style to see the list, then /output-style plus a name to switch. Explanatory adds short “Insight” notes on why Claude made each choice. Learning is built for people who want to learn while they code. You can also pick a style from /config. The choice is saved to .claude/settings.local.json. To change how Claude Code designs pages rather than how it talks, add a design skill such as Impeccable: see how to use Impeccable with Claude Code.

Can I use Claude Code over SSH?

Yes, in two ways.

  1. From the terminal: SSH into the server as usual, install Claude Code there, and run claude. It works on the remote files as if you were sitting at that machine.
  2. From the Claude desktop app: add an SSH connection from the environment menu when you start a new session. You can also list connections in ~/.claude/settings.json under sshConfigs, with an id, a name and an sshHost such as user@dev.example.com. The port and key file are optional.

Still choosing a coding tool? Compare Claude Code with others in best AI tools for coding and Codex vs Cursor, or see Claude Console vs Claude Code if you aren’t sure which one you need.

Tools in this post

  • Claude Code

    by Anthropic

    Coding agent that works across your whole codebase from the terminal or editor.

    PaidCoding

    Included with Claude Pro, Max and Ultra; or pay per use via the API

    Privacy & risks
    Trains on your data
    You choose
    • The most-used coding agent in the Stack Overflow 2026 survey (66% of developers who use agents).
    • Consumer plans let you choose whether code is used for training; Team, Enterprise and API use is not trained on.
    • Security flaws found in 2026 (including CVE-2026-24887 and CVE-2026-35021) were fixed in updates. Keep it up to date.

    Sources: 1 2 · Checked Oct 2026

Questions people ask

How do I change the model in Claude Code?

Type /model to open the model picker, or type /model with a name, like /model sonnet or /model opus. You can also start a session with claude --model opus, or set "model" in your settings.json file. In the desktop app, Ctrl+Shift+I (Cmd+Shift+I on a Mac) opens the model menu.

What is YOLO mode in Claude Code?

YOLO mode is the nickname for bypassPermissions mode, which you start with claude --dangerously-skip-permissions. Claude Code then runs commands and edits files without asking you first. Only use it in a container or virtual machine with nothing you can't afford to lose.

What do I do when the Claude Code context window is full?

Claude Code compacts the chat on its own when the window gets close to full. You can also run /compact yourself, with a note on what to keep, or /clear to start fresh when you switch to a new task. Use /rename first if you want to /resume that chat later.

How do I add a status line to Claude Code?

Type /statusline followed by what you want, for example /statusline show model name and context percentage with a progress bar. Claude Code writes a small script in your ~/.claude folder and adds it to your settings. Type /statusline delete to remove it.

What are the Claude Code modes?

Claude Code has permission modes that decide how often it asks before acting: default (asks for most actions), acceptEdits (edits files without asking), plan (reads and plans, no changes), auto (a safety check decides) and bypassPermissions (never asks). Press Shift+Tab in the terminal to switch.

Can I use Claude Code over SSH?

Yes. The simplest way is to SSH into the server, install Claude Code there and run claude. The Claude desktop app can also connect to a machine over SSH: add the connection from the environment menu, or list it under sshConfigs in ~/.claude/settings.json.

Sources

Facts and prices checked on Nov 23, 2026.

  1. Model configuration (Claude Code docs)
  2. Customize your status line (Claude Code docs)
  3. Choose a permission mode (Claude Code docs)
  4. Output styles (Claude Code docs)
  5. Manage costs effectively (Claude Code docs)
  6. Desktop application, SSH sessions (Claude Code docs)