All posts

The Simplest Way to Make Caddy VS Code Work Like It Should

You have a local app running on Caddy, a beautiful reverse proxy that handles TLS like it was born for it. You also live inside VS Code, pushing commits, debugging containers, and trying not to copy tokens from random slack messages. Somewhere between those two worlds, there’s usually friction: secure access, configuration drift, or just confusion about how to make them talk cleanly. Caddy VS Code is the workflow that closes that gap. Caddy gives you automated HTTPS and sane routing for local o

Free White Paper

Infrastructure as Code Security Scanning + End-to-End Encryption: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

You have a local app running on Caddy, a beautiful reverse proxy that handles TLS like it was born for it. You also live inside VS Code, pushing commits, debugging containers, and trying not to copy tokens from random slack messages. Somewhere between those two worlds, there’s usually friction: secure access, configuration drift, or just confusion about how to make them talk cleanly.

Caddy VS Code is the workflow that closes that gap. Caddy gives you automated HTTPS and sane routing for local or remote services. VS Code adds a portable, scriptable IDE that can connect to development servers or containers through SSH, tunnels, or extensions. When you align them, you get a secure, live-coded environment that feels local but operates anywhere.

Here’s the logic. Caddy authenticates traffic and terminates TLS using trusted certificates. VS Code connects through those routes, allowing the developer’s identity and editor sessions to remain consistent across environments. Since Caddy can enforce policies via JSON or Caddyfile directives, the IDE gains implicit session control without extra plugins. All your endpoints look the same, even if one’s in your laptop and another runs on an EC2 instance.

When wiring up this pair, think about identity first, configuration second. Map your access strategy to something concrete, like OIDC or SAML, before you mess with ports. Once Caddy knows who you are, VS Code can connect like any other trusted client—no manual token juggling or unencrypted tunnels.

Common setup tips:

Continue reading? Get the full guide.

Infrastructure as Code Security Scanning + End-to-End Encryption: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.
  • Assign distinct site blocks in Caddy for each project, even if they share the same port. It keeps routes predictable.
  • Use permissions only where needed. Overlapping matcher rules lead to phantom 403s that break VS Code’s Remote SSH extension.
  • Rotate any OAuth or API credentials Caddy references, same as you would with AWS IAM keys.

Benefits of integrating Caddy with VS Code:

  • Centralized authentication for local and remote dev servers.
  • Automated TLS and zero copy-paste certificates.
  • Familiar local editing with secure remote access.
  • Consistent log formats, easier to audit.
  • Instant portability between machines or teammates.

With this integration, developer velocity jumps. You edit, save, and see the effect right away, regardless of where the code runs. No SSH gymnastics. No manual port forwarding. It’s the kind of routine that keeps DevOps eyes dry.

Platforms like hoop.dev take this further, turning identity rules into enforced guardrails. Instead of managing dozens of Caddy configs, you describe intent once. The platform applies it across environments, maintaining just-in-time access and SOC 2-grade audit trails automatically.

How do I connect Caddy to VS Code Remote?

Configure Caddy to serve your dev server over HTTPS, then point VS Code’s Remote SSH or Remote Containers extension to that hostname. Caddy handles TLS. VS Code handles the session. The result is secure, repeatable, and fully scriptable.

AI copilots now analyze logs and configs faster than humans ever could, yet they need controlled exposure. Caddy’s routing policies ensure that even if your AI assistant fetches documentation or runs diagnostics, it never talks to an unauthorized backend.

Tie it all together and you get a local-like experience that respects production-grade controls. Simple, predictable, and just a little smug when it works.

See an Environment Agnostic Identity-Aware Proxy in action with hoop.dev. Deploy it, connect your identity provider, and watch it protect your endpoints everywhere—live in minutes.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts