/home/<user> for the selected project user. That home directory is shared by every box in the project and survives box deletion.
This is different from writing credentials into
/root. Root’s home lives in the box root filesystem and is deleted with the box. A project user’s /home/<user> is project-scoped persistent state.What gets synced
The dashboard sync writes these files into the target project user’s home:| Purpose | Path |
|---|---|
| Managed environment variables | ~/.config/forkr/profile.env |
| Managed shell startup file | ~/.config/forkr/profile.sh |
| Codex auth | ~/.codex/auth.json |
| Codex config | ~/.codex/config.toml |
| Claude Code credentials | ~/.claude/.credentials.json |
| Claude Code settings | ~/.claude/settings.json |
| Claude Code global state | ~/.claude.json |
~/.bashrc and ~/.profile:
0600 permissions.
Configure the profile
Open the dashboard and go to Settings → Developer profile.- Set Default project user, for example
alice. - Add non-secret environment variables under Environment:
- Add secret environment variables under Secret environment:
-
Paste any agent auth files you want Forkr to manage:
- Codex auth.json for
~/.codex/auth.json - Codex config.toml for
~/.codex/config.toml - Claude credentials.json for
~/.claude/.credentials.json - Claude settings.json for
~/.claude/settings.json - Claude .claude.json for
~/.claude.json
- Codex auth.json for
- Click Save profile.
Sync into a box
After saving the profile, sync it into a running box from the same Settings card:- Enter the project name.
- Enter a running box name.
- Enter the project user, or leave it as the default user.
- Click Sync.
Interactive shells source
~/.bashrc or ~/.profile. For non-interactive 4kr exec commands, source ~/.config/forkr/profile.sh when you need the managed environment in that command.Codex
Codex reads its login state from~/.codex/auth.json. To use a dashboard-managed Codex login inside boxes:
- Sign in to Codex on a machine where browser login works.
- Copy the contents of your local
~/.codex/auth.json. - Paste it into Codex auth.json in the dashboard developer profile.
- Sync the profile into the project user.
- Run Codex as that user inside the box.
~/.codex/config.toml into Codex config.toml.
Claude Code
Claude Code can authenticate with its native credential files or with environment variables. For native Claude Code auth:- Sign in to Claude Code where browser login works.
- Copy the relevant Claude files:
~/.claude/.credentials.json~/.claude/settings.json, if you use one~/.claude.json, if needed
- Paste them into the matching dashboard fields.
- Sync the profile into the project user.
- Run Claude Code as that user inside the box.
Rotating or removing credentials
To replace a credential:- Paste the new value into the matching dashboard field.
- Click Save profile.
- Sync the profile again.
When to use 4kr inject
4kr inject is still useful for one-off root credentials in a specific box. The dashboard developer profile is better when you want repeatable, project-user based auth that survives box deletion and works across boxes in the same project.
Development
Connect editors and agents to boxes.
Environment
Understand project users,
/home, PATH, and shell startup behavior.