---
title: AI Studio (workspace)
description: >-
  AI Studio is a persistent, collaborative GPU cloud workspace that feels like a
  local laptop - with AI copilots that help you debug, train, inference, and...
canonical: 'https://lightning.ai/docs/platform/build/ai-studio'
---
# AI Studio (workspace) {#ai-studio-workspace}

AI Studio is a persistent, collaborative GPU cloud workspace that feels like a local laptop - with AI copilots that help you debug, train, inference, and ship like a pro.

Use the Studio to train models, run inference, code together, build agents, AI apps and more. Visit the [environments hub](https://lightning.ai/templates) to see what over 350,000 other developers and researchers have built with Lightning Studio!

[Example of a Studio](https://assets.lightning.ai/app-2/develop-1.mp4)

## Quick Start {#quick-start}

### Create a free account {#create-a-free-account}

Click "Start free" (or [here](https://lightning.ai/sign-up)) to create a free account - **no credit card required.**

Verify your phone number to receive up to 80 free GPU hours to start. This step is required for your security. Purchase additional GPU hours as needed. ***New accounts start on our generous***  [free tier](https://lightning.ai/pricing#tiers) with features like free ssh, connect any IDE, unlimited background execution, and more ([pricing](https://lightning.ai/pricing#tiers)).

Tip: Use a work or university email for the fastest verification. Lightning AI is not available in every country.

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Overview_CreateAccount2.mp4)

Learn more about [account creation](/docs/platform/overview/faq/create-account.md).

### Add credits {#add-credits}

All users receive 5 free credits (1 credit equals $1 USD). Add a card for 25 more. To purchase additional credits, click the balance icon and add credits. Purchased credits expire 12 months from the purchase date.

Tip: Please reach out for **bulk credit discounts**.

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/TeamManagement_Organizations_ManageCosts_AddCredits.mp4)

### Start instance {#start-instance}

Start a new Studio by typing [studio.lightning.ai](https://studio.lightning.ai/) on your browser or click the "New Studio" button from the dashboard.

The Studio automatically starts on a free CPU instance. The first 4-CPU instance on any cloud is always free. We recommend you install your code, dependencies, packages while on the free CPU Studio and only switch to a GPU when you're ready to run. This will save you a LOT of money.

### Connect to instance (UI) {#connect-to-instance-ui}

Instances come with pre-packaged VSCode and JupyterLab, accessible directly from the browser ([view it here](https://studio.lightning.ai/)). We promise it is very fast and offer unique features like live collaboration and GPU metrics. Otherwise, use ssh to connect any local IDE such as VSCode, Cursor, PyCharm and more ([full guide](/docs/platform/build/ai-studio/connect-local-ide.md)).

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_ConnectLocalIDE_ConnectSSH.mp4)

### Connect to instance (SSH) {#connect-to-instance-ssh}

For experts who just need a remote ssh instance, simply click ssh at the top (read the [full guide](/docs/platform/build/ai-studio/ssh-access.md)).

Connecting to a remote instance via SSH allows you to maintain a local workflow with all changes happening on the remote instance ⚡️⚡️ - this is like Google Cloud for your code.

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_SSHAccess2.mp4)

## Key features {#key-features}

Studios differ quite a bit from just renting a GPU VM, here are some key features.

### AI copilot {#ai-copilot}

Each Studio comes prebuilt with AI copilots that we've trained to be experts on everything AI/ML... from training models, building inference engines, to debugging CUDA and expert-level PyTorch.

Choose any model or contact us to connect/deploy your own on-prem models.

![](https://storage.googleapis.com/lightning-avatars/litpages/01jrbtb477kc39shh2p653qyge/843c7182-e881-44d0-9afd-9906828b4e80.png)

### Native persistent storage {#native-persistent-storage}

Studios include persistent storage, allowing file and data downloads to remain intact even if the instance stops, without incurring costs.

For existing data, use the [Lightning Drive](/docs/platform/data/drive.md) - a shared filesystem across all Studios. The Drive enables [data uploads via the browser](/docs/platform/data/drive.md#upload-data), [SDK](/docs/platform/data/drive.md#upload-via-sdk), or [connections to S3 buckets and EFS volumes.](/docs/platform/data/drive.md#connect-s3-buckets) It also supports creating new S3 or EFS volumes directly (contact us to request early access).

Persistent storage lets you seamlessly resume work without re-downloading or prepping data again, conserving valuable GPU hours for work, not prep. Additionally, the Drive’s shared filesystem enables your team to easily share files without the need to duplicate them.

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_Drive_ConnectS3Bucket.mp4)

### Native persistent environment {#native-persistent-environment}

Studios automatically save the environment (persist). This includes installed packages (pip, conda, etc.), package builds, custom Python versions, downloaded files (via git, etc.), and more. Everything within the Studio home (`~`, `/teamspace/studios/this_studio`) is saved automatically.

Each Studio includes conda and supports only one conda environment. For additional environments, create new Studios. Persistent environments allow a Studio to be turned off to save costs and resumed later without loss of data or progress. We recommend to create one Studio per project or conda environment.

[Studios persist the environment automatically](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_EnvironmentPersistency_InstallPackages.mp4)

### Treat a Studio like your laptop {#treat-a-studio-like-your-laptop}

Now that the Studio is up and running, go ahead and do anything you’d do on your laptop. Git clone repos, download files, install packages, build Docker images, and more.

If you ever wonder, "How can I do this on a Studio?" just try the same thing you would on your laptop:

|  | Laptop | Studio |
| --- | --- | --- |
| Can I git clone? | Open terminal + git clone | Open terminal + git clone |
| Can I install XYZ package? | Open terminal + pip install | Open terminal + pip install |
| Can I build a docker image? | Open terminal + docker ps | Open terminal + docker ps |


However, the Studio unlocks new ways of working that are not possible on your laptop. Examples:

|  | Laptop | Studio |
| --- | --- | --- |
| Run code for days? | Can't close laptop | Close the Studio, code keeps running |
| Need a GPU? | Submit a job (slow iteration cycle) | Press a button and switch to a GPU |
| Scale to multi-node | Not possible | Press button, scale to N machines |
| Start from scratch | Can't throw away laptop | Delete Studio and start a new one |
| Code with others (like Google Docs) | Not possible | Press a button, share a link |
| Run a Streamlit app | Can't share it publicly | Can share with a button press |
| All installs and files are always there? | Yes | Yes |
| Start 100 jobs with same environment? | Not possible | Press button, scale to 100 copies of the Studio |
| Share a project with someone | Need git + install instructions + hours of debugging | Share a link, other person can duplicate the Studio in < 2 minutes |


### Code together {#code-together}

Studio's shared coding feature is ideal for quick collaborative tasks like peer debugging, environment setup, helping a junior peer. Remember, it doesn't replace version control. Use it for solo development and bring in others for targeted assistance or short collaborations.

Try it now! Go ahead and i**nvite someone to code with you.**

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_Collaboration_LiveCoding_Full.mp4)

Tip: This feature has cool use cases like running coding interviews on GPUs, and even helping students during classes.

### Stop instance {#stop-instance}

When Studios are idle for more than 10 minutes, they will automatically sleep. Auto-sleep massively reduces cloud costs and minimizes wasted GPU hours.

To manually stop the instance, simply press the "turn off" button on the GPU switcher.

[An example of auto sleep.](https://assets.lightning.ai/Docs_Studios_MP4/Docs_Studios_BackgroundExecution_AutoSleepCloud2.mp4)

### Connect cloud account {#connect-cloud-account}

Security-conscious teams can run Lightning Studios on private VPCs, utilizing existing cloud credits and commitments. All traffic is secure, ensuring no data leaves the VPC.

Contact us to upgrade to the [enterprise tier](https://lightning.ai/pricing#tiers) to run Lightning AI on your own VPC.

[Video (video)](https://assets.lightning.ai/Docs_Studios_MP4/Organizations_ManageOrgClusters_CreateCloud.mp4)

### Automate with SDK {#automate-with-sdk}

Everything we discussed here can be automated with our SDK.

```bash
pip install lightning-sdk

```

Here's an example pipeline that prepares data, trains a model and deploys the model. Each Studio is completely isolated from each other and self-contained. This drastically simplifies pipeline building with Studios.

```python
# login to the platform
# export LIGHTNING_USER_ID=000000-000000-000000-00000-000000000
# export LIGHTNING_API_KEY=111111-111111-111111-11111-111111111

from lightning_sdk import Machine, Studio

data_prep_studio = Studio("data_preparation")
data_prep_studio.start(Machine.DATA_PREP)

data_prep_studio.run("python prepare_data.py")
data_prep_studio.stop()

train_studio = Studio("training")
train_studio.start(Machine.V100_X_4)
train_studio.run("python train.py --data_path /teamspace/studios/data_preparation/preprocessed_data")
train_studio.stop()

deploy_studio = Studio("deploy")
deploy_studio.start(Machine.T4)
deploy_studio.run("python deploy_server.py --checkpoint /teamspace/studios/training/checkpoints/last.ckpt") # leave it running to serve requests
```

### Start from a template {#start-from-a-template}

Find a [template](https://lightning.ai/studios). Here are a few suggested ones:

- <https://lightning.ai/lightning-ai/templates/self-hosted-rag-app-using-cohere-s-r>
- <https://lightning.ai/lightning-ai/templates/deploy-a-private-api-for-stable-diffusion-2>
- <https://lightning.ai/lightning-ai/templates/deploy-a-hugging-face-bert-model>
- <https://lightning.ai/lightning-ai/templates/embed-english-wikipedia-under-5-dollars>
- <https://lightning.ai/lightning-ai/templates/instruction-finetuning-tinyllama-1-1b-llm>
- <https://lightning.ai/lightning-ai/templates/continued-pretraining-with-tinyllama-1-1b>

If you have your own code and data, then simply git clone it or upload it to a [fresh Studio](https://studio.lightning.ai/).

## Next steps {#next-steps}

Now that you've created your first Studio, create more Studios ([studio.lightning.ai](https://studio.lightning.ai/)) for each project you are working on!

![Set up a Studio for each project you work on](https://storage.googleapis.com/lightning-avatars/litpages/01hmfc8epbtd9gj84by6t5p7cn/27dd4552-2295-4f34-9eb3-76d4617fa844.png)

Sleeping Studios don't cost anything. Set up a Studio for every project you are working on and turn it on when you need it! If you want to run multiple Studios at a time or use GPUs, then you'll use up your free credits. When you run out, simply buy more credits.

To unlock more features, [upgrade to one of the Tiers](https://lightning.ai/pricing) or [contact our sales team](https://lightning.ai/pricing) for custom deals tailored to your company and use case.

---

**Navigation**

- Parent: [Build](/docs/platform/build.md)
- Children:
  - [Start and stop Studio](/docs/platform/build/ai-studio/start-and-stop-studio.md)
  - [Collaboration](/docs/platform/build/ai-studio/collaboration.md)
  - [GitHub and GitLab](/docs/platform/build/ai-studio/github-and-gitlab.md)
  - [Connect local IDE](/docs/platform/build/ai-studio/connect-local-ide.md)
  - [SSH access](/docs/platform/build/ai-studio/ssh-access.md)
  - [Add GPUs](/docs/platform/build/ai-studio/add-gpus.md)
  - [Deploy a Studio](/docs/platform/build/ai-studio/deploy-a-studio.md)
  - [Add data](/docs/platform/build/ai-studio/add-data.md)
  - [Base Studios](/docs/platform/build/ai-studio/base-studios.md)
  - [Modify environment](/docs/platform/build/ai-studio/modify-environment.md)
  - [Environment persistence](/docs/platform/build/ai-studio/environment-persistence.md)
  - [Background execution](/docs/platform/build/ai-studio/background-execution.md)
  - [Debug interactively](/docs/platform/build/ai-studio/debug-interactively.md)
  - [Deploy on public ports](/docs/platform/build/ai-studio/deploy-on-public-ports.md)
  - [Publishing](/docs/platform/build/ai-studio/publishing.md)
  - [Duplicate Studios](/docs/platform/build/ai-studio/duplicate-studios.md)
  - [Auto sleep](/docs/platform/build/ai-studio/auto-sleep.md)
  - [Custom Docker images](/docs/platform/build/ai-studio/custom-docker-images.md)
  - [Interruptible machines](/docs/platform/build/ai-studio/interruptible-machines.md)
  - [Environment variables](/docs/platform/build/ai-studio/environment-variables.md)
  - [Import models](/docs/platform/build/ai-studio/import-models.md)
  - [Manage disk size](/docs/platform/build/ai-studio/manage-disk-size.md)
  - [Move clouds](/docs/platform/build/ai-studio/move-clouds.md)
  - [On-start actions](/docs/platform/build/ai-studio/on-start-actions.md)
  - [On-stop actions](/docs/platform/build/ai-studio/on-stop-actions.md)
  - [Managed secrets](/docs/platform/build/ai-studio/managed-secrets.md)
  - [GPU marketplace](/docs/platform/build/ai-studio/gpu-marketplace.md)
  - [Plugins](/docs/platform/build/ai-studio/plugins.md)
  - [CLI](/docs/platform/build/ai-studio/cli.md)
