# Advanced: Package Linking

Link your local CopilotKit packages into your own project. Then `pnpm run dev` in the monorepo updates your project as you edit.

## Global Package Linking With `pnpm` [#global-package-linking-with-pnpm]

We will use pnpm's [global linking feature](https://pnpm.io/cli/link#pnpm-link---global) to link the CopilotKit packages to your own project.

<Steps>
  <Step>
  ### In The CopilotKit Monorepo [#in-the-copilotkit-monorepo]
  First, set up the monorepo with the [code contribution guide](/react-native/langgraph-fastapi/contributing/code-contributions).

Navigate to the CopilotKit monorepo and run the following command to link the packages globally:

```bash
pnpm exec nx run-many -t link:global
```

  </Step>
  <Step>
  ### In Your Project [#in-your-project]
  In your project, make sure that you have pnpm configured. This will not prevent you from using npm or yarn as well. But for the purpose of global linking, you must use pnpm.

```bash
cd your-project
pnpm i
```

Next, link the desired package in your project:

You can run this for all packages, or just the ones you need. Your changes will now be synced.

  </Step>
  <Step>
  ### Unlinking [#unlinking]
  Once you are done, you can undo the global linking by running the following command in the CopilotKit monorepo:

```bash
pnpm exec nx run-many -t unlink:global
```

And then in your project:

```bash
pnpm install
```

That's it, everything is now back to normal.

  </Step>
</Steps>

## Need help? [#need-help]

If you need help with anything, please don't hesitate to reach out to us on [Discord](https://discord.gg/6dffbvGU3D). We have a dedicated [#contributing](https://discord.com/channels/1122926057641742418/1183863183149117561) channel.
