Set up the project
These commands prepare a repository and your account for Claude Code.
Project memory and configuration
| Command |
Description |
/init |
Create a starter CLAUDE.md. Set CLAUDE_CODE_NEW_INIT=1 for an interactive flow that also covers skills, hooks and memory |
/memory |
Edit the CLAUDE.md files, turn auto memory on or off, and show the auto memory entries |
/hooks |
Show the hook configuration |
/import [codex\|gemini\|cursor] [--dry-run] [--yes] |
Import instructions, MCP servers, commands, subagents and skills from Codex, Gemini CLI or Cursor |
/agents |
Show a reminder to ask Claude to create subagents, or to edit .claude/agents/ directly |
Working directories
| Command |
Description |
/add-dir <path> |
Add a directory that Claude can access during this session. Claude Code does not read most .claude/ configuration from it |
/cd <path> |
Move the session to a different working directory and keep the conversation |
Account and providers
| Command |
Description |
/login |
Sign in to your Anthropic account |
/logout |
Sign out from your Anthropic account |
/setup-bedrock |
Wizard for Amazon Bedrock authentication, region and models. Hidden until you set CLAUDE_CODE_USE_BEDROCK=1 |
/setup-vertex |
Wizard for Google Cloud authentication, project, region and models. Hidden until you set CLAUDE_CODE_USE_VERTEX=1 |