Quick Start
Get ConCRG running in your React app in under 10 minutes.
Prerequisites
- Node.js 18+
- A React 18+ application
- An Anthropic API key (get one here)
Step 1: Install the packages
npm install @crg/connector-react @crg/connector-react-v2
Or with pnpm:
pnpm add @crg/connector-react @crg/connector-react-v2
Step 2: Start the Train Service
The Train Service is the local backend that handles knowledge extraction and AI inference.
npx @crg/train-service
By default it runs on port 3001. Set your Anthropic API key first:
ANTHROPIC_API_KEY=sk-ant-... npx @crg/train-service
Step 3: Wrap your app with CRGProvider
src/main.tsx
import { CRGProvider } from '@crg/connector-react';
import { createTrainSidecar, createAssistSidecar } from '@crg/connector-react-v2';
const crgConfig = {
appId: 'my-app',
serviceUrl: 'http://localhost:3001',
};
function Root() {
return (
<CRGProvider
config={crgConfig}
mountTrainUI={createTrainSidecar}
mountAssistUI={createAssistSidecar}
>
<App />
</CRGProvider>
);
}
Step 4: Train ConCRG on your app
Once your app is running with the provider:
- A floating CRG panel appears in the bottom-right corner
- Click "Open Training Panel"
- Select your training sources:
- ✅ Probe — let CRG explore your app automatically
- ✅ Code — point it to your source directory
- ✅ Docs — provide your documentation URL
- Click "Start Training"
- Watch the knowledge graph build in real time
Training typically takes 2–10 minutes depending on app size and selected sources.
Step 5: Try it out
Once training completes, switch to Assist Mode in the panel:
- Open the CRG toolbar (bottom-right of your app)
- Type a question: "Where can I create a new deal?"
- ConCRG navigates you there and offers to explain or walk you through it
What's next?
- Configure ConCRG → — Set app ID, roles, docs URL, and more
- Training Sources → — Understand how each training mode works
- Modes → — Deep dive into FIND, LEARN, PRACTICE, and REMEMBER