Hasty Briefsbeta

Bilingual

Switching to Claude Code + VSCode inside Docker

13 hours ago
  • The author transitioned from using ChatGPT Plus and Cursor Pro to running Claude Code in Docker via VSCode's Dev Container feature.
  • Cursor's recent rate limits and slow response times (especially with Sonnet 4) frustrated the author, leading to a switch to Claude's $20 subscription for better value and faster responses.
  • Security concerns with AI agents (e.g., accidental file deletion, secret exposure) motivated running Claude Code in a containerized, isolated environment.
  • The Docker setup restricts Claude to only access files inside the container, preventing damage to the host system and local secrets.
  • A quick guide is provided: clone the repo, open in VSCode, click 'Reopen in Container', and Claude Code is ready to use.
  • For git operations, using a fine-grained GitHub token with read/write access to 'Contents' is recommended over SSH keys to limit permissions.
  • The token allows basic git commands (clone, pull, push) without granting excessive account access, enhancing security.