JavaScript
Browser Processes
Execute a command asynchronously
POST
JavaScript
Documentation Index
Fetch the complete documentation index at: https://kernel.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Browser session ID
Body
application/json
Request to execute a command synchronously.
Executable or shell command to run.
Command arguments.
Working directory (absolute path) to run the command in.
Pattern:
^/.*Environment variables to set for the process.
Run the process as this user.
Run the process with root privileges.
Maximum execution time in seconds.
Allocate a pseudo-terminal (PTY) for interactive shells.
Initial terminal rows. Only used when allocate_tty is true.
Required range:
1 <= x <= 65535Initial terminal columns. Only used when allocate_tty is true.
Required range:
1 <= x <= 65535