> ## Documentation Index
> Fetch the complete documentation index at: https://platform.kimi.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox Reference

> Operating system, preinstalled runtimes and tools, filesystem layout, access permissions, and network rules for Kimi Hosted Agents cloud sandboxes.

Every session in a cloud environment runs inside an isolated **cloud sandbox**, where the agent executes code and reads or writes files. This page summarizes the specifications and boundaries of the cloud sandbox to help you design your agents. To configure preinstalled packages, network access policies, and setup scripts, see [Execution Environments](https://platform.kimi.ai/docs/hosted-agents/environments.md); to run sandbox tools on your own infrastructure, see [Self-Hosted Environments](https://platform.kimi.ai/docs/hosted-agents/self-hosted-environments.md).

> [!NOTE]
>
> Each session uses its own isolated sandbox and does not share files or process state with other sessions.

## Programming languages

| Language | Version | Package managers |
| - | - | - |
| Python | 3.13 | `pip`, `uv` |
| Node.js | 26 | `npm`, `pnpm` |
| .NET | SDK 8.0 | `dotnet` |
| Go | 1.27 | Go modules |
| Rust | 1.100 | `cargo` |

You can install dependencies for your tasks with the corresponding package managers via the `packages` field in [Execution Environments](https://platform.kimi.ai/docs/hosted-agents/environments.md).

## Preinstalled tools

### System and development tools

| Category | Tools |
| - | - |
| Command-line utilities | `git`, `curl`, `wget`, `jq`, `yq`, `rg`, `sd`, `tmux`, `zip` / `unzip`, `rsync`, `tree` |
| Containers and toolchains | Docker CE, Docker Buildx, Docker Compose, mise |
| npm global tools | Prettier, `md-to-pdf`, `@mermaid-js/mermaid-cli` (`mmdc`) |

### Document and media processing

| Category | Tools |
| - | - |
| Office and documents | LibreOffice, `pandoc` |
| PDF | `qpdf`, poppler-utils (`pdftotext`, etc.) |
| Audio and video | `ffmpeg` |
| Browser and rendering | Chromium (headless mode), Noto CJK and other Chinese and English fonts |

## Sandbox specifications

| Property | Specification |
| - | - |
| Operating system | Debian 13 (trixie) |
| Architecture | x86\_64 (amd64) |
| CPU | 2 cores |
| Memory | Up to 4 GB available memory |
| Disk | Up to 20 GB available disk space |
| Network | Determined by the [`networking` configuration](https://platform.kimi.ai/docs/hosted-agents/environments#network-access) of the execution environment |

To check the actual installed versions, have the agent run `python3 --version`, `node --version`, or `pip list`.

## Filesystem layout

Mount points under `/mnt` in the sandbox are organized by source and have different access permissions:

| Path | Contents | Access |
| - | - | - |
| `/mnt/agents/` | **Working directory**: default directory used by the agent during a session to store code, intermediate files, and outputs | Read-write |
| `/mnt/agents/upload/` | Uploaded files mounted via session resources | Read-only |
| `/mnt/agents/memories/<name>/` | Bound [memory stores](https://platform.kimi.ai/docs/hosted-agents/memory.md), one directory per memory store | Configurable as `read_only` or `read_write` when bound |
| `/mnt/agents/skills/<name>/` | [Skills](https://platform.kimi.ai/docs/hosted-agents/skills.md) explicitly attached to the agent, mounted automatically when the session is created | Read-only |
| `/mnt/agents/plugins/<name>/` | Skills and scripts bundled in [plugins](https://platform.kimi.ai/docs/hosted-agents/plugins.md), mounted automatically when the session is created | Read-only |
| `/workspace/<repo-name>/` | [GitHub repositories](https://platform.kimi.ai/docs/hosted-agents/github.md) bound when creating the session, one directory per repository | Read-write |

### Read-only and read-write boundaries

**Working directory**: `/mnt/agents/` is the agent's default directory during a session for storing code, intermediate files, and output files. Files written to this directory sync to the current session's persistent workspace; if the sandbox instance is recreated, the platform remounts the synced files. Working directories are never shared across sessions. Writes that have not finished syncing before an instance exits may be lost. To preserve important outputs after a session ends, retrieve them via the [session files endpoints](https://platform.kimi.ai/docs/hosted-agents/files.md) or call `save_artifact` to explicitly deliver them as immutable versions.

**GitHub repositories**: Repositories are cloned under `/workspace`, independently of the `/mnt/agents/` working directory. The agent can modify repository files and run tests, and any `SKILL.md` files inside can be discovered as [repo skills](https://platform.kimi.ai/docs/hosted-agents/skills.md#use-skills-from-github-repositories). Repository bindings cannot be modified after the session is created; see [GitHub Repositories](https://platform.kimi.ai/docs/hosted-agents/github.md).

On a normal resume with a valid checkpoint, repositories are not re-cloned, and uncommitted changes and unpushed local commits are preserved. When no usable checkpoint exists and the mount directory is completely absent, the platform rebuilds the repository from the first successfully checked-out commit rather than moving `HEAD` to a newer commit on the remote branch. Workspace changes that were not saved to a persistent checkpoint cannot be recovered; event history is not a filesystem backup.

**Read-only mounts**: Uploaded files, skills, and plugins are all mounted read-only. Skills and plugins are fixed when the session is created, whereas additional uploaded files can be mounted later via `POST /v1/sessions/{id}/resources` (see [Files](https://platform.kimi.ai/docs/hosted-agents/files.md)). The agent cannot modify read-only mounts and should not write outputs into those directories.

**Memory stores**: When a memory store is bound in `read_write` mode, the agent can create, update, and delete memory files in its directory, and subsequent sessions bound to the same memory store can access those changes. When bound in `read_only` mode, the agent cannot modify the memory store.

> [!WARNING]
>
> `/mnt/agents/upload/` is read-only. Have the agent write processed outputs to the `/mnt/agents/` working directory rather than attempting to modify uploaded files in place.

## Sandbox network boundaries

Outbound network access from sandbox processes is governed by the `networking` configuration of the session's [execution environment](https://platform.kimi.ai/docs/hosted-agents/environments.md). See [Execution Environments](https://platform.kimi.ai/docs/hosted-agents/environments.md) for network modes, allowed hosts, and proxy settings. This configuration applies only to processes running inside the sandbox; it does not affect platform-managed tools such as Web Search and Fetch.

## Related resources

> [card] [Execution Environments](https://platform.kimi.ai/docs/hosted-agents/environments.md)
>
> Configure preinstalled packages, network access policies, and setup scripts.

> [card] [Files](https://platform.kimi.ai/docs/hosted-agents/files.md)
>
> Upload files, attach them to sessions, and retrieve agent outputs.

> [card] [Memory](https://platform.kimi.ai/docs/hosted-agents/memory.md)
>
> Mount memory stores in read-write mode to persist knowledge across sessions.

> [card] [Vaults](https://platform.kimi.ai/docs/hosted-agents/vaults.md)
>
> Store credentials securely and inject or substitute them based on matching rules.

> [card] [Skills](https://platform.kimi.ai/docs/hosted-agents/skills.md)
>
> Manage skill versions and mount skills in read-only mode.
