Before starting, you’ll need a Para API key which you can obtain from the . You can learn to create your account and get
your API key from the Developer Portal.
Setup Developer Portal
Prefer to manage setup from your terminal? Install the to create API keys, configure allowed origins, and run diagnostics. The shows a Claude and Codex friendly workflow.
Create a providers component and wrap your application with it. Note the "use client" directive at the top - this is
required for Next.js App Router:
The import "@getpara/react-sdk/styles.css" is required for the Para modal to display correctly. Without this import, the modal will not be visible.
"use client";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { ParaProvider } from "@getpara/react-sdk";import "@getpara/react-sdk/styles.css";const queryClient = new QueryClient();export function Providers({ children,}: Readonly<{ children: React.ReactNode,}>) { return ( <QueryClientProvider client={queryClient}> <ParaProvider paraClientConfig={{ apiKey: "YOUR_API_KEY", // Replace with your actual API key }} config={{ appName: "YOUR_APP_NAME", // Replace with your app name }}> {children} </ParaProvider> </QueryClientProvider> );}
If you’re using a legacy API key (one without an environment prefix) you must provide a value to the
paraClientConfig.environment. You can retrieve your updated API key from the Para Developer Portal at
https://developer.getpara.com/
Wrap Your App with Providers
Update your root layout to wrap your application with the Providers component:
import { Providers } from "./providers";export default function RootLayout({ children }: { children: React.ReactNode }) { return ( <html lang="en"> <body> <Providers>{children}</Providers> </body> </html> );}
You can learn more about the ParaProvider and its definition in the .
The ParaProvider utilizes libraries like Wagmi, Graz, and Solana Wallet Adapter, to power wallet connections. Meaning you can use any of the hooks provided by these libraries when within the ParaProvider context. You can learn more about using external wallets in the .