Skip to content
For agents
Browse guides

Deploy a private app

Give a website, API or internal tool an HTTPS address and share it with the people who need it.

Open Markdown

Run your app on your workspace’s compute and give it an HTTPS address your team can open. You can deploy from your computer or from a coding agent’s terminal. Once the app is live, you can close that terminal or stop the sandbox where you built it.

Before you start

Sign in to the CLI and check Settings → Workspace → Compute for an attached worker. You need builder access to create an app, or Can deploy to update an existing one.

1. Create the app

If the app already exists, use its ID and skip this step. Otherwise, open Services → New → App and choose a project, or run these commands in your terminal. Replace the names with your own.

Shell
smolcloud project "Internal tools"
smolcloud app PROJECT_ID "Team portal"

Use the first command only if you need a new project. Copy its id into the app command in place of PROJECT_ID. The second command returns the id to use wherever this guide says APP_ID.

2. Prepare the source

Use the folder that contains your app. For a web server, listen on 0.0.0.0 and read the port from PORT. The health path you set in Configuration must return HTTP 200. Keep secrets in the backend’s runtime environment.

If you need a starting point, smolcloud templates lists the available starters. For example, smolcloud init nextjs ./my-app creates a Next.js project in a new folder. Smolcloud can detect and build your stack, use your root Dockerfile, deploy a prebuilt image, or deploy from GitHub.

3. Add data, if the app needs it

An app that serves its own code and assets can go straight to deployment. If it needs PostgreSQL or file storage, connect the database or bucket before deploying so the backend receives its connection settings. Connect a database or bucket.

For resources that need workspace approval, put innie-resources.json at the source root. During deployment, Smolcloud waits for a decision before starting the build. Run smolcloud capabilities APP_ID from an app administrator’s profile to check what the app can use. Request app resources. For external services, see outbound HTTPS and agent networking.

4. Deploy

From the root of your app’s source folder, run:

Shell
smolcloud deploy APP_ID .

Wait for the CLI to report the app is live, then open its HTTPS address. To publish an update, run the same command with the changed source. Smolcloud checks the new revision’s health before switching traffic.

What you seeWhat to do
Awaiting approvalOpen the app’s Deployments tab to see which resources need approval.
Build failedRead smolcloud logs DEPLOYMENT_ID build. Fix the source and deploy again.
Built, but failed its health checkRead smolcloud logs DEPLOYMENT_ID runtime. Check the listening address, port and health path.
The CLI disconnectedRun smolcloud status APP_ID to find the deployment ID, then smolcloud resume APP_ID DEPLOYMENT_ID to follow the existing deployment.

If an update introduces a bug, you can roll back the code. Database rows and bucket files keep their current values.

5. Open the app

Open the app’s address in your browser and sign in as someone with Can use. For an automated check, use a named agent’s CLI profile and grant that agent Can use. From that profile, request a path the app serves. For an app with a home page, run:

Shell
smolcloud request APP_ID /

The app receives the verified caller in X-Innie-User-Id and X-Innie-User-Kind. Use that identity in your backend to decide which records each person can see or change. App permissions and authenticated requests.

6. Share it

Open Share on the app. With Private, grant Can use to the people or groups who need it. Choose Organisation if every signed-in member should be able to open it, including future members. Agents need their own access in either mode.

Send the app’s HTTPS address to a colleague and have them open it under their own sign-in. They only need access to use the app. You can grant Can deploy separately to someone who publishes updates.

Read deployment results from an agent

Add --result v1 to the deploy command when a script or coding agent needs JSON. For example, use smolcloud deploy APP_ID . --result v1 when submitting. Save the deployment ID from operation_id. Check for status: "succeeded" before sharing the link. If the run is still building or needs approval, inspect next_actions. Both resume and inspect accept the same output flag.