Private LLM Oracle
Before You Begin
1
Clone & Setupterminal
$git clone https://github.com/VIALabs-io/quickstart-oracle.git && cd quickstart-oracle
$npm install
$cp .env.example .env
Configure Environment
Edit the .env file and add:- Your private key for deploying contracts (PRIVATE_KEY=)
- Your OpenAI API key (OPENAI_API_KEY=) or local LLM endpoint (LLM_API_ENDPOINT=)
2
Deploy Your Oracle Contractterminal
$node scripts/deploy.js
3
Run the Oracle Nodeterminal
$node oracle/index.js
4
Run the Frontend Dashboardterminal
$cd frontend
$npm install
$npm run dev
Complete
You've successfully built and deployed a cross-chain LLM oracle that connects smart contracts to AI capabilities. The dashboard allows you to interact with your oracle, test prompts, and visualize AI-driven insights for blockchain applications.