Claude Code for teams: share the setup, not the account

How a team shares Claude Code. CLAUDE.md, settings, hooks, skills and MCP servers in the repo, a seat per developer, agents shared without keys.

· 7 min read

One developer with a good Claude Code setup gets a lot done. Then a second developer joins, and the setup turns out to live in one person's head and one person's home folder. The new developer's Claude doesn't know the test command, asks permission for every npm run, formats code differently, and once edits a generated file that should never be touched. Someone suggests sharing one Claude account to save time. Don't.

The fix is simple once it's laid out: put the project's setup in the repo, give each person their own seat, and share agents rather than accounts. This post goes through each part.

#What should a team share in the repo?

Claude Code reads its setup from three levels: your user folder, the project, and a personal layer inside the project. The project level is the one a team shares through git.

FileWhat it holdsShared in git?
CLAUDE.md or .claude/CLAUDE.mdThe project's memory: commands, conventions, what not to touchYes
.claude/settings.jsonPermissions, hooks, environment variablesYes
.claude/settings.local.jsonOne person's overrides for this projectNo, Claude Code keeps it out of git
.claude/skills/<name>/SKILL.mdSkills: how to do a recurring job, loaded when relevantYes
.claude/agents/<name>.mdSubagents with their own instructions and toolsYes
.claude/commands/<name>.mdCustom slash commandsYes
.mcp.jsonThe project's MCP serversYes, without secrets
~/.claude/CLAUDE.md, ~/.claude/settings.jsonYour own preferences, every projectNo

The rule of thumb: anything that describes the project goes in the repo. Anything that describes you stays in your home folder. Anything secret stays out of both.

#What goes in a team CLAUDE.md?

The same things you'd tell a new developer on their first day, in fewer words:

  • How to build, test and run. The exact commands, including the one for a single test.
  • Conventions that aren't obvious from the code. "We use named exports." "Dates are UTC everywhere."
  • What not to touch. Generated files, vendored code, migrations already applied.
  • Where things are. Two or three lines on the layout of the repo.
  • How we ship. Branch names, commit style, what a pull request needs.

Keep it short. A CLAUDE.md that runs to hundreds of lines gets followed less, not more. Anything long can live in another file that CLAUDE.md points to with an @path import. See how to write a CLAUDE.md that Claude Code follows.

#How should a team share permissions and hooks?

Permissions decide what Claude Code can do without asking. Shared in .claude/settings.json, they save every developer the same twenty prompts:

  • Allow what's safe and frequent: the test command, the linter, git status, git diff.
  • Deny what should never happen: reading .env files, rm -rf, pushing to the main branch.
  • Leave the rest to ask. Each developer can allow more in their own settings.local.json.

Hooks run a script on Claude Code's events, which makes them the place for rules that must hold every time, not just most of the time:

  • Format each file after Claude edits it.
  • Block edits to generated folders.
  • Run the type checker before Claude says it's done.

Companies that need rules nobody can override can also deploy managed settings to every machine. For a small team, the shared settings file is usually enough. See Claude Code hooks and permission modes.

#How do you share skills and MCP servers?

Skills are the team's know-how in a form Claude can load when it needs it: how to add an API endpoint, how to write a migration, how to cut a release. A skill is a folder with a SKILL.md, so it's reviewed in a pull request like any other file. When someone figures out a better way to do a job, they update the skill, and everyone's Claude learns it with the next pull. See Claude Code skills.

MCP servers go in .mcp.json at the root of the repo. Claude Code asks each developer to approve a project's servers before using them. Keep keys out of the file: .mcp.json can read environment variables, so each person sets their own token on their machine. See MCP servers in Claude Code.

For setups shared across several repos, Claude Code's plugins bundle skills, subagents, hooks and MCP servers, and a project's settings can point teammates at a plugin marketplace.

#Should a team share one Claude account?

No, for practical reasons as much as rules:

  • One limit for everyone. Usage limits are per account. Three developers on one account hit the limit three times as fast, usually at the worst moment. See Claude Code usage limits.
  • One history. Everyone sees everyone's conversations, including the ones with pasted secrets.
  • Logouts and conflicts. Signing in on a new machine, changing the password or a security check affects everyone at once.
  • Accounts are meant for one person. Claude's terms treat an account as one user's.

What works instead:

SetupFitsHow it's paid
Each developer on their own Pro or Max planSmall teams, freelancers, foundersPer person
Team or Enterprise plan with seats that include Claude CodeCompanies that want one bill and admin controlsPer seat, managed by an admin
API keys from the Claude ConsoleCI, scripts, automationBy usage, with spend limits

Many developers end up with two accounts, a work seat and a personal plan, and switch between them. See using several Claude accounts with Claude Code and Pro or Max for Claude Code.

#How do you use Claude Code in CI?

Two common ways:

  • GitHub Actions. Anthropic's Claude Code action lets anyone on the team write @claude in a pull request or an issue to ask for a review or a fix, and can review every pull request on its own. /install-github-app in Claude Code sets it up.
  • Headless mode. claude -p "…" runs one task without a conversation, which fits any CI system. See Claude Code headless mode.

Both use an API key stored as a CI secret, so they're paid by usage, not by anyone's seat.

#How do teammates avoid stepping on each other?

Claude Code makes changes fast, which makes conflicts fast too:

  • One branch per task, and a git worktree when one person runs two sessions at once. See git worktrees with Claude Code.
  • Small pull requests, reviewed by a person. Claude can review first; see using Claude Code to review code.
  • Say what you're on. A line in the team chat or on the board saves two people fixing the same bug.

#What about agents that aren't tied to one repo?

Some of a team's AI work isn't coding: answering support, a weekly report, watching for failed payments. These usually start on one person's laptop, which means they stop when that laptop sleeps, run on one person's plan, and drift when someone copies the instructions.

The better shape is to share the agent, not the account: each teammate runs a copy on their own plan, the copies stay in sync, and each job is done once. See sharing AI agents and data with your team.

#In Relais

Relais is a Mac app built around Claude Code, and it keeps the setup above as it is. Its sessions load your user settings and the project's own, so the repo's CLAUDE.md, .claude/settings.json, hooks and skills apply in Relais as they do in the terminal. Each person signs in their own Claude account, Pro, Max or a team seat, and can add more than one: Relais puts them in your order, and a session stopped on a limit goes on in the next seat. Relais's own workflows are YAML files in the project's .relais/workflows/ folder, so they travel with the repo.

For a team, shared agents are installed by each member as a copy that runs on their own Claude account. How the agent works comes from the person who shared it; each copy sends back what it learns (memory, skills, its work log), each ticket, webhook or routine run is taken by one copy, and keys never leave the Mac that holds them. Teammates see that your agents are working or waiting, never what a session says. Decisions go in the team's pages, and talk goes in the team chat. See the Team page and what Relais is.

Your AI team,
on your Claude plan.

$14.99 a month, everything included. On your Mac or on Linux, on your Claude Pro or Max plan. Cancel any time.