{"id":50554791,"url":"https://github.com/functionally/claude-env","last_synced_at":"2026-06-04T06:01:52.558Z","repository":{"id":359127341,"uuid":"1225658833","full_name":"functionally/claude-env","owner":"functionally","description":"Efficient podman-based and nix-enabled environment for Claude Code","archived":false,"fork":false,"pushed_at":"2026-05-20T13:27:50.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T18:12:08.190Z","etag":null,"topics":["claude-code","nixos","podman"],"latest_commit_sha":null,"homepage":"","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/functionally.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-30T13:57:43.000Z","updated_at":"2026-05-20T13:28:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/functionally/claude-env","commit_stats":null,"previous_names":["functionally/claude-env"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/functionally/claude-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fclaude-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fclaude-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fclaude-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fclaude-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionally","download_url":"https://codeload.github.com/functionally/claude-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fclaude-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33891733,"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":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["claude-code","nixos","podman"],"created_at":"2026-06-04T06:01:49.241Z","updated_at":"2026-06-04T06:01:52.553Z","avatar_url":"https://github.com/functionally.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-env\n\nA secure Podman container for running Claude Code against a Nix-managed project.\n\n## One-time setup\n\n```bash\n# 1. Copy your Claude Code credentials into the container home.\nmkdir -p claude/.claude\ncp ~/.claude/.credentials.json claude/.claude/.credentials.json\n\n# 2. Build and load the container image.\nnix build\npodman load \u003c result\n```\n\n## Workflow\n\n**Before starting the container** (or whenever the project's flake inputs change), generate the dev environment script on the host:\n\n```bash\n./gen-dev-env.sh examples/rust   # writes examples/rust/dev-env.sh\n./gen-dev-env.sh /path/to/project\n```\n\n**Start the pod,** passing the project directory (pod name defaults to the last path component):\n\n```bash\n./play.sh examples/rust              # pod named \"rust\"\n./play.sh /path/to/project           # pod named \"project\"\n./play.sh /path/to/project mypod     # explicit pod name\n```\n\nThe pod name must be unique if running multiple pods simultaneously. The project directory is mounted as `/work` inside the container.\n\n**Enter the container** (pod name matches the last component of the work directory):\n\n```bash\n./exec.sh rust\n```\n\nThis sources `/work/dev-env.sh`, changes to `/work`, and drops you into an interactive shell with the project's dev environment (PATH, CC, PS1, etc.) already set. Start Claude Code with `claude`.\n\n**Tear down:**\n\n```bash\npodman pod stop rust \u0026\u0026 podman pod rm rust\n```\n\n## Running multiple pods simultaneously\n\nEach pod has its own name, its own `/work` mount, and its own `dev-env.sh` (stored in the project directory). There is no shared mutable state between pods.\n\n```bash\n./gen-dev-env.sh examples/rust    \u0026\u0026 ./play.sh examples/rust    \u0026\u0026 ./exec.sh rust\n./gen-dev-env.sh examples/haskell \u0026\u0026 ./play.sh examples/haskell \u0026\u0026 ./exec.sh haskell\n```\n\n## How it works\n\n`nix print-dev-env` evaluates the project flake's `devShell` on the host and emits a shell script that sets `PATH` and build variables to the relevant `/nix/store/...` paths. Since the container mounts the host Nix store read-only, those paths are accessible without a daemon socket. The container has no write access to the Nix store and no daemon socket — it can read derivations but cannot build, delete, or garbage-collect them.\n\nSee `CLAUDE.md` for architecture details and alternative approaches.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fclaude-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionally%2Fclaude-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fclaude-env/lists"}