DevPod

Updated at:

DevPod is an online development IDE provided by Function Compute that gives developers a cloud experience close to native VS Code. Use DevPod to write, debug, and deploy code in the cloud without installing a complex development environment on your local machine.

Feature overview and benefits

As an all-in-one cloud development environment, DevPod has the following core benefits:

  • Ready to use: No local configuration is required, and you can start a cloud IDE with one click.

  • VS Code-like experience: Provides a familiar interface and workflows, which reduces the learning curve.

  • Online collaboration: Lets team members develop and debug in a unified environment.

  • Environment consistency: Ensures consistency across the development, testing, and production environments.

  • Persistent storage: Core data is independent of instances, which is secure and reliable.

  • Image building and reuse: Captures the development environment to enable rapid deployment and environment sharing.

Limits

When you use DevPod, take note of the following limits:

  • Runtime support: DevPod supports only the custom container image runtime.

  • Operating system: A Linux system based on the AMD64 architecture, with a minimum requirement of glibc 2.28. Recommended base images: debian:10, ubuntu:20.04, centos:8, or later versions. alpine images are not supported

  • Preinstalled tools: Must include the curl command.

  • User permissions: The default user is root.

  • GPU compatibility: The driver version currently used by Function Compute GPUs is 570.133.20, which corresponds to CUDA user mode driver version 12.8. For optimal compatibility, use a CUDA Toolkit version of 11.8 or later that does not exceed the CUDA user mode driver version provided by the platform. For details, see Product change: GPU driver upgrade from 550.54.15 to 570.133.20.

Configure DevPod in the console

Prerequisites

A function is created. For instructions, see Function creation.

Procedure

  1. Log on to the Function Compute console. In the left-side navigation pane, click Functions.

  2. In the top navigation bar, select a region. On the Functions page, click the function that you want to manage.

  3. On the Code tab of the function details page, click Create DevPod.

  4. In the DevPod interface, perform operations as needed, such as writing function code, testing the code, and installing third-party dependencies.

Persistent storage

Every DevPod instance mounts a NAS directory at the path /mnt/<function-name>. Data in this directory is not lost when the instance is destroyed. This makes it ideal for storing important files such as model weights and training data, especially for AI development. Note: Files that are not under the /mnt path are stored in local storage and may be lost after the instance restarts.

Environment variables enabled by default in DevPod:

HF_HOME=/mnt/<function-name>/hf
MODELSCOPE_CACHE=/mnt/<function-name>/modelscope
OLLAMA_MODELS=/mnt/<function-name>/ollama

Characteristics of persistent storage:

  • It is not packaged into the image when an image is built.

  • The content persists even if DevPod is deleted and destroyed.

  • It is suitable for storing large model files and effectively controls the image size.

Remotely debug HTTP services

DevPod can expose a locally running HTTP service through a proxy for remote debugging or front-end integration testing.

Procedure

  1. Start an HTTP service in the DevPod terminal. For example:

    python -m http.server 9000
  2. In the console, click Access Development Environment to get the proxy address in the following format:

    https://<devpod-id>.cn-<region>.ide.fc.aliyun.com/proxy/9000/
  3. Access the service at this address:

    curl https://<devpod-id>.cn-<region>.ide.fc.aliyun.com/proxy/9000/

Considerations

For front-end single-page applications (SPAs) that rely on absolute paths, such as React and Vue, the presence of the proxy path prefix /proxy/9000/ may cause static resources to fail to load.

Image building and saving

Image building and ACR integration

You can package the complete runtime environment of your current DevPod instance, including code, dependencies, and configurations, into a container image. You can then push the image to Alibaba Cloud Container Registry (ACR) to save and reuse the environment.

Limits:

  • Image building can only be performed on DevPod instances that are running.

  • The ACR instance must be in the same region as the DevPod instance. Although ACR Personal Edition supports cross-region creation, we strongly recommend using an instance in the same region to avoid network latency and push failures.

ACR version selection

