Skip to main content
Privy makes it easy to integrate cross-app wallets from various Privy apps into existing setups with ConnectKit, wagmi and more using the @privy-io/cross-app-connect SDK. Integrating apps do not need to use Privy themselves to integrate cross-app wallets; instead, they can create a custom wagmi connector using the SDK to configure with ConnectKit. Simply follow the instructions below to get set up!
See our privy-io/cross-app-connect-demo repo’s ConnectKit branch for an example setup.

1. Install dependencies

Install the @privy-io/cross-app-connect SDK and its peer dependencies:

2. Create the custom connector

Next, you’ll create a custom wagmi connector that integrates with Privy’s cross-app-connect functionality. This connector will be fully compatible with ConnectKit and handles all the connection logic for you:
privy-global-connector.ts

3. Configure wagmi with ConnectKit

Now you’ll set up your wagmi configuration using ConnectKit’s getDefaultConfig and pass in your custom Privy connector. This step brings everything together:

4. Wrap your app with providers

At the highest level of your application, wrap your components with the Providers component you just created:

Complete example

Here’s how all the pieces fit together in your project structure:

5. Use the ConnectKitButton

Finally, import the ConnectKitButton and use it anywhere in your app to let users connect to their Privy global wallets:
That’s it! You’re all set up with Privy global wallets and ConnectKit. You can now use any wagmi hook in your application to interact with the connected wallet. When users connect and transact with their wallet, Privy will open a secure pop-up for users to authorize any actions, ensuring their private keys never leave the original app. This integration gives your users seamless access to their existing wallets from other Privy-powered apps, reducing onboarding friction and improving the overall user experience.