---
{
  "title": "A practical guide to your terminal configuration for Claude Code",
  "slug": "terminal-configuration-claude-code",
  "intent": "consumer",
  "date": "2025-09-30",
  "updated": "2026-09-09T00:00:00.000Z",
  "template": "default",
  "locale": "en",
  "cta": {
    "variant": "cli",
    "headline": "Add eesel CLI to your Claude Code setup",
    "subhead": "Choose the right eesel teammate, check its instructions, and test support answers from Claude Code. Your support team keeps control in the same dashboard workspace.",
    "primary": {
      "label": "Learn more",
      "action": "learn-more"
    },
    "secondary": {
      "label": "Try for free",
      "action": "signup"
    }
  },
  "excerpt": "Unlock the full potential of Anthropic's agentic coding assistant with the right setup. Our guide walks you through the essential terminal configuration for Claude Code, from basic settings files to advanced customization, so you can code faster and smarter.",
  "coverImage": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/08/Banner-The-7-best-tools-using-AI-for-workflows-in-2025.webp",
  "coverImageAlt": "Two people beside connected workflow boxes and dashed lines, with a large eesel e",
  "coverImageWidth": 1785,
  "coverImageHeight": 949,
  "categories": ["Guides","Trending"],
  "readTime": 10,
  "author": {
    "name": "Stevia Putri",
    "title": "Writer",
    "avatar": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/08/IMG-20250812-WA0014-e1755016187283.webp",
    "bio": "Stevia Putri is a marketing generalist at eesel AI, where she helps turn powerful AI tools into stories that resonate. She’s driven by curiosity, clarity, and the human side of technology."
  },
  "reviewer": {
    "name": "Katelin Teen",
    "title": "Editor",
    "avatar": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2024/10/katelin-profile-e1752733682107.webp"
  },
  "seo": {
    "title": "A practical guide to your terminal configuration for Claude Code",
    "description": "Set up Claude Code with safe settings, working hooks, terminal shortcuts, and targeted eesel CLI commands for a faster, more reliable development workflow.",
    "image": "https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/08/Banner-The-7-best-tools-using-AI-for-workflows-in-2025.webp"
  },
  "faqs": {
    "heading": "Frequently asked questions",
    "type": "blog",
    "answerType": "html",
    "faqs": [
      {
        "question": "What are the essential files I need to configure for my terminal configuration for Claude Code to get started?",
        "answer": "<p>Start with <code>.claude/settings.json</code> for shared permissions and hooks, and <code>CLAUDE.md</code> for project instructions. Use <code>.claude/settings.local.json</code> for personal project overrides that should stay out of version control.</p>\n"
      },
      {
        "question": "How can I use advanced features like hooks and custom commands in my terminal configuration for Claude Code to automate tasks?",
        "answer": "<p>A <code>PostToolUse</code> hook can run a formatter after Claude writes or edits a file; it runs after the edit, so it cannot block that edit. For reusable slash commands, create a skill in <code>.claude/skills/&lt;name&gt;/SKILL.md</code>. Older <code>.claude/commands/</code> files remain compatible but are not the preferred format for new work.</p>\n"
      },
      {
        "question": "What security measures can I implement in my terminal configuration for Claude Code to control what Claude Code can access or modify?",
        "answer": "<p>Use <code>permissions.allow</code>, <code>ask</code>, and <code>deny</code> rules in <code>settings.json</code>. For example, allow automatic edits only under <code>src/</code>, deny reads of root <code>.env</code> files, and allow only the test or Git commands your project needs. Deny rules take priority, but they do not sandbox a shell command you already allowed.</p>\n"
      },
      {
        "question": "Is there a recommended way to maintain a consistent terminal configuration for Claude Code across a development team?",
        "answer": "<p>Yes. Commit <code>.claude/settings.json</code> so the team shares permissions and hooks, then keep personal changes in <code>.claude/settings.local.json</code>. Run <code>/status</code> to confirm which settings files Claude Code loaded. Organization-managed settings can override both.</p>\n"
      },
      {
        "question": "Does the choice of my terminal application affect the performance or experience of my terminal configuration for Claude Code?",
        "answer": "<p>Claude Code works in any terminal, so choose the terminal you prefer. For a newline everywhere, use <code>Ctrl+J</code> or type <code>\\</code> then press Enter. In VS Code, Cursor, Devin Desktop, Alacritty, and Zed, run <code>/terminal-setup</code> once to add Shift+Enter support. If you use tmux, enable its passthrough and extended-key settings too.</p>\n"
      },
      {
        "question": "Can my terminal configuration for Claude Code support customer support automation?",
        "answer": "<p>Yes. The <a href=\"https://docs.eesel.ai/apis-and-developer-resources/cli\">eesel CLI</a> lets Claude Code inspect a chosen teammate's instructions and activity, upload knowledge, and test answers. Pass <code>--agent &lt;id-or-name&gt;</code> to every command in a multi-agent workspace so Claude Code acts on the teammate you intend. The same workspace remains available in the dashboard.</p>\n"
      }
    ],
    "supportLink": null
  },
  "alternates": {
    "x-default": "terminal-configuration-claude-code",
    "en": "terminal-configuration-claude-code",
    "de": "terminal-configuration-claude-code",
    "es": "terminal-configuration-claude-code",
    "fr": "terminal-configuration-claude-code",
    "ja": "terminal-configuration-claude-code",
    "pt": "terminal-configuration-claude-code"
  }
}
---

