Getting Started with AURA
Learn how to integrate AURA's divine intelligence into your projects in just a few minutes.
Quick Start
1. Installation
Install the AURA SDK via npm or yarn:
terminal
# Using npm
npm install @aura/sdk
# Using yarn
yarn add @aura/sdk
2. Initialize AURA
Import and initialize AURA in your project:
JavaScript
import { Aura } from '@aura/sdk'
// Initialize AURA
const aura = new Aura({
apiKey: process.env.AURA_API_KEY,
network: 'mainnet-beta', // Solana network
})
// Start chatting
const response = await aura.chat('gm')
console.log(response) 3. Ask Questions
Query AURA's knowledge base:
JavaScript
// Ask about Solana
const solanaInfo = await aura.chat('Tell me about Solana')
// Security question
const securityTips = await aura.chat('How to avoid phishing?')
// Dev humor
const coffeeWisdom = await aura.chat('Tell me about coffee') Configuration
Customize AURA's behavior with configuration options:
const aura = new Aura({
// Required
apiKey: 'your-api-key',
// Optional
network: 'mainnet-beta', // 'mainnet-beta' | 'devnet' | 'testnet'
temperature: 0.7, // Response creativity (0-1)
maxTokens: 500, // Max response length
knowledge: ['solana', 'web3'], // Knowledge domains
personality: 'divine', // 'divine' | 'casual' | 'technical'
}) API Key
Get your API key from the AURA dashboard. Keep it secure and never expose it in client-side code.
Network
Choose the Solana network. Mainnet for production, devnet for testing.