Create devcontainer feature for Claude Code
Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 8 comments · opened Mar 11, 2025 · closed Mar 12, 2025
💡 Likely answer: A maintainer (bcherny, collaborator)
responded on this thread — see the highlighted reply below.
I love that the Claude Code provides a devcontainer reference implementation to bring awareness to running AI coding agents in an isolated environment.
Unfortunately, the reference implementation does not make including Claude Code into an existing project easy. Devcontainers have features (https://containers.dev/implementors/features/) which can easily incorporate tools like Claude Code into existing devcontainers setups.
Would y'all be open to implementing a devcontainer feature for Claude instead of the reference impelmentation?
8 Comments
Yes! Coming soon.
Sweet!
Can't wait to see it!
https://github.com/anthropics/devcontainer-features/pull/7
Once that PR goes in, I'll incorporate the firewall feature as an option. Would that meet your needs?
Like this https://github.com/anthropics/devcontainer-features/pull/16
I'll give it a shot, thanks!
Released: https://github.com/anthropics/devcontainer-features/releases/tag/feature_claude-code_1.0.5
Thank you!
Added it to my example repo and it works great: https://github.com/mikegehard/devcontainers-for-isolation
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.