# How to import an ic deployed canister in my project so it works with local deployment?

**URL:** <https://forum.dfinity.org/t/how-to-import-an-ic-deployed-canister-in-my-project-so-it-works-with-local-deployment/9875>\
**Category:** Developers\
**Created:** [December 23, 2021, 7:16am UTC](https://forum.dfinity.org/t/how-to-import-an-ic-deployed-canister-in-my-project-so-it-works-with-local-deployment/9875 "2021-12-23T07:16:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [December 23, 2021, 1:29pm UTC](https://forum.dfinity.org/t/how-to-import-an-ic-deployed-canister-in-my-project-so-it-works-with-local-deployment/9875/2 "2021-12-23T13:29:59Z")

</div>

Your local dev environment runs its own replica which doesn’t call out to the main network, so for now the solution is to deploy a version of the remote canister (or a mock canister with matching interface) locally and interact with that using the actor(“\<canister\_id\>”) format.

Note it’ll get assigned a different canister id, shown in the terminal output when deploying, so you’ll need to use that id locally.

Some related details here:  
[https://forum.dfinity.org/t/calling-another-canisters-methods/473/5?u=ori](https://forum.dfinity.org/t/calling-another-canisters-methods/473/5)  
And  
[https://forum.dfinity.org/t/how-to-use-cowsay-project-in-my-project/6473/3?u=ori](https://forum.dfinity.org/t/how-to-use-cowsay-project-in-my-project/6473/3)

---

_[View the full topic](https://forum.dfinity.org/t/how-to-import-an-ic-deployed-canister-in-my-project-so-it-works-with-local-deployment/9875)._
