The Deska blog
settings.json for Claude Code: The Options That Matter
Detailed guide on configuring settings.json for Claude Code to optimize your AI terminal workflow and developer productivity.
· 10 min read
Optimizing your developer workflow requires precision, and understanding the nuances of the settings.json for Claude Code is the first step toward a seamless AI integration. As a command line agent, Claude Code relies on a specific configuration file to define its behavior, resource limits, and interaction styles. While the tool is designed to work out of the box, fine tuning these parameters ensures that the agent respects your project boundaries and operates within your preferred cost and safety constraints.
Locating and Editing the Configuration
The settings.json for Claude Code is typically found in your home directory within a hidden folder. Depending on your operating system, you can locate it at ~/.claude/settings.json. This file governs global behavior across all projects where you invoke the agent. If the file does not exist, creating it manually allows you to override default presets.
When working in a complex environment, managing these configurations alongside other tools can become cumbersome. Deska provides a structured canvas where you can keep your terminal, documentation notes, and the settings file open simultaneously. By using the built in Monaco editor in Deska, you can modify your JSON configuration and immediately see the effects in a side by side terminal panel.
Essential Configuration Parameters
The configuration file is structured in a standard JSON format. Several keys are critical for power users who want to balance speed, cost, and agent capability.
Model Selection and Limits
The model key determines which version of the underlying LLM the CLI uses. While the default is usually the most capable current version, you might specify a smaller model for faster, lower cost iterations on simple tasks.
maxTokens: Defines the maximum response length.temperature: Controls the randomness of the output. A lower value is better for strict code generation.modelName: The specific identifier for the version of Claude you wish to use.
Permission and Safety Controls
Claude Code is an agentic tool. It can execute commands, read files, and potentially modify your environment. The settings.json allows you to define how much autonomy you grant it.
autoExecute: If set to false, the agent will ask for permission before running any terminal command.readOnlyPaths: A list of directories that the agent is forbidden from modifying.ignoredFiles: Patterns for files the agent should never read, such as environment variables or secret keys.
Integrating Claude Code with Deska
While Claude Code is powerful in a standard terminal, it thrives when paired with a workspace that provides broader context. Deska allows you to run coding agents like Claude Code, Codex CLI, and OpenCode in adjacent panels. This setup turns the CLI tool into a holistic development experience.
For example, you can have a browser widget open to your local dev server while Claude Code runs migration scripts in a terminal panel. Through the Ask Deska assistant, you can even use voice commands to trigger terminal actions or rearrange your workspace to focus on specific configuration tasks. This local-first approach ensures that even if you are using an AI agent, your source code and configurations remain stored on your machine.
Workflow Optimization via settings.json
Advanced users can leverage the configuration to tailor the agent to specific tech stacks.
| Parameter | Purpose | Recommendation |
|---|---|---|
contextWindow | Memory size | Increase for large legacy codebases. |
theme | UI Appearance | Set to match your system preferences. |
editPreference | Format style | Define if Claude should use diffs or full writes. |
By adjusting these settings, you reduce the need for repetitive prompting. If Claude Code knows you prefer functional programming patterns or specific linting rules via its configuration, it will produce more relevant code on the first attempt.
Handling Large Projects
When working on massive monorepos, you may encounter token limit issues. You can mitigate this in settings.json by restricting the agent to specific subdirectories or by adjusting the vibe parameter if the tool supports persona adjustments. This ensures the agent does not waste resources indexing irrelevant parts of the repository.
Remote and Mobile Management
One interesting aspect of modern development is the ability to monitor tasks away from the desk. If you are running long operations with Claude Code, you can use the Deska mobile app. It connects via a secure relay to your desktop session without exposing ports to the internet. This allows you to check the status of a terminal command or a long running agent task from your phone, relying on the same settings.json configuration established on your desktop.
Frequently Asked Questions
Where is the Claude Code settings.json located on Windows?
On Windows, the configuration is usually located in the user home directory under .claude\settings.json. You can open this file in any text editor, though using the dedicated code editor panels in a workspace helps you manage it alongside your terminal output.
How do I stop Claude Code from editing certain files?
You should use the ignoredFiles or readOnlyPaths keys in your settings.json. By adding patterns like *.env or config/secrets/*, you ensure the agent never reads or writes to sensitive locations. This is a critical security step for any local-first development environment.
Can I use my own API keys with Claude Code?
Yes, Claude Code typically requires an API key or an active subscription. If you are using Deska, you can follow a BYOK model for the lifetime tier, allowing you to use your own keys for agent inference while the workspace management features remain free to use.
Improving Your Setup
Fine tuning your settings.json for Claude Code is an ongoing process. As your projects grow in complexity, your needs for context, safety, and performance will evolve. By combining a well configured agent with a visual, flexible environment like Deska, you create a developer experience that is both powerful and intuitive.
You can begin optimizing your workflow by organizing your agent panels and configuration files in one place. If you are ready to explore a multi panel, local-first workspace for your AI tools, download Deska for your operating system today.