1. Install the agent component using `npx shadcn@latest add https://ui.inference.sh/r/agent.json`.
2. Install the SDK for the proxy route using `npm install @inferencesh/sdk`.
3. Create an API proxy route in your Next.js application (e.g., `app/api/inference/proxy/route.ts`).
4. Set the `INFERENCE_API_KEY` environment variable.
5. Import the `Agent` component.
6. Configure the `Agent` component with `proxyUrl` and `agentConfig`.
7. Optionally, add client-side tools using `createScopedTools`.
8. Render the `Agent` component in your application.