Skip to content
CohortDocs

Customer work

Working on a client’s repository beside your own? Give its project the client’s setup: their subscription (Logins), their environment, their secrets, the git identity and SSH key they expect. Only that project’s threads get them. Everything else keeps working as you.

Open Settings → Projects, pick the project, and scroll to For customer work. All of it is optional: leave it empty to work as yourself, with your own git, SSH and environment, untouched.

Click Add variable and type a name and a value. Every process of this project’s threads gets them: the agent, its terminal, its checks and the worktree scripts.

Use it for settings that aren’t secret, such as API_BASE=https://staging.client.example. Put keys and passwords under Secrets instead: environment values are stored as typed.

Click Add secret, type its name (for example STRIPE_KEY), click Next, then its value and Save secret. The value goes into the system’s credential store (the Keychain on macOS, Credential Manager on Windows) and is never shown again; Cohort’s database holds only the name. Replace gives it a new value, the × removes it from the keychain.

A secret reaches the project’s threads as an environment variable, like the ones above. Its value is hidden from transcripts and from the output of checks and scripts.

Some names can’t be secrets: names Cohort sets itself, and names that change what commands run (PATH, HOME, SHELL, COHORT_*, LD_*, GIT_* and the like). Cohort refuses them when you add one. A secret saved under such a name before it was refused is shown as Not given to agents, with a warning: save the value under another name and remove it.

An agent can also ask you for a secret while it works, without ever seeing the value (the request_secret tool): you type it in Cohort and it can be stored as one of the project’s secrets. Agents get a stricter list of refused names. See MCP tools.

From the CLI, the value comes from --value or, safer, from stdin:

$ cohort project secret set client-app STRIPE_KEY
Stored STRIPE_KEY in the keychain.
$ cohort project secret remove client-app STRIPE_KEY
Removed STRIPE_KEY.

A refused name:

$ cohort project secret set client-app PATH
error: `PATH` is set by Cohort or changes what commands run: it can't be a project secret (400 INVALID)

Commits in this project’s threads use these. Empty: your own git config.

  • Author name and Author email: who the commits are by.
  • SSH key: the private key git uses over SSH for this project, for example ~/.ssh/client_ed25519. Only that key is offered to the server.
  • Signing key: a GPG key id, or an SSH public key (~/.ssh/key.pub), to sign the commits.

Everything else in your git config still applies: Cohort adds the project’s identity on top of your ~/.gitconfig, never instead of it, and never changes your files.

  • gh, the GitHub CLI, is always your own login.
  • Your agent settings, skills and MCP servers are shared by all your logins (see Logins).
  • Variables that would sign an agent in some other way (ANTHROPIC_API_KEY, OPENAI_API_KEY and the like) are removed from what agents get, so your terminal’s keys never leak into a thread. A project can still set one on purpose, in its environment or secrets.

Changes to a project’s environment, secrets or git identity apply to its threads’ next turn: Cohort restarts their agent sessions before it, and the conversation carries on.

Terminal window
cohort project edit client-app \
--env API_BASE=https://staging.client.example \
--git-name "Sam Rivera" --git-email sam@client.example \
--ssh-key ~/.ssh/client_ed25519

--env is repeatable and replaces the project’s whole environment. cohort project show lists what is set (secrets by name only):

$ cohort project show client-app
client-app (prj_o32h7p42sxr9)
path: /Users/you/Code/client-app
login for claude-code: lgn_rl1c14olj8i0
git: Sam Rivera <sam@client.example>
ssh key: /Users/you/.ssh/client_ed25519
env: API_BASE
secrets: STRIPE_KEY
Made by Bussin Bytes© 2026 Bussin Bytes Ltdcohort.bussinbytes.io