# Gravix Layer > Gravix Layer documentation. Run code, commands, files, a browser, and a desktop in isolated sandboxes. Python and TypeScript SDKs, CLI, and REST API. - [Overview](https://docs.gravixlayer.ai/documentation/agentruntime/overview.md): Run code, commands, files, a browser, and a desktop in a sandbox - [Quickstart](https://docs.gravixlayer.ai/documentation/agentruntime/getting-started/quickstart.md): Create a sandbox, run code, pass a secret, and allow one outbound host - [Architecture](https://docs.gravixlayer.ai/documentation/agentruntime/architecture.md): How a request reaches a sandbox: the API, the region, and the machine that runs it - [Use the SDK](https://docs.gravixlayer.ai/documentation/agentruntime/sdk-usage.md): Install the Python or TypeScript SDK, set a key, and run code in a sandbox - [Use the CLI](https://docs.gravixlayer.ai/documentation/agentruntime/cli-usage.md): Install the CLI, sign in, and run a sandbox from your terminal - [Store a credential](https://docs.gravixlayer.ai/documentation/agentruntime/getting-started/identity-providers.md): Store a key once and attach it to a sandbox as an environment variable - [Limit outbound traffic](https://docs.gravixlayer.ai/documentation/agentruntime/getting-started/network-policies.md): Allow or deny the outbound hosts a sandbox can reach - [Expose a web service](https://docs.gravixlayer.ai/documentation/agentruntime/getting-started/web-services.md): Give an HTTP server inside a runtime a public HTTPS URL - [Quotas](https://docs.gravixlayer.ai/documentation/agentruntime/service-quotas.md): How much CPU, memory, and disk a verified account can run, and how fast you can create runtimes. - [Pricing](https://docs.gravixlayer.ai/documentation/agentruntime/pricing.md): Per-second rates for vCPU, RAM, and disk. - [How a runtime works](https://docs.gravixlayer.ai/documentation/agentruntime/runtime-overview.md): Create a sandbox, run work in it, and terminate it - [Create a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/create-sandbox.md): Create a runtime from a template or a snapshot - [List runtimes](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/list-sandboxes.md): List the runtimes in your project - [Check a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/get-sandbox-info.md): Read a runtime's status, size, and timeout - [Pause a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/pause-resume.md): Pause a runtime and resume it with the same processes and files - [Terminate a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/terminate-sandbox.md): Terminate a runtime and release its resources - [Extend the timeout](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/update-timeout.md): Change how long a runtime stays up - [Read resource use](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/get-metrics.md): Read a runtime's CPU, memory, disk, and network use - [Expose a web service](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/get-host-url.md): Give an HTTP server inside a runtime an HTTPS URL - [Change runtime settings](https://docs.gravixlayer.ai/documentation/agentruntime/sandbox-management/configure-sandbox.md): Extend how long a runtime runs, or read its resource use - [Connect to a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/ssh-access/overview.md): Open a shell on a running runtime over SSH or in the browser - [Open the web terminal](https://docs.gravixlayer.ai/documentation/agentruntime/ssh-access/web-terminal.md): Open a browser shell on a running runtime - [SSH](https://docs.gravixlayer.ai/documentation/agentruntime/ssh-access/ssh.md): Turn SSH on, connect, replace the key, and turn it off - [Run code](https://docs.gravixlayer.ai/documentation/agentruntime/code-execution/overview.md): Run Python or JavaScript, and keep that state for the next run - [Run code](https://docs.gravixlayer.ai/documentation/agentruntime/code-execution/run-code.md): Run Python or JavaScript and read the output - [Stream code output](https://docs.gravixlayer.ai/documentation/agentruntime/code-execution/stream-code.md): Read stdout, stderr, and results while code is still running - [Keep state across runs](https://docs.gravixlayer.ai/documentation/agentruntime/code-execution/create-context.md): Keep code, imports, and state across runs - [Run a command](https://docs.gravixlayer.ai/documentation/agentruntime/command-execution/overview.md): Run a shell command in a runtime and read its output - [Run a shell command](https://docs.gravixlayer.ai/documentation/agentruntime/command-execution/run-command.md): Run a shell command and read its output and exit code - [Stream command output](https://docs.gravixlayer.ai/documentation/agentruntime/command-execution/streaming.md): Read stdout and stderr while a command is still running - [Run in the background](https://docs.gravixlayer.ai/documentation/agentruntime/command-execution/background.md): Start a command and attach to it later - [Read a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/read-file.md): Read the text and size of a file in a runtime - [Write a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/write-file.md): Write text to a file in a runtime - [List files](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/list-files.md): List the files and directories at a path - [Upload a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/upload-file.md): Upload a local file into a runtime - [Download a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/download-file.md): Download a file from a runtime - [Create a directory](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/make-directory.md): Create a directory in a runtime - [Move a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/move-file.md): Move or rename a file or directory - [Copy a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/copy-file.md): Copy a file or directory inside a runtime - [Delete a file](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/delete-file.md): Delete a file or directory in a runtime - [Find files](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/find-files.md): Find files by name, by contents, or both - [Search and replace](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/search-and-replace.md): Replace a pattern across matching files - [Watch a directory](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/watch-directory.md): Receive create, write, remove, rename, and chmod events for a directory - [Get file info](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/get-file-info.md): Read size, mode, and modification time for a path - [Set permissions](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/set-permissions.md): Set the mode of a file or directory - [Change the owner](https://docs.gravixlayer.ai/documentation/agentruntime/file-operations/change-owner.md): Change the user or group that owns a path - [Use Git](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/overview.md): Clone a repository, commit changes, and push from a runtime - [Clone a repository](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-clone.md): Clone a remote repository into a runtime - [See what changed](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-status.md): Show which files changed in a repository - [Stage files](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-add.md): Stage files for the next commit - [Commit changes](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-commit.md): Commit staged changes - [Push changes](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-push.md): Push commits to a remote repository - [Pull changes](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-pull.md): Pull changes into the current branch - [Fetch updates](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-fetch.md): Fetch updates from a remote without changing the working tree - [List branches](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-list-branches.md): List local, remote, or all branches in a repository - [Switch branches](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-checkout.md): Switch to a branch, tag, or commit - [Create a branch](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-create-branch.md): Create a branch without switching to it - [Delete a branch](https://docs.gravixlayer.ai/documentation/agentruntime/git-operations/git-delete-branch.md): Delete a local branch - [Storage Mounts](https://docs.gravixlayer.ai/documentation/agentruntime/storage-mounts.md): Mount S3, S3-compatible, and Git storage inside a runtime - [Snapshots](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/overview.md): Save a runtime and start new ones from that point - [Save a snapshot](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/create-snapshot.md): Save a running or paused runtime as a named snapshot - [Restore a snapshot](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/create-from-snapshot.md): Start a new runtime from a saved snapshot - [List snapshots](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/list-snapshots.md): List snapshots in the current project - [Check a snapshot](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/get-snapshot.md): Read a snapshot by ID or name - [Fork a runtime](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/fork.md): Start independent copies from a running runtime or a snapshot - [Activate a snapshot](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/activate-deactivate.md): Let new runtimes start from a snapshot, or stop new ones without deleting it - [Delete a snapshot](https://docs.gravixlayer.ai/documentation/agentruntime/snapshots/delete-snapshot.md): Delete a snapshot from the project - [Templates](https://docs.gravixlayer.ai/documentation/agentruntime/templates.md): Start from a base or agent template, or build one with the packages you need - [Open a shell](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/overview.md): Open a shell that stays up after you disconnect - [Start a shell](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/create-session.md): Start a shell inside a runtime - [Send keystrokes](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/send-input.md): Write keystrokes and control characters to a shell - [Read shell output](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/stream-output.md): Read a shell's recent output and follow what it prints next - [Drive a shell](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/session-handle.md): Buffer a shell's output and wait until it exits - [Resize or stop a shell](https://docs.gravixlayer.ai/documentation/agentruntime/pty-sessions/manage-sessions.md): List shells, resize one, signal it, or stop it - [Browser Use](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/overview.md): Open a browser in a runtime and click, type, and fill by element - [Open a browser](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/browser.md): Start a browser, open a page, and switch tabs - [Click and type](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/actions.md): Read a page, then click, type, and fill by element - [Save the page](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/capture.md): Save a screenshot, a PDF, or a download, and watch the page live - [Watch page events](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/events.md): Follow page, console, and network events as they happen - [Keep a login](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/contexts.md): Keep separate logins in one browser and reuse them later - [Work the cookie jar](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/cookies.md): Read, set, and clear cookies without exporting a whole storage state - [Emulate a device](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/emulation.md): Override viewport, location, timezone, locale, and user agent per tab - [Control the network](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/network.md): Block or mock requests, and answer HTTP auth challenges - [Load an extension](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/extensions.md): Install an unpacked extension into a running browser - [Bring your own driver](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/cdp.md): Connect Playwright or Puppeteer to a Gravix browser over a tokened CDP bridge - [Ask a human](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/approvals.md): Park an action until an operator approves or denies it - [Record a tab](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/recordings.md): Capture a tab as video and export the artifact - [Save a browser profile](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/profiles.md): Export the whole browser profile and re-import it into a later runtime - [Replay and fork](https://docs.gravixlayer.ai/documentation/agentruntime/browser-use/replay-fork.md): Replay a recorded action sequence, or clone the session into parallel workers - [Computer Use](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/overview.md): See the runtime's screen, click and type on it, and open apps - [See the screen](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/screen.md): Start the display, capture it, and watch it live - [Human in the loop (HITL)](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/human-in-the-loop.md): Watch the live screen together, take control from the agent, and hand it back - [Control the pointer](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/input.md): Click, type, and use the clipboard on the screen - [Open an app](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/windows-apps.md): Focus a window, launch an app, or open a file - [Read the interface](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/accessibility.md): Find a control by its name and press it - [Record the screen](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/recording.md): Record the display and hand control to a person - [Repair the desktop](https://docs.gravixlayer.ai/documentation/agentruntime/computer-use/session.md): Check desktop services and restart one that failed - [Support](https://docs.gravixlayer.ai/documentation/agentruntime/support.md): Get help from the Gravix Layer team - [Claude Code on Gravix Layer](https://docs.gravixlayer.ai/guides/claude-code/overview.md): Run Claude Code inside Gravix Layer sandboxes with controlled network access, secrets, and APIs for scripts and CI. - [Get started with Claude Code](https://docs.gravixlayer.ai/guides/claude-code/get-started.md): Create a Gravix sandbox with the platform claude template, Anthropic credentials, and egress — then smoke-test and open an interactive shell. - [Automate coding tasks with Claude Code](https://docs.gravixlayer.ai/guides/claude-code/headless.md): Run Claude Code headlessly in a Gravix sandbox from scripts and CI — one-shot prompts, JSON session resume, and streaming. - [Edit a repository with Claude Code](https://docs.gravixlayer.ai/guides/claude-code/repo-workflows.md): Clone a GitHub repo into a Gravix sandbox, give Claude project context, make a small change, review the diff, and optionally push a branch. - [Run parallel Claude Code jobs](https://docs.gravixlayer.ai/guides/claude-code/long-running-agents.md): Fan out Claude Code across many Gravix sandboxes, pause and resume a long session, or trigger a sandbox from cron. - [Customize the Claude template and MCP](https://docs.gravixlayer.ai/guides/claude-code/custom-templates.md): Optionally extend Gravix Layer’s platform claude template, bake project defaults, and register MCP tools in a sandbox. - [Data Analysis with AI](https://docs.gravixlayer.ai/guides/use-cases/data-analysis-agent.md): Run LLM-generated Python in an isolated Runtime—analyze data and save charts without executing code on your machine. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.