Skip to content
ClaudeToHost

THE PACKAGING GUIDE

What ClaudeToHost
accepts.

Start with your project. Find the structure, runtime and deployment contract that fits.

On this page

Start with your project

Drop the whole project. Recognized Python, Node, Bun, Deno, Ruby, PHP, Go and Rust applications are prepared automatically from their declarations, imports and entrypoints. The deployment plan identifies the process, dependencies, runtime files and secret names. An explicit manifest stays available when a project has several possible services or needs custom settings. Automatic Go and Rust plans require one proven entrypoint and compile embedded assets into the binary; runtime file access needs explicit packaging. Java 21, .NET 10 and Elixir 1.18 applications use an explicit manifest and an approved multi-stage Dockerfile. Recognized .NET SDK build stages receive defaults that disable persistent compiler servers inside the isolated build.

Import a folder directly

Choose folder or drag one project folder onto the upload area. Your browser prepares the archive automatically and preserves nested paths. ZIP and tar.gz uploads remain available.

Folder imports skip .git, node_modules, Python virtual environments and caches, .next, Finder metadata and .env secrets. Example environment files and built dist or build directories are preserved. Configure secrets in project settings. Up to 5,000 included files and 40 MB of source files are supported; anonymous uploads still have a 20 MB archive limit.

Empty directories and executable permission bits are not preserved by browser folder selection. Invoke scripts through their interpreter or use an archive when your packaging requires these attributes.

A front end

Nothing to declare. Select the project folder — the one with package.json in it — or upload its archive, and the build runs on our side.

my-app/ ← select THIS package.json ← this is what tells us to build index.html ← a Vite template, not the page src/… node_modules/ ← leave it out, it is reinstalled anyway

We run npm ci (or npm install when there is no lockfile), then npm run build, and serve whatever lands in dist/, out/, build/ or .output/public. Installation and build time depend on the project. Live logs show progress, and your address displays a holding page until the deployment is ready.

The build runs sandboxed, without cluster credentials, and can reach nothing private — npm install executes third-party install scripts, and that is treated as what it is.

Something already built

If you would rather build it yourself, drop the output and we skip straight to serving it.

dist/ ← no package.json, so no build index.html ← must exist at the root assets/…

A single top-level folder is stripped automatically, so zipping dist/ and zipping its contents both work. Without an explicit hosting manifest, package.json at the root selects a front-end build. If the application depends on local API routes or a Python server, package that server using the contract below; HTML files alone do not make the application static.

Compatibility

Static projects and Next.js are deployed automatically. Packaged Node, Python, Bun, Deno, Ruby, PHP, Go, Rust, Java, .NET and Elixir HTTP services and workers use isolated Dockerfile builds, immutable images and runtime-only secrets.

ProjectStatusRuntime shape
Built static siteLiveShared static edge, no tenant pod
Vite, Astro, CRA or static Next.jsLiveNode build, then shared static edge
Next.js server renderingLiveNode 22 service with health probes
Node, Python, Bun, Deno, Ruby, PHP, Go or Rust serviceLiveDeployment, Service and Ingress
Java 21, .NET 10 or Elixir 1.18 service or workerLiveExplicit manifest, approved compiler and runtime images
Node, Python, Bun, Deno, Ruby, PHP, Go or Rust workerLiveDeployment only, no port or public route

Projects that run: claudetohost.yaml

A service or worker needs claudetohost.yaml, Dockerfile and .dockerignore at the archive root. Keep existing dependency files; Python can also resolve missing dependencies automatically. The manifest declares how to run the process and the names of its environment variables. It takes precedence over front-end detection, including an incidental package.json or index.html.

version: 1 type: web # web | worker runtime: node # node | python | bun | deno | ruby | php | go | rust | java | dotnet | elixir command: ["node", "dist/index.js"] # web only — a worker must declare NEITHER of these port: 3000 # 1024-65535 (the container runs non-root) health: path: /healthz env: required: [DATABASE_URL] # NAMES ONLY, never values optional: [LOG_LEVEL] resources: cpu: "500m" memory: "512Mi"

Unknown fields are rejected. Use a real HTTP health path, or health: { mode: tcp } when the application has no health route. Workers declare neither port nor health. The versioned JSON Schema is public and is the input to the pre-build validator.

Packaged images run on Linux amd64, as a numeric non-root UID, with a read-only filesystem and a 64 MiB temporary directory. The image archive is limited to 80 MiB compressed and 512 MiB expanded. The Free plan allows one project total of any supported type, up to 1 vCPU and 768 MiB. Secrets are requested after the image build and never enter the builder.

Python dependencies, automatically

Drop your packaged Python project without identifying its libraries or creating empty dependency files. When no explicit lockfile is supplied, the isolated build reads imports, excludes standard-library and local modules, installs missing packages and records exact versions for that deployment. Existing requirements.txt or pyproject.toml declarations take priority. An application using only the standard library installs nothing extra.

Existing uv.lock, poetry.lock, Pipfile.lock and non-empty requirements.lock files keep the installation defined by your Dockerfile. Build logs show automatically detected packages and resolved versions. Imports computed at runtime, private packages and unrecognized namespace packages may still need an explicit dependency declaration.

Why a worker has no port

A Discord bot or a queue consumer is not a website. Declaring a port on one is rejected rather than ignored: a worker gets a deployment and nothing else — no service, no ingress, no public surface it never asked for.

Why env is names, not values

A mapping of KEY to value is refused outright. Values are supplied later from the project page and land in a Kubernetes Secret in your own namespace; they never enter the manifest, the repository, or the deployment record.

Dockerfile requirements

  • A numeric non-root final USER is mandatory. Not a suggestion — a build whose last USER is named, root, or absent, is refused. It is also why a web port must be ≥ 1024: a non-root process cannot bind lower.
  • Multi-stage where it makes sense: build in one stage, copy the artifact into a slim runtime. A single-stage image is a warning, not a refusal.
  • Logs to stdout/stderr. Anything written to a file inside the container is invisible and lost on restart.
  • No interactive shell as the entrypoint — the image has to start on its own.
  • No secrets in the image or the repo. Files are scanned for key-shaped strings and a match fails the upload with the offending line.
  • ADD <url> is refused: an opaque network fetch at build time is not reproducible.
FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build FROM node:22-alpine WORKDIR /app COPY --from=build /app/dist ./dist COPY --from=build /app/node_modules ./node_modules # The Node base already provides UID 1000. USER 1000:1000 # required numeric non-root UID EXPOSE 3000 CMD ["node", "dist/index.js"]

Limits

Archive
40 MB, 5000 files
Formats
.zip · .tar.gz
Runtime ceiling
1 replica · 2 vCPU · 1536 MiB
Refused outright
symlinks · paths escaping the archive
← Deploy a site