# How do you deploy Gnosis Safe contract locally

**URL:** <https://forum.safefoundation.org/t/how-do-you-deploy-gnosis-safe-contract-locally/3398>\
**Category:** Developer Discussion\
**Created:** [May 19, 2023, 1:11am UTC](https://forum.safefoundation.org/t/how-do-you-deploy-gnosis-safe-contract-locally/3398 "2023-05-19T01:11:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imnotanoob](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.safefoundation.org/imnotanoob/32/2341_2.png) [@imnotanoob](https://forum.safefoundation.org/u/imnotanoob)\
**Post date:** [May 19, 2023, 1:11am UTC](https://forum.safefoundation.org/t/how-do-you-deploy-gnosis-safe-contract-locally/3398/1 "2023-05-19T01:11:56Z")

</div>

Hi, I’m trying to deploy the gnosis safe contract locally. I have a Ganache Ethereum Client running locally. I’ve tried `yarn deploy-all custom` pointing to my local ganache instance,

but keep getting:

```auto
Error: ERROR processing /Users/vikrambaid/Desktop/Fountain/safe-contracts/src/deploy/deploy_accessors.ts:
Error: 
        Safe factory not found for network 1337. You can request a new deployment at https://github.com/safe-global/safe-singleton-factory.
        For more information, see https://github.com/safe-global/safe-contracts#replay-protection-eip-155

```

---

<div class="post-metadata">

**Author:** ![Damboy](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Damboy](https://forum.safefoundation.org/u/Damboy)\
**Post date:** [May 19, 2023, 4:06am UTC](https://forum.safefoundation.org/t/how-do-you-deploy-gnosis-safe-contract-locally/3398/2 "2023-05-19T04:06:50Z")

</div>

The error message suggests that the Safe factory contract is not deployed on your local Ganache network (network ID 1337).To resolve this issue, you need to deploy the Safe factory contract on your local Ganache network before deploying the Gnosis Safe contract.

Firstly, clone the Safe contract repository from github. After that, Install the Dependencies. Then, Deploy the Safe factory contracts.  
After the deployment is successful, you can try deploying the Gnosis Safe contract again.  
Make sure you have Ganache running locally on the correct network (in this case, network ID 1337) before trying to do any of the above steps

For more info, Vist Safe Github Repo: [GitHub - safe-global/safe-contracts: Safe allows secure management of blockchain assets.](https://github.com/gnosis/safe-contracts)
