openhands.runtime.impl.local.local_runtime
This runtime runs the action_execution_server directly on the local machine without Docker.
LocalRuntime Objects
class LocalRuntime(ActionExecutionClient)
This runtime will run the action_execution_server directly on the local machine. When receiving an event, it will send the event to the server via HTTP.
Arguments:
config
AppConfig - The application configuration.event_stream
EventStream - The event stream to subscribe to.sid
str, optional - The session ID. Defaults to 'default'.plugins
list[PluginRequirement] | None, optional - List of plugin requirements. Defaults to None.env_vars
dict[str, str] | None, optional - Environment variables to set. Defaults to None.
connect
async def connect()
Start the action_execution_server on the local machine.
execute_action
async def execute_action(action: Action) -> Observation
Execute an action by sending it to the server.
close
def close()
Stop the server process.