When you save an image, you can choose between ACR Personal Edition and Enterprise Edition.

Feature

ACR Personal Edition

ACR Enterprise Edition

Cost

Free

Billed by instance type (Billing details)

Network access

Accessed over the public network. No VPC configuration required.

Must be in the same VPC as the DevPod instance. Accessed over the private network for better security and stability.

Performance and reliability

Affected by public bandwidth. Pushing large images (≥ 5 GiB) may fail.

High-speed private network transfer. Suitable for large images and production environments.

Scenarios

Personal learning, feature validation, small-scale testing.

Team collaboration, production deployment, high availability (HA) requirements, cross-region distribution.

Prepare an ACR instance

Build an image

  1. In the console, click Export Image.

  2. Select the ACR type (Personal Edition or Enterprise Edition) and configure the following parameters:

    Configuration item

    Description

    ACR Region

    Select the region where your ACR instance is located. This must be the same region as your DevPod instance.

    ACR Namespace

    Select from your existing namespaces.

    ACR Image Repository

    Select the target repository. It must belong to the selected namespace.

    Image Name (Version)

    Specify a custom image tag, such as v1.0 or latest.

    Custom Exclude Paths

    Specify directories to exclude from packaging, such as /data/cache, to prevent sensitive data leakage or reduce the image size. The system automatically excludes /.function_ai and /usr/local/share/jupyter/labextensions.

    Note: The content in the NAS mount directory (/mnt/<function-name>) is not packaged into the image.
  3. Click OK and wait for the image build and push to complete.

Billing

In essence, DevPod is an FC function deployed in your account whose name starts with _DEV_POD_. Therefore, you are responsible for the following costs:

  • Function Compute fees: fees for function invocations and resource usage. For more information, see Billing overview.

  • NAS file storage fees: fees related to mounting the NAS file system. For more information, see Billing for General-purpose NAS.

In addition, the image building feature creates FC functions in your account to assist with the build, and you are responsible for the resulting function invocation fees.

Note

After you finish using DevPod, delete DevPod promptly and manually clean up related resources such as NAS to avoid additional costs.

Comparison between DevPod and WebIDE

Comparison item

WebIDE

DevPod

Supported runtimes

Python, Node.js, PHP, and custom runtime

Only the custom container image runtime is supported

Interface areas

4 areas (Explorer, file editing area, function operation area, and command line terminal)

3 areas (Explorer, command line terminal, and file editing area)

Storage limits

5 GB per user

Fewer than 100,000 changed files and a total size of less than 5 GB

Persistent storage

The Dedicated Edition supports both NAS and OSS

Built-in NAS mount (/mnt/<function-name>), with data permanently retained

VPC access

Not supported in the Serverless Edition; supported in the Dedicated Edition

Based on the function configuration

Image building

Not supported

Supports exporting images to ACR (Personal Edition or Enterprise Edition)

Remote debugging

Not supported

Supports debugging through an HTTP service proxy

AI scenario support

No special notes

Optimized for AI scenarios (environment variables such as HF_HOME and MODELSCOPE_CACHE are preset)

Edition options

Serverless Edition / Dedicated Edition

No edition distinction; all instances are dedicated instances

Primary use cases

Lightweight online code editing, debugging, and dependency packaging

Containerized development, image building, and AI model development

Billing method

The Serverless Edition is free; the Dedicated Edition is billed by instance

Billed as FC function fees plus NAS storage fees

Summary:

  • WebIDE is more like a lightweight online code editor. It is suitable for quickly writing and debugging function code, supports multiple runtimes, and offers a free Serverless edition, similar to VS Code Lite in the cloud.

  • DevPod, in contrast, is a more powerful containerized cloud development environment. It focuses on the custom container image runtime and provides advanced features such as persistent storage, image building, and remote debugging. It is especially suitable for AI model development and scenarios that require complex environment configuration. DevPod is similar to a combination of a complete cloud container, a VS Code environment, and an image building tool.