Back to projects
SaaS platform for renting Claude CLI
Telegram bots

SaaS platform for renting Claude CLI

A multi-tenant Docker platform: slot booking, isolated per-user environments, and an automated scheduler.

Challenge. Give people managed, subscription-based access to Claude Code CLI — each in their own isolated environment, without losing sessions, keys, and settings between runs.

Approach. I designed it as a full SaaS engine: moderated subscriptions, hourly booking, and automatic container allocation — all the routine handled without manual involvement.

Solution. Node.js + grammY, a subscription lifecycle (request → approval → activation → renewal), hourly slot booking with a one-week horizon, auto-provisioning of a per-user Docker container with an isolated workspace and persistent volumes (sessions, SSH keys, OAuth tokens survive re-creation), a scheduler ticking once a minute (activating/deactivating slots, notifications, image rebuilds on git updates), an admin panel with logs, and a shared PostgreSQL sharded by search_path.

Result. A working platform that sells managed access to Claude CLI: users are isolated from each other but never lose their auth or tools. A full stack — Docker orchestration, stateful scheduling, and multi-tenant architecture.

Related work