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≈ $2.25
The official SDKs for the Square Cloud API. Deploy, restart, read logs, edit files, take snapshots and set domains from your own scripts, with zero runtime dependencies.
Four official packages: three for the Square Cloud API and one for Blob Storage. Each one needs only its language's runtime.
@squarecloud/api
Node.js 22+, Deno, Bun and edge runtimes
npm install @squarecloud/apisquarecloud-api
Python 3.11+, with sync and async clients
pip install squarecloud-apigithub.com/squarecloudofc/sdk-api-go/v3
Go 1.22+, with a context on every call
go get github.com/squarecloudofc/sdk-api-go/v3@squarecloud/blob
Node.js 20+ and the browser
npm install @squarecloud/blobCreate an API key, set it as the SQUARECLOUD_API_KEY environment variable and run one of these programs. Each one prints your name and how many applications the key can see.
import { SquareCloudAPI } from "@squarecloud/api";const api = new SquareCloudAPI(process.env.SQUARECLOUD_API_KEY);const { user, applications } = await api.account.me();console.log(`Hi ${user.name}, you have ${applications.length} apps`);import osfrom squarecloud import SquareCloudwith SquareCloud(os.environ["SQUARECLOUD_API_KEY"]) as client: me = client.account.me() print(f"Hi {me['user']['name']}, you have {len(me['applications'])} apps")package mainimport ( "context" "fmt" "log" "os" "github.com/squarecloudofc/sdk-api-go/v3")func main() { c := squarecloud.New(os.Getenv("SQUARECLOUD_API_KEY")) me, err := c.Account.Me(context.Background()) if err != nil { log.Fatal(err) } fmt.Printf("Hi %s, you have %d apps\n", me.User.Name, len(me.Applications))}The JavaScript, Python and Go SDKs cover every operation in the API reference, checked against its OpenAPI spec on every CI run. The method names below are in JavaScript; Python uses snake_case and Go uses PascalCase.
Read the status of one application or all of them, start, stop and restart, and fetch logs and CPU, RAM and network metrics.
apps.statusAllapps.restartapps.logsapps.metrics
Create an application from a zip, commit new files to it, link a GitHub repository and branch or set a webhook, and list past deploys.
apps.createapps.commitdeploys.linkGithubApp
List, read, write, move and delete your application's files, and get, set or replace its environment variables.
files.writefiles.readenvs.set
Follow an application's logs and status as they happen, as an iterator you loop over. A dropped connection reopens on its own.
apps.realtime
Create, list and restore snapshots of applications and databases, and download a snapshot file as a stream.
snapshots.createsnapshots.restoredownloadSnapshot
Set a custom domain, read its DNS records, purge the cache and query analytics, errors and performance for a time window.
network.setDomainnetwork.purgeCachenetwork.analytics
Create MongoDB, PostgreSQL, MySQL and Redis databases, change their RAM, read their status and reset a password or certificate.
databases.createdatabases.resetCredentials
Create workspaces, add members with an invite code, change their group and share applications with your team.
workspaces.members.addworkspaces.apps.add
Send an OpenAI-compatible chat request to the Square Cloud AI Gateway with the same client and the same key.
ai.chat
@squarecloud/blob is the SDK for Blob Storage: uploads, private files, share links, folder rules and the S3-compatible gateway, on Node.js and in the browser. See Blob Storage
Pass a file path, a Blob or bytes. Large files go up in parallel parts, up to 10 GiB, streamed from disk.
putlist
A private file has no public URL. Create a download link that expires, or a share link you can revoke anytime.
downloadUrlshares.createshares.revoke
Your server creates a short-lived upload token and the browser uploads with it, so the API key never leaves your server.
uploadTokens.create
Each SDK uses only its language's standard library or the platform's fetch, so it adds nothing else to your lockfile.
Every API, network and local failure throws the same error class, with the HTTP status and the API's error code.
A 30-second timeout per attempt, and retries only for failures that are safe to repeat, never for a 429.
A key can be limited to some permissions and to specific applications or databases. Lists return only what it can see.
The same API key and the same SQUARECLOUD_API_KEY variable work in the terminal, in CI, in your editor and in your code.
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.
Take the idea off localhost and put it online.
FromR$12.49/mo≈ $2.25
Production with databases, your own domain and a team.
FromR$44.99/mo≈ $8.10
More memory, daily snapshots and visibility into what runs.
FromR$124.99/mo≈ $22.50
Large operations, with a private Discord channel.
FromR$299.90/mo≈ $53.98
| Hobby | Standard | Pro | Enterprise | |
|---|---|---|---|---|
| Compute | ||||
| RAM | 1 GB → 2 GB | 4 GB → 8 GB | 12 GB → 24 GB | 32 GB → 1 TB |
| vCPU | 1 → 2 | 4 | 6 → 12 | 16 |
| Platform | ||||
| Real-time metrics | Included | Included | Included | Included |
| Blob Storage | Included | Included | Included | Included |
| One-click rollback | Included | Included | Included | Included |
| Square Shield anti-DDoS | Included | Included | Included | Included |
| Cubic AI agent | Included | Included | Included | Included |
| Databases | Not included | Included | Included | Included |
| Custom domain | Not included | Included | Included | Included |
| Load balancerapps per domain | Not included | 2 | 5 | 10 |
| AI Gateway | Not included | Included | Included | Included |
| Daily application snapshots | Not included | Not included | Included | Included |
| Performance analytics | Not included | Not included | Included | Included |
| Cubic Pro and routines | Not included | Not included | Included | Included |
| Team and support | ||||
| Workspacesmembers per workspace | Not included | 3 → 7 | 10 → 20 | 20 → 50 |
| Priority support | Not included | Not included | Included | Included |
| Private Discord channel | Not included | Not included | Not included | Included |
4.9 out of 5
482 reviews on Google and Trustpilot
Hosted in a partner datacenter with certifications
JavaScript and TypeScript (@squarecloud/api), Python (squarecloud-api) and Go (github.com/squarecloudofc/sdk-api-go). Blob Storage has its own JavaScript SDK, @squarecloud/blob. All four are open source on GitHub.
Yes. The JavaScript, Python and Go SDKs cover every operation in the Square Cloud API reference, plus snapshot downloads, and are checked against its OpenAPI spec on every CI run. Blob Storage and its S3-compatible gateway are covered by @squarecloud/blob.
The SDKs are open source packages. The API they call is included in every Square Cloud plan, starting at Hobby, and the number of requests per minute depends on the plan.
In the SQUARECLOUD_API_KEY environment variable, never in your source code. Give each key only the permissions and resources it needs, and revoke it in your account's security settings if it leaks.
The API SDKs are meant for servers: Node.js, Deno, Bun, edge runtimes, Python and Go. In a browser the API key would be exposed. For uploads from a browser, @squarecloud/blob uses a short-lived upload token created by your server.
The current versions are rewrites: methods live on the client, responses are plain data with the API's own field names, and every failure has one error type. Each SDK's documentation has a migration guide from the previous major version.
Use an SDK when the call lives in your code, like a bot command that restarts an application or a script that takes a snapshot. Use the CLI in the terminal, and the GitHub Action to deploy on every push.