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?

View original on GitHub ↗

8 Comments

bcherny collaborator · 1 year ago

Yes! Coming soon.

mikegehard · 1 year ago

Sweet!

Can't wait to see it!

8enmann collaborator · 1 year ago

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?

8enmann collaborator · 1 year ago
mikegehard · 1 year ago
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?

I'll give it a shot, thanks!

mikegehard · 1 year ago

Thank you!

Added it to my example repo and it works great: https://github.com/mikegehard/devcontainers-for-isolation

github-actions[bot] · 1 year ago

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.