---
title: Needle Cloud
description: 'Needle Cloud is an online service. It helps you store, manage, and share 3D assets and apps on the web.
 A variety of file formats are supported, including glTF, USD, FBX, VRM, and more. Spatial web apps made with Needle can be deployed to the cloud directly from the Unity integration, and via command line (CLI).'
---

<br/>
<discountbanner/>


# Needle Cloud

## Overview

**Needle Cloud is the official hosting and optimization platform for Needle Engine**—a core part of Needle Services. Store, manage, and share 3D assets and apps on the web. Deploy spatial web apps, optimize 3D files, and collaborate with your team—all from one platform.

:::tip Quick Links
**Get Started:** [Create a free account](https://cloud.needle.tools)

**Deploy Apps:** [From Unity](#deploy-from-unity) • [From Blender](#deploy-from-blender) • [From CLI](#deploy-from-the-cli)

**Manage Assets:** [Upload 3D Assets](#cloud-assets) • [Supported Formats](#supported-3d-formats)

**Ask AI:** [Needle Cloud AI](#needle-cloud-ai)
:::

![Needle Cloud Overview](/cloud/cloud-overview-page.webp)

## Why Use Needle Cloud?

Needle Cloud offers significant advantages over traditional hosting solutions like FTP, self-hosting, or generic cloud storage.

### vs. Self-Hosting / FTP

| Feature | Needle Cloud | Self-Hosting / FTP |
| --- | --- | --- |
| **Global CDN** | ✅ Instant worldwide delivery | ❌ Single server location, slow for distant users |
| **Automatic Optimization** | ✅ Draco, KTX2, Progressive Loading | ❌ Manual optimization required |
| **Version Control** | ✅ Built-in with labeled versions | ❌ Manual file management |
| **Preview URLs** | ✅ Each upload gets unique URL | ❌ Must manage URLs manually |
| **Deploy from Editor** | ✅ One-click from Unity and Blender | ❌ Manual export and upload |
| **Deploy from GitHub** | ✅ [Official GitHub Action](https://github.com/marketplace/actions/deploy-to-needle-cloud) | ❌ Custom CI/CD scripts required |
| **3D Asset Viewer** | ✅ Customizable without code | ❌ Build and host your own viewer |
| **Password Protection** | ✅ Built-in per-project | ❌ Server configuration required |
| **Setup Time** | ✅ Minutes | ❌ Hours or days |
| **Maintenance** | ✅ Zero—we handle it | ❌ Ongoing server management |

### Key Benefits

**🌍 Global CDN Performance**  
Your apps and assets are served from servers closest to your users worldwide. No need to configure or pay for CDN separately—it's included.

**⚡ Automatic Optimization**  
Upload any format (glTF, USD, FBX, VRM) and get automatic compression with Draco, KTX2, and Progressive Loading. Saves ~90% bandwidth and memory compared to unoptimized files.

**🏷️ Version Control & Preview URLs**  
Every upload gets a unique URL. Label versions as `main`, `experimental`, or `dev`. Share a labeled link once—it auto-updates when you move the label. Perfect for client reviews.

**🚀 Deploy from Anywhere**  
One-click from Unity, command-line from any web project, or automated via GitHub Actions. No manual FTP uploads or SSH commands.

**🔒 Built-in Security**  
Password-protect projects with one click. Role-based access control for teams. Private by default—not a marketplace or social network.

**👥 Team Collaboration**  
Multiple team members can deploy and manage assets. Role-based permissions (Owner, Manager, Member, Billing) ensure the right access levels.

**🤖 CI/CD Ready**  
Deploy automatically on every commit with GitHub Actions integration or custom CI/CD pipelines via the CLI.

:::tip Perfect for Agencies & Studios
Needle Cloud is designed for professional workflows. Spend time creating, not managing servers and build pipelines.
:::


## <logo-header logo="/imgs/unity-logo.webp" alt="Unity">Deploy from Unity</logo-header>

Needle Cloud is integrated into the Unity Editor. This allows you to deploy your apps directly from Unity to Needle Cloud. You can also upload and download assets from Needle Cloud directly in Unity.

1. **Install the Unity integration, if you haven't already.**   
   See [this page](./../unity/) for more info.

2. **Add the `Needle Engine` component (formerly ExportInfo) to your scene.**   
   This component is used to configure the export settings for your app.  
   You can use the menu item `GameObject > Needle Engine > Add Export Info` or create a new scene from a Needle template via the menu item `File > New Scene`.

3. **Click on `Upload to Needle Cloud`.**  
   This will build your app, and upload it to Needle Cloud. You can also choose to deploy to a specific team and project. The _upload name_ of the project, visible next to the button, is saved in the scene. Future uploads will use the same upload name, and all uploaded versions will be grouped together on the Needle Cloud website.

   ![Needle Cloud Unity Integration](/cloud/cloud-deploy-v3.webp)

## <logo-header logo="/blender/logo.png" alt="Blender">Deploy from Blender</logo-header>

Needle Cloud is integrated into Blender. This allows you to deploy your apps directly from Blender to Needle Cloud.

1. **Install the Blender integration, if you haven't already.**  
   See [this page](./../blender/) for more info.

2. **Find the `Needle Engine` panel in the scene tab.**  
   This panel is used to configure the export settings for your web project and app.

3. **Click on `Upload to Needle Cloud`.**  
   This will build your app, and upload it to Needle Cloud.

   ![Needle Cloud Blender Integration](/blender/blender-deploy-to-needle-cloud.webp)

:::tip Publish a single 3D asset instead
To publish just your scene as an optimized 3D asset — no web project required — use `File > Export > Upload glTF to Needle Cloud` in Blender. [Learn more →](/docs/blender/upload-to-needle-cloud)
:::

## <logo-header logo="/imgs/needle-logo.webp" alt="Needle Cloud">Deploy from the CLI</logo-header>

Deploy to Needle Cloud from the command line—perfect for web projects, automation, and CI/CD pipelines.

**Prerequisites:** [Node.js](https://nodejs.org/) installed on your machine. Check with `node -v` in your terminal.

### Basic Usage

**Option 1: npx (Recommended)**

No installation needed—use `npx` to run the CLI directly:

```bash
npx needle-cloud deploy '/dist' --team 'My team' --name 'some-project-id'
```

**Option 2: Global Installation**

Install once, use everywhere:

```bash
npm install -g needle-cloud
needle-cloud deploy '/dist' --team 'My team' --name 'some-project-id'
```

The `--team` option accepts either the **team name** (case-insensitive) or the **team ID**. You can find both on your [Needle Cloud team page](https://cloud.needle.tools/team). If `--team` is not provided, your Needle Cloud **default team** is used.

### Deploy with optimized models

`needle-cloud deploy ./dist` uploads your existing build output. Choose how to
optimize the models before deploying:

**Needle Engine project:** With `needlePlugins()` configured and the build pipeline
enabled, make your team's read/write Cloud access token available to the build
process as `NEEDLE_CLOUD_TOKEN`, then run:

```bash
npx vite build -- --production
npx needle-cloud deploy ./dist --non-interactive
```

The plugin sends models from the build's `assets` directory to Cloud, waits for
optimization, and copies the results into your build output. Those optimized files
are deployed with your website. Plain `vite build` skips this production step;
check the build log for completed compression. See [Vite build configuration](/docs/reference/needle-vite-plugin#build-pipeline).

**Standalone models:** Upload and optimize a model, then reference its returned
`optimizedUrl` in your application:

```bash
npx needle-cloud upload ./model.glb --wait --non-interactive --output json
```

Use Needle Engine or [gltf-progressive](/docs/gltf-progressive/) for progressive
output, or select `--progressive false` for a loader without progressive support.
Add `--outdir ./optimized` to download the result for bundling instead.
See [CLI asset options](/docs/cloud/#cli-for-batch-processing).

### <logo-header logo="/imgs/github-logo.webp" alt="GitHub">CI/CD & Automated Deployments</logo-header>

Deploy automatically from GitHub Actions, GitLab CI, or other CI/CD platforms using access tokens.

**Create an Access Token:**
1. Go to [your team page](https://cloud.needle.tools/team) on Needle Cloud
2. Create a token with `read/write` permissions
3. Add it as a secret in your CI/CD platform

**GitHub Actions Example:**

Use the official [Needle Cloud GitHub Action](https://github.com/marketplace/actions/deploy-to-needle-cloud):

```yml
- name: Deploy to Needle Cloud
  uses: needle-tools/deploy-to-needle-cloud-action@v1
  with:
    token: ${{ secrets.NEEDLE_CLOUD_TOKEN }}
    dir: ./dist
    name: my-project
```

**CLI Command with Token:**

```bash
npx needle-cloud deploy '/path/to/output' \
  --team 'My team' \
  --name 'project-id' \
  --token '<access_token>'
```

### Starting the Needle License Server

When building outside of Unity or Blender — for example in standalone web projects, CI/CD systems, or automated builds — you need to start the Needle license server to validate your Needle Engine PRO license:

```bash
npx --yes needle-cloud start-server
```

You can also use `npx --yes needle-cloud start` as a shorthand. Run this command before your build (e.g. `npm run build`). The license server runs in the background and validates your license during the build process.

**Authentication:**

You must be authenticated so the license server can find your PRO license. There are two options:

1. **Log in interactively** (local development):
   ```bash
   npx needle-cloud login
   ```
   This opens a browser to authenticate with your Needle account. Make sure to select the **team that has the PRO license** — selecting the wrong team will result in a BASIC license.

2. **Use an access token** (CI/CD and automated environments):
   Set the `NEEDLE_CLOUD_TOKEN` environment variable with a token created on your [Needle Cloud team page](https://cloud.needle.tools/team). The token must have `read/write` permissions and belong to the team that owns the PRO license.
   ```bash
   export NEEDLE_CLOUD_TOKEN=your_token_here
   npx --yes needle-cloud start-server
   ```

::: tip Troubleshooting
If the license server reports a **BASIC** license instead of PRO, the most common cause is being logged in to the wrong team. Run `npx needle-cloud me` to check your current account and team, then `npx needle-cloud login` to switch to the team with the PRO license.
:::

See also: [FAQ — How do I activate my license in a standalone web project or CI/CD?](/docs/reference/faq#how-do-i-activate-my-license-in-a-standalone-web-project-or-ci-cd)

### Getting Help

```bash
# See all available commands
npx needle-cloud help

# Get help for a specific command
npx needle-cloud help deploy
```

[📦 Full CLI documentation on npm](https://www.npmjs.com/package/needle-cloud)


## Deployment URLs & Version Management

Needle Cloud gives you powerful URL-based version control for your deployments. Every upload creates a permanent URL, and you can use labels to manage which version users see.

### Two Types of URLs

**1. Pinned URLs** – Link to exactly one version (never changes)

Each deployment gets a unique, permanent URL that always points to that specific version:

- [collaborativesandbox-zubcks1qdkhy<strong>-1qdkhy</strong>.needle.run](https://collaborativesandbox-zubcks1qdkhy-1qdkhy.needle.run/) → Version 1
- [collaborativesandbox-zubcks1qdkhy<strong>-2e2spt</strong>.needle.run](https://collaborativesandbox-zubcks1qdkhy-2e2spt.needle.run/) → Version 2

These URLs never change, even when you upload new versions. Perfect for archiving or testing specific builds.

**2. Labeled URLs** – Dynamic links that update when you move the label

Labels are pointers you can move between versions. Share the labeled URL once, then update what it points to:

| Label URL | Purpose | Updates When |
| --- | --- | --- |
| `projectname-`**`latest`**`.needle.run` | Always shows newest upload | Automatically on every new upload |
| `projectname.needle.run` (or `-`**`main`**) | Production/stable version | You manually promote a version to `main` |

### Typical Workflow

1. **Deploy a new version** → Gets pinned URL like `project-abc123.needle.run`
2. **`latest` label auto-updates** → Your team sees it at `project-latest.needle.run`
3. **Review and test** → Share the pinned URL or `latest` with your team
4. **Promote to `main`** → Move the `main` label to this version
5. **Clients see the update** → `project.needle.run` now shows the new version

:::tip Why This Matters
- **Client links never break** – Share `project.needle.run` once, update behind the scenes
- **No more "v2 link"** – Labels let you update what users see without new URLs
- **Safe rollbacks** – Move the `main` label back to a previous version instantly
- **Preview specific builds** – Send pinned URLs for exact version testing
:::

### Managing Labels

On the Needle Cloud website, click <kbd>⋮</kbd> next to any version to move labels:
- **Set main label** – Promote this version to production
- **Remove main label** – Unpromote (label stays on previous version)

You can also manage labels from the CLI (Needle Cloud CLI 2.10 or later):

```bash
# Inspect labels, version IDs and their output URLs
npx needle-cloud label list <content-id> --team "My Team"

# Promote the version currently targeted by latest
npx needle-cloud label set <content-id> main --from latest

# Roll back to a completed older version
npx needle-cloud label set <content-id> main --version <version-id>

# Create or move a custom label
npx needle-cloud label set <content-id> staging --from latest --format json
```

Provide exactly one of `--version` or `--from`. The version must belong to the
content item and have completed processing. Related completed outputs move with
the label. `latest` is automatic: use it as a source, but choose another label as
the destination. Custom label names use lowercase letters, numbers, hyphens or
underscores, such as `staging`, `beta`, or `client-preview`.

Use the content and version IDs returned by upload, or shown by `list` and
`label list`. Authentication accepts a saved login, `--token`, or
`NEEDLE_CLOUD_TOKEN`; use `--team` to select a team. Listing requires read access;
setting also requires write access.

Both commands support `--format json`, with diagnostics on stderr. Listing returns
labels with source version IDs and all source/derived output URLs. Setting returns
the selected version, observed previous versions and confirmed output URLs. These
are snapshots; concurrent label changes are not locked. If an update is accepted
but cannot be confirmed, the command reports that and exits nonzero.

### Update a label during deployment

The CLI and the official [Deploy to Needle Cloud GitHub Action](https://github.com/marketplace/actions/deploy-to-needle-cloud)
can create or move `main` as part of a deployment. Use `--label main` with the CLI:

```bash
npx needle-cloud deploy ./dist --name my-project --label main
```

Or add `label: main` to your GitHub Action step, after building your website:

```yml
- uses: needle-tools/deploy-to-needle-cloud-action@v1
  with:
    token: ${{ secrets.NEEDLE_CLOUD_TOKEN }}
    dir: ./dist
    name: my-project
    label: main
```

Each successful deployment with this option moves `main` to the **exact version just
deployed**. Your `main` URL and any [custom domains](/docs/cloud/custom-domains#which-version-does-my-domain-serve)
following it then serve that version automatically. You do not need a separate manual
promotion step. Omit the option when you want to review a deployment before moving `main`.

Use an access token with **read and write permissions** (for example, through
`NEEDLE_CLOUD_TOKEN` for the CLI). If you pin an older CLI release, make sure it supports
`deploy --label`; the Action's `overrideVersion` input selects its CLI version.
`latest` remains automatic and cannot be passed as the label to set. If uploading
succeeds but assigning the label fails, the command reports a failure; the uploaded
version still exists.

![Needle Cloud Version List](/cloud/cloud-edit-page.webp)

## Custom Domains

Serve your deployment on your own address — like `www.yourdomain.com` or `viewer.yourdomain.com` — instead of the default `project.needle.run` URL. You add a couple of DNS records at your provider, and Needle Cloud issues and renews a TLS certificate automatically. No server setup, no certificate management.

Custom domains are a [Pro plan](https://needle.tools/pricing) feature.

[Set up a custom domain →](/docs/cloud/custom-domains)

## Securing Pages

The Needle Cloud dashboard allows you to password-protect your pages and assets to ensure data remains confidential until a product's release. This is particularly useful when collaborating with clients.

<video-embed src="https://www.youtube.com/watch?v=6JsC9TruZQY" limit_height />

### How to Set a Password

1. Navigate to the project you wish to protect.
2. Click on "edit info".
3. Locate the password section.
4. Enter the desired password.
5. Click on "save changes".

A small lock icon 🔒 will now appear next to the project name, indicating that the pages are protected.

### How to Remove the Password Protection

If you wish to make the pages public under the same URL, you must remove the password protection.

1. Navigate back to the project's "edit info"
2. Remove the existing password.
3. Save the changes.

The pages will now be accessible again without requiring a password.

### Accessing Protected Pages

When a user attempts to access the latest version of the asset, they will be greeted with a page that asks for authentication. They must enter the correct password to access the content.

:::important
All pages for this asset will be password-protected, including the main one.
:::


## Cloud Assets

Needle Cloud is not just for hosting apps—it's a powerful asset management system for 3D files.

### Upload & Optimize

**Drag and drop** files into the website or select them from your computer. Supported formats include glTF, USD, FBX, VRM, OBJ, and more. From Blender, you can also [upload your scene as a glTF asset directly](/docs/blender/upload-to-needle-cloud) via `File > Export > Upload glTF to Needle Cloud`.

- Non-glTF files are automatically converted to glTF for optimization
- Original files are kept for download
- Modern mesh and texture optimization, including Draco/Meshopt and KTX2, based on the supplied models and processing settings
- Progressive mesh and texture LODs where applicable
- Typically saves 90% or more bandwidth and memory

Cloud optimizes meshes and textures based on your models and processing settings.
Compression and progressive loading are separate: a texture can be compressed
without receiving progressive LODs. See [progressive texture support](/docs/gltf-progressive/#supported-texture-maps).

:::tip Environment textures (HDRi / EXR → FastHDR)
You can also upload `.hdr` and `.exr` environment textures to Needle Cloud to compress them to **[FastHDR](/docs/explanation/fasthdr)** — Needle's GPU-native environment map format (KTX2 UASTC HDR with pre-computed PMREM). FastHDR loads ~10x faster than EXR and uses ~95% less GPU memory, which is ideal for mobile and low-end devices. This is useful for standalone `.hdr`/`.exr` files that aren't part of a Unity or Blender scene (those are converted to FastHDR automatically at build time). Browse 27+ ready-made FastHDR environments in the [Needle HDR Library](https://cloud.needle.tools/hdris).
:::

### Version Control & Sharing

**Track multiple versions** of each asset:
- Upload new versions anytime
- Label versions as `main`, `experimental`, `dev`, etc.
- `Latest` always points to the most recent upload
- Share tagged links that auto-update when you move labels

**Share with your team:**
- Create direct download links
- Share Needle Cloud viewer links
- Password-protect sensitive assets

### Use Assets in Your Projects

**In Needle Engine:**

Use the `Needle Cloud Asset` component to load assets at runtime. Keeps project sizes small and enables cloud updates.

:::tip Progressive Loading
Cloud assets automatically load only what's needed using our Progressive Loading technology. This saves ~90% bandwidth and memory compared to loading full assets. See [gltf-progressive](/docs/gltf-progressive/) for details on using progressive loading in any three.js project.
:::

**In Other Engines (Unity, Unreal, etc.):**

Three ways to use cloud assets:

1. **Download and Import** – Standard workflow
2. **Direct Link** – Link to cloud asset for automatic updates
   - Progressive Loading: Use `Progressive-World` or `Progressive-Product` link ([learn more](/docs/gltf-progressive/))
   - Draco + KTX2: Use `Optimized` link
   - Basic glTF: Use `Upload` or `Converted` link
3. **Needle Cloud Asset Component** – For Needle Engine projects (works in Unity builds too)

### Embed on Your Website

**Option 1: Needle Cloud Viewer** (Quick embed)

Go to asset's Edit Page → <kbd>Embed</kbd> → Copy iframe code. Embed specific versions or tagged versions that auto-update.

**Option 2: Choose Your Framework**

Get optimized embed code for:
- **Needle Engine** – Full-featured [web component](./../three/)
- **three.js** – With Progressive Loading support
- **React-Three-Fiber** – With Progressive Loading support
- **model-viewer** – Simple, non-interactive 3D viewer
- **Unity** – Needle Cloud Asset component for direct integration

### CLI for Batch Processing

Use `upload` to store a source asset and get its links as soon as the upload
finishes. Optimization runs in the background. Use `upload --wait` when the next
build step needs the optimized result; `optimize` is shorthand for that waiting
workflow and accepts the same optimization and download options.

**Safe to repeat:** Cloud checks file content hashes before transferring data.
Unchanged files already stored in the same team are reused, as are matching stored
optimization results. Repeating the command avoids redundant file transfers and
compression. Changed files or processing settings, or results no longer available
in Cloud, can require uploading or processing again. Use `--name <identifier>` to
keep updating the same asset.

```bash
# Upload the source without waiting for background processing
npx needle-cloud upload path/to/model.glb --team 'My Team'

# Wait for optimization and download the result
npx needle-cloud upload path/to/model.glb --wait --outdir ./optimized

# Existing optimize commands continue to work
npx needle-cloud optimize path/to/model.glb --outdir ./optimized

# Upload a folder as one group and return its source-file links
npx needle-cloud upload path/to/folder --format json
```

Folders are collected recursively without a `--recursive` flag. Supported model
files are grouped into one upload, rather than creating a separate asset for each
file. Use `--no-optimize` to upload without requesting processing. It cannot be
combined with `--wait`.

When waiting, select the optimized variant with `--progressive true|false` and
`--usecase product|world`. These options and `--outdir` require `--wait` on `upload`;
`optimize` always waits.

**Output for scripts**

```bash
# Print only the URL for this exact uploaded source file
npx needle-cloud upload path/to/model.glb --format source-url

# Print only the asset's management-page URL
npx needle-cloud upload path/to/model.glb --format edit-url

# Return identity, source links and processing status as JSON
npx needle-cloud upload path/to/model.glb --format json
```

Both commands support `--format cli` (default), `json`, `source-url` and
`edit-url`. Progress and diagnostics, including verbose output, go to stderr.
Stdout contains only the selected result; failures return a nonzero exit code.

| JSON field | Meaning |
| --- | --- |
| `assetId` | The asset containing this upload. |
| `versionId` | The uploaded source version; it stays the same after optimization. |
| `editUrl` | Open the asset's management page. |
| `sourceUrl` | Retrieve the exact uploaded source file; null for a multi-file upload. |
| `optimizedUrl` | Retrieve the selected optimized version after waiting; otherwise null. |
| `processingStatus` | `unknown` without waiting, `not_requested` with `--no-optimize`, or `completed` after the requested optimization finishes. |
| `files` | Uploaded file paths and their pinned source URLs. |
| `optimization` | When awaited: the optimized version ID, progressive setting and use case. |

Source URLs identify a specific upload, so a later upload or optimization does not
replace the file they return. For fixtures that need the original input, use
`sourceUrl` or `files[].sourceUrl`; optimized links are reported separately.

For multiple files, use `--format json`. `source-url` refuses an ambiguous
multi-file result before uploading; `edit-url` returns the group's management URL.
Without waiting, processing is not queried. `not_requested` applies to this command
and does not cancel jobs from previous uploads. `completed` applies to the selected
optimization variant, rather than every background processing job.

Use `--team` with your saved login, or provide a team's access token with `--token`
or the `NEEDLE_CLOUD_TOKEN` environment variable for CI. Access tokens retain their
team scope.

[📦 Full CLI documentation](https://www.npmjs.com/package/needle-cloud)

## Team Webhooks

Send team notifications to **Slack, Discord, Microsoft Teams, or a REST endpoint** when deployments, 3D model uploads, or payments need your attention.

:::details Set up webhook notifications
1. Open your [Needle Cloud team page](https://cloud.needle.tools/team) as a team admin.
2. Under **Webhooks**, click **Add webhook** and paste your destination's webhook URL.
3. Choose which events to receive: **Deployment succeeded**, **Deployment failed**, **3D model upload succeeded**, **Payment upcoming**, or **Payment failed**.
4. Save the webhook, then use **Test** to check the connection.

You can edit, pause, or delete webhooks from the same panel and check the last delivery result. For REST endpoints, open **Payload & verification** in the webhook editor for the JSON format and signature verification details.
:::

:::details Delivery formats

**Slack, Discord & Microsoft Teams**

Needle Cloud detects the format from your webhook URL and sends a formatted chat message. Deployment notifications include:

- Project name and deployment link
- Who deployed it, the team, and file size, when available
- Links to edit the project and open the CI job, when available

**REST endpoints**

Your endpoint receives an HTTP `POST` with a JSON body:

| Field | Contains |
| --- | --- |
| `id` | Delivery identifier |
| `event` | Event name, such as `deployment.succeeded` |
| `created_at` | Time the event occurred |
| `org` | Team identifier and name |
| `data` | Details specific to the event |

Open **Payload & verification** in the webhook editor for examples. Return a `2xx` response to acknowledge receipt.
:::

:::details Signing secrets & verification (REST endpoints)

**What is a signing secret?**

A signing secret is a private key shared between Needle Cloud and your server. It lets your server check who signed a webhook and whether its body has changed. It does not encrypt the message or grant API access.

**Set up verification**

1. Copy the **Signing secret** from the webhook editor and store it securely on your server.
2. Calculate **HMAC-SHA256** over the incoming **raw request body bytes**, using the secret as the key.
3. Encode the result as lowercase hexadecimal and add the prefix `sha256=`.
4. Compare it with the **`X-Needle-Signature`** header using a constant-time comparison. Reject missing or mismatched signatures before processing the event.

**Keep in mind**

- Verify the raw body before parsing JSON. Reformatting the JSON changes the bytes and breaks verification.
- Keep the secret out of browser code and public repositories.
- Slack, Discord, and Teams do not need this verification step. Keep their webhook URLs private because those URLs contain credentials.
:::

## Needle Cloud AI

[Needle Cloud AI](https://cloud.needle.tools/team#ai) answers questions about Needle Engine using the Needle documentation and community knowledge base. Chats are private to your team.

The Unity and Blender integrations automatically register your web project with the local [Needle MCP Server](/docs/ai/needle-mcp-server#built-in-tools), provided by the `needle-cloud` CLI. Needle Cloud AI can then find your project files and logs without you entering a project path or attaching files. Ask it to explain your code, search project files, or read logs to help debug an issue. You can enable or disable local project access in a chat.

See [AI & Needle Engine](/docs/ai/) for more ways to use AI with your projects.

Need more AI usage? [Top up AI credits](/docs/cloud/ai-credits) to keep chatting. Purchased credits are valid for 365 days and carry across monthly allowance resets until they expire.

## Cloud REST API

For programmatic uploads and asset management, use the [Cloud REST API reference](https://cloud.needle.tools/api/docs)
or [download its OpenAPI document](https://cloud.needle.tools/api/openapi.json).
It documents upload registration and file transfer, metadata updates, moving content
to Trash, and restoring it, including authentication, request bodies and examples.
The [Needle Engine API](/docs/api/latest) describes the engine runtime and is a
separate reference.

## needle-cloud CLI

See the [CLI reference](/docs/cloud/cli) for command behavior, automation, content
management, local AI tools, and browser SDK notes.

The `needle-cloud` CLI lets you work with Needle Cloud from the terminal — ideal for automation and CI/CD. Deploying apps and uploading assets are covered above ([Deploy from the CLI](#deploy-from-the-cli), [CLI for Batch Processing](#cli-for-batch-processing)). It can also generate materials with AI.

```bash
# See all available commands
npx needle-cloud help
```

[📦 Full CLI documentation](https://www.npmjs.com/package/needle-cloud)

### Generate Materials with AI

:::warning Preview feature
AI material generation is a **preview feature** — the command and options may change. Feedback welcome!
:::

Generate a ready-to-use PBR material from a text prompt. Pass `--outdir` to download the result, otherwise the material identifier is printed.

```bash
npx needle-cloud generate-material "weathered copper with green patina" --outdir ./materials
```

:::details Options & example
| Option | Description |
| --- | --- |
| `--resolution <res>` | Texture resolution: `256`, `512`, `1k`, `2k`, or `4k` (default `512`). |
| `--outdir <dir>` | Folder to download the generated file(s) into. If omitted, the identifier is printed. |
| `--name <name>` | Output filename for the downloaded material. |
| `--team <team>` | Team name or ID to generate under. Defaults to your default team. |
| `--token <token>` | Access token for authentication (useful in CI/CD). |

```bash
npx needle-cloud generate-material "brushed stainless steel" \
  --resolution 2k --outdir ./assets/materials --name steel
```

AI material generation requires a **PRO** license and consumes credits from your plan's quota. If you run out, the command stops with a message — review or upgrade on your [team page](https://cloud.needle.tools/team).
:::

The CLI can also bundle your recent logs for a bug report — see [Send logs for support](/docs/how-to-guides/debugging#send-logs-for-support) in the debugging guide.

## Supported 3D Formats

1. **glTF and GLB** <a href="https://cloud.needle.tools/view?file=2oAMeWZ1hWL3C-latest-product" target="_blank">Example</a>   
   The glTF format is the most widely supported format for 3D on the web. It is a lightweight format that can store 3D models, animations, and textures. GLB files are binary versions of glTF files, where all data is stored in a single file.
   glTF supports advanced compression techniques like Draco, KTX2, and Meshopt, which are fully supported by Needle Cloud and Needle Engine.

2. **OpenUSD** <a href="/docs/cloud/openusd">Learn more</a>   
   USD is a powerful format for 3D data interchange. It is known for its use in the film and VFX industry, and is gaining popularity in the game industry. Needle Cloud supports USDZ and USD files natively through our work on USD-WASM, and also converts USD files to glTF for further processing and optimization. See [OpenUSD & MaterialX on Needle Cloud](/docs/cloud/openusd) for supported features and how it works.

3. **FBX**  
   FBX has been a popular format for 3D data interchange for many years, but is lacking a number of modern features like PBR materials and extensions. Needle Cloud converts FBX files to glTF for further processing and optimization.  

4. **VRM**  
   VRM is a format for humanoid avatars. It is based on glTF with additional constraints through the use of glTF extensions. Needle Cloud supports VRM files natively, and can optimize them like other glTF files, including complex VRM extensions like phonemes, toon shading and dynamic bones.

5. **OBJ**  
   OBJ is a simple text-based format for 3D models. It supports basic materials through MTL files, animations, and hierarchies of objects. Needle Cloud converts OBJ files to glTF for further processing and optimization. 

6. **STL**  
   STL is a simple, widely-used format for 3D printing and CAD. It stores plain triangle meshes without materials, textures, or scene hierarchy. Needle Cloud converts STL files to glTF for further processing and optimization.

:::tip Use glTF or USD when possible
We recommend glTF and USD as the primary formats for 3D data interchange. They are widely supported, have modern features and a good material model.
:::

:::tip Gaussian Splats — coming soon
We're actively working on **Gaussian Splatting** support. Native Gaussian Splat support is coming to **Needle Engine 6**.
:::

## RBAC (role-based access control)

Teams consist of members, and each member of a team can get assigned a role. These roles define what you can and cannot do within a team on Needle Cloud. Billing details and subscriptions or licenses can also be managed on your [Needle Cloud team page](https://cloud.needle.tools/team).

As your project scales and you add more team members, you can assign them roles to ensure that they have the right permissions to work on your projects.

| | |
| -- | -- |
| **Owner** | Highest level of authority. The owner role can manage the whole team (including billing and member roles), see all projects, uploads and deployments  |
| **Manager** | The manager role can manage the whole team (including billing and member roles), see all projects, uploads and deployments |
| **Billing** | The billing role is specialized for financial operations, can oversee the team's billing information, review and manage project cost and handle payment options. <br/>The billing role has view-only access to deployments and assets and can not perform deployments or upload assets. <br/>The billing role can be assigned at no extra cost. The role is limited to one member per team. |
| **Member** | The member role (developer role) can create deployments, upload/download assets for optimization or use AI features. |
| **Guest** | Read-only access to team projects, deployments and assets, including downloads. Guests cannot upload assets or create deployments and do not require a paid license seat. |

## FAQ

1. **What is Needle Cloud?**<br/>
   It’s an online service to upload, compress and share 3D assets and scenes.

2. **How do I upload assets to Needle Cloud?**<br/>
   You can upload files by dragging them onto the website, or by uploading them directly from supported integrations. If you have many files, you can use the CLI (command line interface) or the API (application programming interface).

3. **How do I download optimized files from Needle Cloud?**<br/>
   You can download files from the website. Click on `Share` and then `Download`. You can also use the CLI to download files.

4. **Can I share my files with others?**<br/>
   Yes, you can create links to share your files. Links can either be direct download links, or links to the Needle Cloud viewer.

5. **Is there a limit to file sizes?**<br/>
   Upload limits depend on your plan. Check your account details for more info.

6. **Can Needle Cloud files be used with other tools?**<br/>
   Yes, you can download your files as glTF for use in other programs. USD files can be uploaded and viewed, but exporting back to USD is not yet supported.

7. **What happens if I run out of storage space?**<br/>
   You might need to upgrade your plan or delete old files to make room.

8. **Do I need to be on a commercial plan to set a label on a previous deploy?**<br/>
   Yes, manually setting labels (like `main`) on a specific deployment requires a commercial license. On free plans, the `main` label is automatically assigned to the latest deployment.

9. **Does Needle Engine support Gaussian Splats?**<br/>
   Gaussian Splat support will come natively to Needle Engine 6. We're actively working on Gaussian Splatting support across Needle Engine and Needle Cloud.

9. **What is the difference between `latest` and `main`?**<br/>
   `latest` automatically updates to point to your most recent deployment every time you deploy. `main` must be manually promoted — it stays on the version you chose until you move it. Use `latest` for internal previews and `main` for stable, client-facing links.

10. **Can I password-protect my project on a free plan?**<br/>
    No, password protection requires a PRO or Enterprise license. You can upgrade at [needle.tools/pricing](https://needle.tools/pricing).

11. **Can I use custom labels like `staging` or `beta`?**<br/>
    Custom labels are not yet available. Currently you can use `main` and `latest`. Support for custom labels is planned for a future release.

12. **Can I change the billing email address for invoices?**<br/>
    Yes — see [FAQ](/docs/reference/faq#can-i-change-the-billing-email-address-for-invoices).

13. **More answers**<br/>
    Visit the [Needle Cloud FAQ](https://cloud.needle.tools/faq)
