{"id":49262962,"url":"https://github.com/1shooperman/claude-env","last_synced_at":"2026-05-27T01:07:45.945Z","repository":{"id":350488490,"uuid":"1207015442","full_name":"1shooperman/claude-env","owner":"1shooperman","description":"Claude Environment Manager","archived":false,"fork":false,"pushed_at":"2026-05-23T14:46:08.000Z","size":52,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T15:24:15.771Z","etag":null,"topics":["bash","claude-code","install","shell","version-management","version-manager","zsh"],"latest_commit_sha":null,"homepage":"https://github.com/1shooperman/claude-env/wiki","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1shooperman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"custom":"https://buymeacoffee.com/aglflorida"}},"created_at":"2026-04-10T13:40:06.000Z","updated_at":"2026-05-23T14:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/1shooperman/claude-env","commit_stats":null,"previous_names":["1shooperman/claude-env"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/1shooperman/claude-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1shooperman%2Fclaude-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1shooperman%2Fclaude-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1shooperman%2Fclaude-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1shooperman%2Fclaude-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1shooperman","download_url":"https://codeload.github.com/1shooperman/claude-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1shooperman%2Fclaude-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33545492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","claude-code","install","shell","version-management","version-manager","zsh"],"created_at":"2026-04-25T08:39:06.450Z","updated_at":"2026-05-27T01:07:45.939Z","avatar_url":"https://github.com/1shooperman.png","language":"Shell","funding_links":["https://buymeacoffee.com/aglflorida"],"categories":[],"sub_categories":[],"readme":"# claudenv\n\nSwitch between Claude Code accounts the same way you switch Python envs or Node versions — a shell function that feels like a native command.\n\nModeled after `nvm` / `venv` / `jenv`. macOS-first; see [open issues](https://github.com/1shooperman/claude-env/issues) for the WSL/Windows roadmap.\n\n---\n\n## Installation\n\n(includes SHA256 integrity check):\n\n**curl:**\n```sh\ncurl -o- https://github.com/1shooperman/claude-env/releases/download/v0.1.2/install.sh | sh\n```\n\n**From a local clone:**\n```sh\ngit clone git@github.com:1shooperman/claude-env.git\nsh claude-env/install.sh\n```\n\n\u003e **Note:** Piped installs (curl/wget) are non-interactive and skip shell profile wiring. The installer prints the two lines to add manually — follow those instructions, then reload your shell. Local installs (`sh install.sh`) prompt you before writing to your profile.\n\nAfter wiring your profile, reload your shell:\n```sh\nsource ~/.zshrc   # or ~/.bashrc\n```\n\n**oh-my-zsh users:** oh-my-zsh automatically sources any `.zsh` files in `~/.oh-my-zsh/custom/`. You can symlink claudenv there so it loads as part of the normal oh-my-zsh startup — no manual source line in `.zshrc` required:\n\n```sh\nln -s \"$HOME/.claudenv/claudenv.sh\" \"$HOME/.oh-my-zsh/custom/claudenv.zsh\"\n```\n\nIf you previously ran a local install and answered yes to the profile prompt, remove the `# claudenv` block from `~/.zshrc` to avoid double-sourcing.\n\n---\n\n## How it works\n\n`install.sh` downloads `claudenv.sh` to `~/.claudenv/` and sources it from your shell profile. Because it runs as a **shell function** (not a subprocess), it can export environment variables and modify your prompt directly — the same trick `nvm` uses.\n\nEach env is a directory under `~/.claudenv/envs/\u003cname\u003e/`. Activating an env sets `CLAUDE_CONFIG_DIR` to that directory, which tells Claude Code to read config and credentials from there instead of the default `~/.claude`.\n\n---\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `claudenv` | Interactive env picker |\n| `claudenv \u003cname\u003e` | Activate a named env |\n| `claudenv deactivate` | Deactivate the current env |\n| `claudenv config [name]` | Create a new env |\n| `claudenv list` | List all envs (`*` marks the active one) |\n| `claudenv remove \u003cname\u003e` | Delete an env |\n| `claudenv upgrade \u003cver\u003e` | Upgrade to a release (e.g. `v1.2.3` or `latest`) |\n| `claudenv uninstall` | Remove claudenv and clean up shell profile |\n| `claudenv help` | Show command reference |\n\n---\n\n## Auto-activation\n\nPlace a `.claudenvrc` file containing an env name in any directory:\n\n```sh\necho \"work\" \u003e .claudenvrc\n```\n\nclaudenv will activate that env automatically when you `cd` into the directory and deactivate it when you leave (if it was auto-activated).\n\n---\n\n## Prompt integration\n\nWhen an env is active, your prompt is prefixed with the env name:\n\n```\n(work) ~ $\n```\n\n**oh-my-zsh**: claudenv registers a `precmd` hook via `add-zsh-hook` so the prefix survives theme redraws. Works with any theme that sets `PROMPT` in a precmd hook (robbyrussell, agnoster, etc.).\n\n\u003e **Note:** Powerlevel10k uses its own async rendering pipeline. See [#3](https://github.com/1shooperman/claude-env/issues/3) for p10k support.\n\n---\n\n## Known limitations / Roadmap\n\n- **No auth flow** — `claudenv config` creates the env directory but does not log you in. You must authenticate separately. See [#1](https://github.com/1shooperman/claude-env/issues/1).\n- **WSL / Windows** — not yet supported. See [#2](https://github.com/1shooperman/claude-env/issues/2).\n- **Powerlevel10k** — the `precmd` hook approach does not integrate with p10k's async prompt segments. See [#3](https://github.com/1shooperman/claude-env/issues/3).\n- **Fish shell** — Fish uses a different config syntax; contributions welcome.\n\n---\n\n## Contributing\n\nPRs welcome. The entire tool is plain shell (`claudenv.sh`) — no build step, no dependencies. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n---\n\n## Support\n\nIf claudenv saves you time, consider [buying me a coffee](https://buymeacoffee.com/aglflorida). ☕\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1shooperman%2Fclaude-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1shooperman%2Fclaude-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1shooperman%2Fclaude-env/lists"}