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

# Register Runtime • AI Agent SDK

> register_runtime: Register a runtime factory with the global registry.

# register\_runtime

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**registry**](../modules/registry) module.

Register a runtime factory with the global registry.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_runtime(runtime_id: str, factory: Callable[[], AgentRuntimeProtocol]) -> None
```

## Parameters

<ParamField query="runtime_id" type="str" required={true}>
  Unique identifier (e.g., "praisonai", "claude-code")
</ParamField>

<ParamField query="factory" type="Callable" required={true}>
  Factory function that returns an AgentRuntimeProtocol instance \*\*metadata: Additional metadata for the runtime
</ParamField>

## Uses

* `_global_registry.register`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/runtime/registry.py#L323">
  `praisonaiagents/runtime/registry.py` at line 323
</Card>
