Javascript
import Kernel from '@onkernel/sdk'; const client = new Kernel({ apiKey: 'My API Key', }); const response = await client.browsers.process.exec('id', { command: 'command' }); console.log(response.duration_ms);
{ "exit_code": 123, "stdout_b64": "<string>", "stderr_b64": "<string>", "duration_ms": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Browser session ID
Request to execute a command synchronously.
Execution result
Result of a synchronous command execution.