Skip to content

Instantly share code, notes, and snippets.

View frmoretto's full-sized avatar

Francesco Marinoni Moretto frmoretto

View GitHub Profile

Serverless Claude Code Instances with Persistent Compute

1. Problem

We need a way to give each Discord channel its own persistent "computer" running Claude Code CLI, where:

  • The computer survives across sessions (disk persists)
  • It wakes up fast when a user sends a message (< 10s, ideally < 5s)
  • It costs near-zero when idle