agent-account-isolation
Run two or more accounts of the same coding-agent CLI on one machine without cross-contamination.
Skill by Local setup
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hongyime-agent-account-isolation
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-account-isolation
What's inside
- Skill name
agent-account-isolation- Description
- Run two or more accounts of the same coding-agent CLI on one machine without cross-contamination. Use for "it used my other account", "wrong account", separating work and personal agent identities, WSL versus host isolation, per-account credentials, or proving which account a CLI is actually using. Covers browser-login CLIs and cloud-credential CLIs, which fail differently.
- License
- MIT
- Metadata
- author: Local setup · version: 1.0.0 · platform: Windows with WSL, macOS, Linux; any agent CLI
- Instructions
- 206 lines in SKILL.md · view on GitHub
Before installing
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Agent Account Isolation Keep two agent identities on one machine from drifting into each other, and be able to prove at any moment which one is in use. ## When to use Use when the same CLI must run under different accounts on one machine, when a tool has silently used the wrong account, or when setting up a second identity alongside an existing one. Use `agent-machine-bootstrap` for installing the CLIs themselves, and `virtualbox-guest-access` when the second context is a VM. Not for multi-tenant server access control, not for secret management, and not a substitute for separate machines where policy requires them. ## Status **Proposed, not yet verified end to end.** The reasoning and the individual mechanisms are sound and documented, but this procedure has not been executed and confirmed on a live two-account setup. Treat the verification commands as the acceptance test, not as a formality, and correct this section once a run has actually passed. ## The two credential classes Isolation fails differently depending on how a CLI authenticates. Establish which class each tool is in before designing anything. | Class | Credential is | Isolation depends on | Failure mode | |---|---|---|---| | Browser login | A token written into a config directory after an interactive authorisation | A separate config directory, and the correct browser session **at login time** | Approving as the wrong account. There is at least a visible moment to get right | | Cloud credential chain | Environment variables, or a shared credentials file on disk | Not inheriting those variables, and not sharing the credentials directory | Silent inheritance. There is **no login step to get wrong** — it simply works, wrongly | The second class is the dangerous one. A tool that resolves credentials from the environment gives no signal that it picked up the wrong identity. ## Isolation mechanisms, strongest to weakest | Mechanism | Strength | Cost | |---|---|---| | Separate physical or virtual machine | Strongest. No shared filesystem, environment or process table | Another machine to build and maintain | | Separate operating-system user account | Strong. File permissions are enforced by the OS | Switching users; awkward to use both at once | | Container per account | Strong, provided the host filesystem is not bind-mounted in | Image and lifecycle management | | Separate guest distribution, for example WSL | Good for accidents, but the host drive is usually mounted by default | Host-platform specific | | Config-directory environment variables in one shell | **Weakest.** One unset variable puts you in the wrong account, with nothing enforcing it | None, which is exactly why it is tempting | Anything below the container line prevents mistakes rather than access. Choose deliberately and state which you chose. ## What isolation does and does not buy Be precise about this. Overstating it is how people end up trusting a boundary that is not there. | Measure | Prevents | Does not prevent | |---|---|---| | Host programs kept off the guest `PATH` | Silently running the host's binary, under the host's identity | Reading host files through a mounted drive | | Credential variables not forwarded | Silent inheritance of the other account's keys | A tool reading a shared credentials file on disk | | Config directories kept local | Two contexts sharing one token store | Anything that deliberately walks the mounted drive | | Authorising in the correct browser session | Binding a new CLI to the old account | A later re-authorisation drifting back | | Host drive mount disabled | Reading host files at all | Nothing. This is the only actual boundary here | The realistic risk is accidental misuse, and the measures above address it well. A genuine boundary requires the last row, or a mechanism from the top of the previous table. This matters more than usual because the process running in the isolated context is an agent: asked to "find my config", it is exactly the thing that would walk a mounted host drive and read the other account's credentials. ## Worked example: a WSL guest as the second context Host keeps account A. The guest gets account B. ### 1. Keep host programs out of the guest PATH Inside the guest, edit `/etc/wsl.conf`: ```ini [interop] appendWindowsPath=false ``` Then, from the host shell, restart the subsystem: ```powershell wsl --shutdown ``` After this, the CLI name in the guest resolves to the guest's own installation or to nothing at all, never to the host's copy. Install the Linux builds afterwards, not before. ### 2. Do not forward credential variables Inside the guest: ```bash echo $WSLENV ``` It should be empty, or contain only names that carry no identity. Never add any provider key or cloud credential variable to it. See the matrix below for the specific names per CLI. ### 3. Keep configuration directories local Leave each CLI's configuration directory as an ordinary directory inside the guest. Do not symlink any of them onto the mounted host drive, and do not point a config-directory or home-directory override at a host path. ### 4. Authorise in the correct browser session The login link opens the host's default browser, which is probably still signed in as account A. Clicking Authorize there binds the CLI to account A. Instead, paste the login URL into a private window, or into a browser profile signed in as account B. Do this once per CLI, and verify immediately afterwards rather than assuming it worked. Where a CLI offers a device-code flow, prefer it: the code is entered in a
From hongyime/theprawnskills, MIT.
More from hongyime/theprawnskills
- 0.570score
agent-machine-bootstrap
Local setup
Bootstrap any new, rebuilt or virtual machine into a working coding-agent environment: sizing, base tooling, runtimes, agent CLIs, model credentials, agent…
SkillAFreshness: AClaude Code +9 - 0.561score
skill-router
hongyime
Find and load on-demand skills from a Prawn Skills Git clone on any supported OS.
SkillAFreshness: AClaude Code +9 - 0.521score
skill-remove
hongyime
Plan and carry out an explicitly requested standalone skill retirement with recoverable backups.
SkillBFreshness: BClaude Code +9 - 0.519score
skill-create
hongyime
Create a new reusable skill in a standalone Prawn Skills Git clone.
SkillBFreshness: BClaude Code +9 - 0.519score
skill-add
hongyime
Add a skill to a standalone Prawn Skills Git clone from GitHub, a URL, pasted instructions, or a described workflow.
SkillBFreshness: BClaude Code +9 - 0.519score
skill-update
hongyime
Update or improve existing Prawn Skills in a standalone Git clone using observed workflow evidence.
SkillBFreshness: BClaude Code +9 - 0.516score
skill-cleanup
hongyime
Audit and explain duplicate, broken, default, and on-demand skills in a standalone Prawn Skills installation.
SkillBFreshness: BClaude Code +9 - 0.516score
skill-authoring
hongyime
Apply standalone conventions for creating, editing, validating, or auditing Prawn Skills in a Git clone.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 30, 2026 (29 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- Repository
- github.com/hongyime/theprawnskills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Local setup
Cite this page
agent-account-isolation skill. Agent Mart. https://agentmart.dev/skills/hongyime-agent-account-isolation (last updated 2026-10-24)