> ## 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.

# Clone For Channel • AI Agent SDK

> clone_for_channel: Return a fully independent copy of this agent for a gateway channel.

# clone\_for\_channel

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Agent**](../classes/Agent) class in the [**agent**](../modules/agent) module.

Return a fully independent copy of this agent for a gateway channel.

This method safely clones an agent for use in multi-channel scenarios
by avoiding deepcopy issues with tools/handoffs and creating fresh
instances of mutable objects like interrupt\_controller.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def clone_for_channel() -> 'Agent'
```

### Returns

<ResponseField name="Returns" type="'Agent'">
  A new Agent instance with copied configuration but fresh
  locks, interrupt controller, and shallow-copied tools.
</ResponseField>

## Uses

* `warnings.warn`
* `ExecutionConfig`
* `MemoryConfig`

## Source

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