Claude Code works without custom terminal settings. Configure it when you need clearer permissions, reusable project guidance, working shortcuts, or hooks for a specific task. This guide covers those choices and a terminal workflow for reviewing an eesel support teammate.

## What is Claude Code?

In a nutshell, Claude Code is an AI coding assistant from Anthropic that works inside your command-line interface (CLI). Instead of chatting with an AI in your browser, you have a "pair programmer" that can actually read your project files, understand the context of your codebase, write new code, and even run shell commands to test things or manage your git repo.

![A screenshot of Claude Code running in a terminal, demonstrating the terminal configuration for Claude Code.](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/09/ClaudeCode-In-Terminal.webp)

It's called an "agent" because it can [string together a series of actions](https://www.reddit.com/r/ClaudeAI/comments/1ly9yst/how_to_use_claude_code/) to complete a bigger task. You can ask it to plan a new feature, write the code across multiple files, and then package it all up in a pull request. This tight integration with your local environment is what makes it so specialized for development work.

## The foundations of your terminal configuration for Claude Code

Start with two kinds of configuration. `settings.json` controls technical behavior such as permissions and hooks. `CLAUDE.md` gives Claude Code instructions about the project. They solve different problems, and both belong in a dependable setup.

### Configuring your settings.json files

Use `settings.json` to control permissions, hooks, and a default model. [Settings have a clear order of precedence](https://code.claude.com/docs/en/settings), from highest to lowest: organization-managed settings, command-line choices, local project settings, shared project settings, and user settings.

*   **User settings ("~/.claude/settings.json"):** This is your personal default file. The settings here apply to every project you work on.

*   **Project settings (".claude/settings.json"):** This one lives in your project folder and should be checked into version control so the whole team is on the same page. It’s perfect for project-wide rules, like telling Claude to keep its hands off your ".env" files.

*   **Local project settings (".claude/settings.local.json"):** This is for your own personal tweaks on a project that you don't need to share with the team.

Here is a valid shared-project example. It auto-approves edits under `src/`, `git status`, `git diff`, and the project test command. It blocks reads of common environment files at the project root. It does not promise to restrict all reads to `src/`; add separate deny rules for any other sensitive paths in your project.

```json
{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "model": "sonnet",
  "permissions": {
    "allow": [
      "Edit(/src/**)",
      "Bash(git status)",
      "Bash(git diff *)",
      "Bash(pnpm test *)"
    ],
    "deny": [
      "Read(/.env)",
      "Read(/.env.*)",
      "Bash(rm *)"
    ]
  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"$CLAUDE_PROJECT_DIR/.claude/hooks/format-typescript.sh\""
          }
        ]
      }
    ]
  }
}

```

Put this script in `.claude/hooks/format-typescript.sh` and make it executable. It requires [`jq`](https://jqlang.org/) to read the event JSON from standard input. It also assumes Prettier is installed and pinned in this project’s `devDependencies`, so `pnpm exec prettier` uses the lockfile version rather than downloading a formatter on demand. The command uses `CLAUDE_PROJECT_DIR`, so it still finds the script if the session changes directories. The script gets the path from `.tool_input.file_path` rather than from an undefined shell variable.

```bash
#!/usr/bin/env bash
set -euo pipefail

file_path="$(jq -r '.tool_input.file_path // empty')"
cd "$CLAUDE_PROJECT_DIR"
case "$file_path" in
  *.ts|*.tsx) pnpm exec prettier --write "$file_path" ;;
  *) exit 0 ;;
esac
```

`Write|Edit` matches tool names, not filenames. The script filters the extension after the tool runs and selects the project's installed formatter. A `PostToolUse` hook cannot prevent the original write. In project settings, the leading slash anchors these patterns to the session's primary working directory, not the filesystem root or the `.claude` directory. Read/Edit rules do not block arbitrary subprocesses from opening files indirectly: use sandboxing for an operating-system boundary. The `sonnet` alias follows the provider's current mapping; `ANTHROPIC_MODEL` or `--model` can override the session choice, subject to organization policy. See the official [permissions](https://code.claude.com/docs/en/permissions), [hooks](https://code.claude.com/docs/en/hooks), and [model settings](https://code.claude.com/docs/en/model-config) references.

### Providing context with CLAUDE.md files

The "CLAUDE.md" file is a bit different. It’s not for technical settings; it’s a Markdown file that Claude reads every time it starts up in your project. Think of it as a cheat sheet or a [persistent set of instructions for the AI](https://ainativedev.io/news/configuring-claude-code).

You can use it to tell Claude about:

*   **Coding standards:** "We use TypeScript for all new code. Please follow the ESLint rules."

*   **Project architecture:** "Just a heads-up, the frontend is Next.js and the backend is Node.js with Express."

*   **How to run tests:** "New tests go in Jest. You can run them with `pnpm test`."

*   **Common commands:** A quick list of build or test commands so it doesn't have to guess.

Here’s a snippet of what one might look like:

```markdown

# Project Context for MyWebApp

## Coding Standards

- All new components should be functional components using React Hooks.

- We use `pnpm` for package management, so please don't use `npm` or `yarn`.

- Write unit tests for all new utility functions you add to the `src/utils` directory.

## Key Files

- The main entry point is `@./src/index.tsx`.

- Global styles live in `@./src/styles/global.css`.

- API calls are all handled by functions in `@./src/lib/api.ts`.

```

## Advanced customization for your terminal configuration

Once you have your foundational setup dialled in, you can explore some of Claude Code's more advanced features. This is where you can build some really powerful shortcuts and automate the repetitive parts of your day.

### Extending capabilities with MCP servers and hooks

Model Context Protocol (MCP) is a fancy name for letting Claude Code connect to external tools. You could set up an MCP server to let Claude query a database, pull information from Figma, or run a security scanner. It’s incredibly powerful but, fair warning, it does require some technical legwork to set up and maintain.

![Older Claude Code terminal session fetching documentation and explaining hooks](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/09/ClaudeCode-Hooks.webp)

This older screenshot illustrates a documentation query, not the current hooks browser or a verified hook run.

Hooks run code at defined points in a Claude Code session. Use a `PostToolUse` hook for follow-up work such as formatting or a targeted test after an edit. Use a `PreToolUse` hook when the goal is to inspect or block an action before it runs. Keep hooks small and predictable: a failing formatter should not become a mystery during every edit.

One practical extension is the [eesel CLI](https://docs.eesel.ai/apis-and-developer-resources/cli). Claude Code can run it to operate an eesel AI support agent: inspect connected sources, update its knowledge, and test answers. It operates the same eesel agent and workspace shown in the eesel dashboard, so the support team can review the configuration there.

### Creating reusable slash commands with skills

If you repeat a detailed prompt, make it a skill. For a project-wide `/review-pr` command, create `.claude/skills/review-pr/SKILL.md`; for a personal one, use `~/.claude/skills/review-pr/SKILL.md`. The skill can hold the review checklist, the project conventions, and any allowed tools in one reusable place. Files in `.claude/commands/` still work for older setups, but skills are the recommended format for new commands.

<pre><iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/SUysp3sJHbA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>This tutorial provides a helpful introduction to setting up Claude Code and giving it the right context to understand your codebase.</pre>
## Best practices and common challenges

Getting the most out of Claude Code isn't just about config files. It’s also about your environment and understanding what the tool *can't* do.

### Choosing the right terminal

<quote text="See Reddit users' thought: what is the best terminal for claude code?" sourceIcon="https://www.iconpacks.net/icons/2/free-reddit-logo-icon-2436-thumb.png" sourceName="Reddit" sourceLink="https://www.reddit.com/r/ClaudeCode/comments/1m1d7do/what_is_the_best_terminal_for_claude_code/">
</quote>

Claude Code works in any terminal without special configuration. Pick the terminal that fits your operating system and workflow; the useful configuration is about input, notifications, and multiplexers, not a universal performance ranking.

| Terminal | Key Feature | Best For | Platform |
| :--- | :--- | :--- |
| **iTerm2** | macOS notifications and Option-key controls | macOS users who want a graphical terminal configuration | macOS |
| **Windows Terminal** | Shift+Enter works without setup | Windows users | Windows |
| **Ghostty or Kitty** | Desktop notifications without extra setup | Users who prefer one of these terminal interfaces | macOS, Linux |

For multiline input, `Ctrl+J` and backslash followed by Enter work in every terminal. Shift+Enter works without setup in many terminals, including iTerm2, Warp, Windows Terminal, and Kitty. In VS Code, Cursor, Devin Desktop, Alacritty, and Zed, run [the built-in `/terminal-setup` command](https://code.claude.com/docs/en/terminal-config) once. If you use tmux, the layer between Claude Code and the outer terminal, add [the documented passthrough and extended-key settings](https://code.claude.com/docs/en/terminal-config#configure-tmux) to `~/.tmux.conf`; without them, tmux can hide notifications and Shift+Enter.

![Older Windows PowerShell screenshot installing Claude Code through npm](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/wp-uploads/2025/09/ClaudeCode-Installation.webp)

This is a historical npm installation example. For a new installation, follow Anthropic's [current native-install quickstart](https://code.claude.com/docs/en/quickstart).

### Configure Claude Code to work with an eesel teammate

Your project `CLAUDE.md` guides the coding session. The eesel teammate's standing instructions guide its support work. Keep that distinction clear when asking Claude Code to help with a rollout: a local coding rule does not automatically become the support agent's policy.

<mark>eesel CLI operates the same agent and workspace as the dashboard.</mark> Use it to inspect the teammate's existing instructions before making changes, and let the support team review that configuration in the interface they use.

With Node.js 18.17 or newer, start with an existing workspace:

```bash
npx @eesel/cli login
npx @eesel/cli whoami
npx @eesel/cli agents
```

Stop if `whoami` names the wrong account or workspace. In CI, `EESEL_API_URL` and `EESEL_API_TOKEN` take precedence over stored login credentials. If the workspace has several agents, use `--agent` on every command that reads or changes an agent. Otherwise the CLI can use the default selected earlier with `eesel agents use <agent>`, which may not be the agent you mean to inspect.

```bash
TARGET_EESEL_AGENT="REPLACE_WITH_OWNER_APPROVED_TEAMMATE"
npx @eesel/cli status --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli integrations download list --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli instructions --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli activity --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli approvals --agent "$TARGET_EESEL_AGENT"
```

The commands return JSON, so Claude Code can inspect their results as it works. `status` shows connection state, but it does not prove a source has been downloaded; check `integrations download list` too. You can also run these commands manually or from a script. Use `--help` for the full options and `--dry-run` to preview a supported write request without making the change.

Only upload a policy document after the support owner approves the exact file and target. For the following evaluation, replace the target with an approved non-production teammate and set consequential connected actions to **Disabled** in [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals). Fictional inputs and “do not act” prompts do not enforce that boundary. Chat is billed work; approve the budget before running it. Start a fresh named conversation for each test:

```bash
npx @eesel/cli files upload ./approved-support-policy.pdf --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli new --name "refund-policy-review" --agent "$TARGET_EESEL_AGENT"
npx @eesel/cli chat "Fictional case: a customer asks for a refund but has no order number. State the policy facts, list the missing information, and say whether to hand off to a person. Do not send a message, modify configuration, approve an action, or promise a refund." --agent "$TARGET_EESEL_AGENT"
```

Check the uploaded document's processing state before testing; a connection or download-status check alone does not prove the answer used that policy. Review the answer, activity, and any held approvals against the approved document. Test at least three cases in fresh conversations: an eligible refund, an ineligible refund, and missing information or a request for a person. Do not invent eligibility thresholds that the document does not state. Any later delivery or routing check in a real helpdesk needs its own approved test plan.

![eesel dashboard showing a teammate readiness checklist, response channels, and a chat panel.](https://cdn-public.eesel.ai/blog/internal-assets/eesel-dashboard-overview-no-customers-20261122.png)

### Choose CLI commands or an MCP connection

To expose the workspace as tools inside Claude Code, run `npx @eesel/cli mcp token --agent "$TARGET_EESEL_AGENT"`, then use the generated setup command to configure the client. The [eesel MCP guide](https://docs.eesel.ai/apis-and-developer-resources/claude-code-and-mcp-clients) explains the URL, headers, token lifetime, and role permissions.

For CI or a server, the eesel CLI uses `EESEL_API_URL` and `EESEL_API_TOKEN` for access and `EESEL_AGENT_ID` for agent selection. Those settings configure eesel access; they do not replace Claude Code's own account or permissions.

The result is a shared support teammate that can be operated from a coding session, scripts, or the dashboard. You can inspect instructions, manage automations, review actions waiting for approval, and read activity without creating a separate copy of the agent.

## Claude Code access and pricing

Claude Code requires a paid access path; the free Claude.ai plan does not include it. Anthropic currently supports Claude Pro, Max, Team, Enterprise, and Console accounts, and it also supports some third-party API providers. Team and Enterprise access can depend on the organization’s seat configuration.

Prices, regional availability, and usage limits change, so check [Anthropic’s current pricing](https://www.anthropic.com/pricing) before choosing a plan. For a company rollout, ask the administrator which account type and model policy apply before writing team settings.

## Add an eesel CLI workflow to your Claude Code terminal

Start with a shared `settings.json`, a short `CLAUDE.md`, and only the permissions your project needs. Test hooks on one safe file before applying them across a repository. That gives Claude Code useful context and keeps approvals understandable.

For a support setup task, use the eesel CLI from Claude Code to inspect the intended teammate, upload an owner-approved policy document, and test eligible, ineligible, and missing-information cases in a fresh conversation. eesel is the support teammate your team can operate in the dashboard; Claude Code is the coding environment that can help run that workflow. Keep the named `--agent` target in every command so the result is reviewable by the support team.

[Try eesel](https://dashboard.eesel.ai/signup) when you want a support teammate your team can test from the terminal and manage from the dashboard.
