How-To Guide

How to Set Up Claude Code in a Project

Learn how to configure Claude Code for your project with CLAUDE.md, custom instructions, and project-specific settings.

How to Set Up Claude Code in a Project

1

Navigate to your project root

Open your terminal and `cd` into your project directory. Claude Code works best when started from the project root where your source code and config files live.

2

Create a CLAUDE.md file

Create a `CLAUDE.md` file in your project root. This file tells Claude about your project's conventions, tech stack, important files, and any rules to follow. Think of it as project-specific instructions.

3

Run claude to start a session

Run `claude` in your terminal. Claude automatically reads your CLAUDE.md file and any .claude/ configuration directory.

4

Start with exploration

Ask Claude to explore your codebase first: "read the project structure and summarize the architecture". This helps Claude build context for future tasks.

Pro tips

  • *

    Keep CLAUDE.md concise — focus on conventions, key file paths, and anti-patterns

  • *

    Add a .claude/ directory for project-specific memory that persists across sessions

  • *

    Use `/init` to have Claude generate a CLAUDE.md by analyzing your codebase automatically

More Claude Code guides

Explore more