Square CloudSquare Cloud

JDK 25 with zero setup

Spring Boot, Quarkus or Kotlin on JDK 25: you upload the executable .jar and Square Cloud starts it with java -jar, in an isolated container.

From ZIP to running process

The same path on every deploy, from the dashboard, the CLI or GitHub.

1

Detects the language

RUNTIME, or the extension of MAIN (.jar), picks Java.

2

Installs the dependencies

You upload the executable .jar, already built: nothing is installed at deploy.

3

Isolates the container

The CPU and RAM of MEMORY are guaranteed by the kernel, and the process runs without root.

4

Starts the process

Without START, the default command runs. With START, yours runs exactly as written.

The squarecloud.app of a Java app

A KEY=VALUE file at the root of the project, or generated by the dashboard at deploy. This one publishes a site or API; without SUBDOMAIN, the app runs as a background process.

squarecloud.app
  1. 1MAIN=app.jar
  2. 2MEMORY=512
  3. 3VERSION=recommended
  4. 4DISPLAY_NAME=my-api
  5. 5SUBDOMAIN=my-api
  6. 6AUTORESTART=true
Versions
25
Default command
java -jar app.jar
Dependencies
Not required
Accepted files
.jarpom.xmlbuild.gradlebuild.gradle.kts
RUNTIME= values
java
Also in the image
ffmpeg

What comes ready

The environment already knows your language: you upload the code and it runs.

Recent JDK

Virtual threads, pattern matching, and ZGC available to your code, with nothing to install.

Upload your built JAR

Build the JAR with your usual workflow and upload the file: it becomes your app's entry point.

Kotlin, Scala, Clojure, and Groovy

Any JVM language packaged as a fat JAR runs the same way Java does.

Configurable JVM

Set flags like -Xms and -Xmx in your start command (START) to control the heap and garbage collector.

What you can host

Projects that run on this runtime.

Spring Boot and Quarkus APIs

REST, GraphQL, and gRPC-Web services that use virtual threads to handle concurrent requests.

Java Discord bots

Bots online 24/7 with JDA, Discord4J, or Javacord, each in its own isolated container.

JVM microservices

Services that talk over gRPC-Web and Protobuf or through asynchronous messaging.

Kotlin backends

APIs with Ktor or Spring in Kotlin, using coroutines for readable asynchronous code.

Lavalink for music bots

A standalone Lavalink server for Discord music bots, connected to your bot over WebSocket.

Batch and scheduled jobs

Spring Batch, Quartz Scheduler, and ETL pipelines running continuously on the JVM.

Combine with other services

Everything in the same dashboard, on the same infrastructure and the same invoice.

A plan for every stage of your project

From your first deploy to 1 TB of RAM, without switching platforms. Each phase adds memory and features to the one before, and upgrades apply instantly.

Compare all plans
1 GB → 2 GB

Hobby

Take the idea off localhost and put it online.

  • Up to 2 vCPU
  • Real-time metrics
  • Blob Storage
  • One-click rollback
  • Square Shield anti-DDoS
  • Cubic AI agent

FromR$12.49/mo

4 GB → 8 GB

Standard

Recommended

Production with databases, your own domain and a team.

  • Up to 4 vCPU
  • Databases
  • Custom domain
  • Load balancer
  • AI Gateway
  • Workspaces

FromR$44.99/mo

12 GB → 24 GB

Pro

More memory, daily snapshots and visibility into what runs.

  • Up to 12 vCPU
  • Daily application snapshots
  • Performance analytics
  • Cubic Pro and routines
  • Priority support

FromR$124.99/mo

32 GB → 1 TB

Enterprise

Large operations, with a private Discord channel.

  • Up to 16 vCPU
  • Private Discord channel

FromR$299.90/mo

HobbyStandardProEnterprise
Compute
RAM1 GB → 2 GB4 GB → 8 GB12 GB → 24 GB32 GB → 1 TB
vCPU1 → 246 → 1216
Platform
Real-time metricsIncludedIncludedIncludedIncluded
Blob StorageIncludedIncludedIncludedIncluded
One-click rollbackIncludedIncludedIncludedIncluded
Square Shield anti-DDoSIncludedIncludedIncludedIncluded
Cubic AI agentIncludedIncludedIncludedIncluded
DatabasesNot includedIncludedIncludedIncluded
Custom domainNot includedIncludedIncludedIncluded
Load balancerapps per domainNot included2510
AI GatewayNot includedIncludedIncludedIncluded
Daily application snapshotsNot includedNot includedIncludedIncluded
Performance analyticsNot includedNot includedIncludedIncluded
Cubic Pro and routinesNot includedNot includedIncludedIncluded
Team and support
Workspacesmembers per workspaceNot included3 → 710 → 2020 → 50
Priority supportNot includedNot includedIncludedIncluded
Private Discord channelNot includedNot includedNot includedIncluded

4.9 out of 5

482 reviews on Google and Trustpilot

Hosted in a partner datacenter with certifications

  • Tier 3
  • ISO 27001
  • SOC 2 Type II
  • Always-On DDoS Protection
Explore our infrastructure

Frequently asked questions about Java Hosting

JDK 25, fat JAR, Spring Boot, and Lavalink servers.

Do I need to install Maven or Gradle on the server?

No. Build locally and upload the packaged .jar, which runs directly on JDK 25.

Can I run Kotlin, Scala, or Clojure?

Yes. Any JVM language packaged as a fat JAR works: Kotlin, Scala, Clojure, and Groovy.

How do I configure JVM flags?

Use the START= field in squarecloud.app. Example: START=java -Xms256m -Xmx900m -jar app.jar.

Can I host a Lavalink server?

Yes. Upload Lavalink.jar and configure START= with the right flags (e.g., java -Xmx512m -jar Lavalink.jar). Ideal for Discord music bots that need standalone audio processing, YouTube/SoundCloud/Spotify support, and WebSocket connectivity.

Ship your project today

Join the 500,000+ developers who have used Square Cloud to host their projects.

  • Deploy in seconds via GitHub, CLI or .zip
  • Isolated, always-on containers
  • Automatic TLS on every domain
  • Anti-DDoS on layers 3, 4 and 7
  • Snapshots with 1-click restore
  • Cubic, the AI agent, on every plan
  • Fixed price in reais, with NFS-e
  • No per-request charges